-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Unexpected reserved word in strict mode error (for yield) on Android 4.0 #12657
Comments
Another example on another project: angular/angular.js#7969 |
Dupe of tildeio/htmlbars#420, which would be fixed by tildeio/htmlbars#421. |
I was getting Saucelabs set up for Ember Data which made me notice this. Glad it's been fixed! I think we'll need a point release for the changes to apply? I'm also concerned about previous versions of ember. |
Ya, we will need to release updated version of HTMLBars for Ember versions 1.13 (kinda like an LTS), 2.2 (release), and 2.3 (beta).
|
I am confused. Babel should be handling this? |
@mmun I don't believe old builds always used babel. |
FWIW this is now in es3-safe-recast thanks to @stefanpenner, so it may be as simple as bumping the version + doing rebuild. |
Nothing is simple with older deps and npm. ;P
|
Closing this since 1.13 is no longer LTSish and the fix was in htmlbars 0.14.11 (the version in Ember 2.3). Please, reopen it if something is still missing. |
The line on HTMLBars here: https://github.com/tildeio/htmlbars/blob/72c7350805e4d7d44e2e88f2377915960cd3513a/packages/htmlbars-runtime/lib/hooks.js#L107
causes an error of
Unexpected reserved word in strict mode
error on Android 4.0. The solution is probably to add 'yield' to https://github.com/stefanpenner/es3-safe-recast.The text was updated successfully, but these errors were encountered: