[ https://issues.apache.org/jira/browse/CB-11678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15411445#comment-15411445 ]
Shazron Abdullah edited comment on CB-11678 at 8/8/16 7:55 AM: --------------------------------------------------------------- We are governed by what default WebViews are provided by the OS. On iOS, the WebView does not support ES6 default parameters. See "Browser Compatibility" table at: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Default_parameters You will need to transpile your ES6 code to ES5 using babeljs. was (Author: shazron): We are governed by what default WebViews are provided by the OS. On iOS, the WebView does not support ES6 default parameters. See "Browser Compatibility" table at: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Functions/Default_parameters > JS Default Function Parameters Breaks iOS > ----------------------------------------- > > Key: CB-11678 > URL: https://issues.apache.org/jira/browse/CB-11678 > Project: Apache Cordova > Issue Type: Bug > Components: iOS > Affects Versions: 6.3.0 > Environment: Mac OS X > Reporter: Misha Rabinovich > Labels: build > > Thank you for your amazing work on Cordova. I noticed that if I use > EcmaScript 6 JavaScript default function parameters then onDeviceReady never > fires on iOS (but does on android). Removing these parameters from function > definition fixes the problem. > Bad: > function doStuff(param = false) { > } > Works: > function doStuff(param) { > } -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org