apla / me.apla.cordova.app-preferences

App preferences plugin for cordova
Apache License 2.0
201 stars 209 forks source link

strict mode triggers F09 AppPreferences787674544 n0 cordova.js:1046 #16

Closed ishaigor closed 9 years ago

ishaigor commented 9 years ago

Hi Ivan

I ran into the following error with the plugin while using strict mode. Please let me know how this can be fixed.

Thank you, Irena

processMessage failed: Message: F09 AppPreferences787674544 n0 cordova.js:1046 processMessage failed: Error: TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them cordova.js:1044 processMessage failed: Stack: TypeError: 'caller', 'callee', and 'arguments' properties may not be accessed on strict mode functions or the arguments objects for calls to them at Object.checkArgs (file:///android_asset/www/cordova.js:410:84) at Object.Analytics.sendException (file:///android_asset/www/plugins/com.cmackay.plugins.googleanalytics/www/analytics.js:217:15) at Object.fnSendException as sendException at errorCallback (file:///android_asset/www/scripts/services/utilityServices.js:133:61) at Object.cordova.callbackFromNative (file:///android_asset/www/cordova.js:294:48) at processMessage (file:///android_asset/www/cordova.js:1039:21) at Function.androidExec.processMessages (file:///android_asset/www/cordova.js:1076:13) at pollOnce (file:///android_asset/www/cordova.js:944:17) at pollOnceFromOnlineEvent (file:///android_asset/www/cordova.js:939:5) cordova.js:1045

apla commented 9 years ago

Hi Irena,

This is an issue with cordova itself. Seems like cordova-js use arguments.callee which is forbidden on strict mode. You can hire me if you have problems with cordova app.

ishaigor commented 9 years ago

Figure this out - incorrect promise usage. Thank you for looking into this.