Skip to content
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

bug: JS SyntaxError on v1-0-0-beta-14-nightly-998 #3070

Closed
luchusnet opened this issue Feb 10, 2015 · 6 comments
Closed

bug: JS SyntaxError on v1-0-0-beta-14-nightly-998 #3070

luchusnet opened this issue Feb 10, 2015 · 6 comments
Assignees
Milestone

Comments

@luchusnet
Copy link

Type: bug

Platform: android 2.x webview

02-05 16:22:26.445: D/CordovaLog(14066): file:///android_asset/www/js/libs/ionic/js/ionic.bundle.js: Line 23905 : Uncaught SyntaxError: Unexpected token finally

on android version 2.3x

@luchusnet luchusnet changed the title Bug on "v1.0.0-beta.14 “magnesium-mongoose” BETA 14: JS SyntaxError bug: on "v1.0.0-beta.14 “magnesium-mongoose” BETA 14: JS SyntaxError Feb 10, 2015
@luchusnet luchusnet changed the title bug: on "v1.0.0-beta.14 “magnesium-mongoose” BETA 14: JS SyntaxError bug: JS SyntaxError on v1.0.0-beta.14 Feb 10, 2015
@adamdbradley
Copy link
Contributor

I'm unable to get this error on Android 2.3. Could you fork one of these codepens and describe how to get the error to show up? Thanks

@adamdbradley adamdbradley added the needs: reply the issue needs a response from the user label Feb 10, 2015
@luchusnet
Copy link
Author

Use codepens its complicated because our project ( a social network ) uses several " plugins" and depends on several http services that should be mocked.

But looking the line with the error, noticed that ".finally" is reserved sentence. Then I found this post:

kriskowal/q#200

Then I changed the original line of ionic.bundle.js 23919: .finally (function () by ["finally"] (function () and it worked!

I guess "finally" is a reserved name can not be used as a method in some android browsers.

The phone I used is:

Samsung GT-S5360L
Android version: 2.3.6

So, this is a bug?

@Ionitron Ionitron removed the needs: reply the issue needs a response from the user label Feb 11, 2015
@adamdbradley
Copy link
Contributor

I'm not finding a .finally anywhere in this file: http://code.ionicframework.com/1.0.0-beta.14/js/ionic.bundle.js (that isn't in a code comment)

It sounds like it was originally within Angular source code, then angular recently updated it. Would you be able to find the line you're having the problem with using one of our versions on the CDN? Thanks

@adamdbradley adamdbradley added the needs: reply the issue needs a response from the user label Feb 11, 2015
@luchusnet
Copy link
Author

Sorry, its in nightly: 1-0-0-beta-14-nightly-998

@Ionitron Ionitron removed the needs: reply the issue needs a response from the user label Feb 11, 2015
@luchusnet luchusnet changed the title bug: JS SyntaxError on v1.0.0-beta.14 bug: JS SyntaxError on v1-0-0-beta-14-nightly-998 Feb 11, 2015
@adamdbradley
Copy link
Contributor

Great catch! I'll take a look, thanks!

@adamdbradley
Copy link
Contributor

I added a temporary fix and submitted a PR to angular: 1f2d900

thanks

@adamdbradley adamdbradley self-assigned this Feb 13, 2015
@adamdbradley adamdbradley added this to the 1.0.0-rc0 milestone Feb 13, 2015
@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Sep 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants