-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IE8 support broken in v0.9.1: Error: SCRIPT1010: Expected identifier: localforage.js, line 1014 character 28 & localforage.nopromises.js, line 331 character 28 #202
Comments
Interesting, cordova doesn't like that either. I wonder if the same
|
That should do the trick to fix this particular issue. There should probably be a tool that automatically fixes these, I keep making the same class of IE8 bugs myself all the time. :/ |
Apparently JSHint's |
Oh, nice. I should enable that option, as JSHint is already part of the test suite. Thanks.
|
I didn't end up enabling the |
On second thought that's probably extra paranoid, but either way this is fixed now. |
Yeah, probably a better way to tackle the issue, and I agree on extra paranoid, you have to trust the tools you pick. ;) Speaking of which, what is the tool you used for the build step? |
Ah, nevermind, should've read the commit message. |
Although, es3-safe-recast only seems to address reserved word issue, but other issues such as trailing commas will go unnoticed without the |
I added a check for trailing commas in the style checker; I don't want to write the source files in ES3 mode but would rather just convert them during the build step, as writing ES3-compliant JS feels awkward. I hope this should fix everything! :-) |
Hi everyone. i've installed correctly with ionic and cordova and it is working fine for me in chrome web, safari on mac and on my iPhone 6 plus ios8. however, on my iPhone 4, iOS 7 and on android s3 4.2.2 I am getting this error TypeError: 'undefined' is not a constructor (evaluating 'new Promise'), http://192.168.0.2:8100/js/localforage.js, Line: 1778 I've updated everything and I am using the latest version of local forage and angular-locaforage . Any ideas as to why its not working? Because of this error, the whole app fails to run. |
Trying to load version 0.9.1 of ...
... with Internet Explorer 8 or IE8 Browser Mode will fail and produce one of the following javascript errors:
Internet Explorer 8 doesn't like the following line:
https://github.com/mozilla/localForage/blob/master/dist/localforage.js#L1014
https://github.com/mozilla/localForage/blob/master/dist/localforage.nopromises.js#L331
https://github.com/mozilla/localForage/blob/master/src/drivers/indexeddb.js#L325
The text was updated successfully, but these errors were encountered: