[
https://issues.apache.org/jira/browse/CB-12026?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15591692#comment-15591692
]
Vladimir Kotikov commented on CB-12026:
---------------------------------------
Not sure what is the platform, you're developing for, but i guess this is
because it doesn't support default functions parameters syntax from ES6.
Consider using transpiler, such as Babel, to convert your JavaScript to ES5
syntax.
Closing this as this is not a cordova issue
> JavaScript interpreter problem
> ------------------------------
>
> Key: CB-12026
> URL: https://issues.apache.org/jira/browse/CB-12026
> Project: Apache Cordova
> Issue Type: Bug
> Components: Plugin Device, Plugin Network Information, Plugin
> Statusbar, Plugin Vibration, Plugin Whitelist
> Affects Versions: 6.3.1
> Environment: Ubuntu 14.04 LTS x86
> Reporter: Amir Karimi
> Labels: triaged
> Fix For: 6.3.1
>
>
> Hi, I use cordova after about 1 mount again but got error same this:
> "Uncaught SyntaxError: Unexpected token =" common.js:157
> at this line of code and some other lines this got error i set default value
> of function parameters. same this: function login(id,name="test",age=5)
> This do not got error before and work be fine... but now got error...
> Thanks for reading.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]