Skip to content

fix(browser): Moving to es6-shim broke most browsers#4219

Closed
marclaval wants to merge 2 commits into
angular:masterfrom
marclaval:issue4216
Closed

fix(browser): Moving to es6-shim broke most browsers#4219
marclaval wants to merge 2 commits into
angular:masterfrom
marclaval:issue4216

Conversation

@marclaval
Copy link
Copy Markdown
Contributor

Fixes #4216

For the 2 issues:

  1. Thanks to advices in Expected int32 as second argument in Firefox with Array.prototype.map paulmillr/es6-shim#347, loading es6-shim first solves the error.
  2. Added a workaround to use the internal string from es6-shim when Symbol.iteratoris not available.

@marclaval
Copy link
Copy Markdown
Contributor Author

Benchmarks are broken and need to be fixed, but at least unit tests are now running normally (with real errors to fix ...)
@rkirov Can you have a look please?

es6-shim.js must be loaded first
@marclaval marclaval force-pushed the issue4216 branch 9 times, most recently from a623439 to b344ba7 Compare September 17, 2015 15:17
@marclaval marclaval added action: review The PR is still awaiting reviews from at least one requested reviewer comp: build/pipeline labels Sep 17, 2015
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like issue #360 is closed and Symbol.iterator won't be exposed. I don't like that this ties us up to es6-shim, which means angular2 bundle can't be used with core.js. Change the comment to specify that this workaround is es6-shim specific. I guess the todo is to add a similar work around for core.js.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

core-js defines Symbol.iterator, so it shouldn't be a problem.

@rkirov rkirov added pr_state: LGTM and removed action: review The PR is still awaiting reviews from at least one requested reviewer labels Sep 17, 2015
@marclaval marclaval closed this in 390aacd Sep 18, 2015
robwormald pushed a commit to robwormald/angular that referenced this pull request Sep 25, 2015
@marclaval marclaval deleted the issue4216 branch December 11, 2017 10:07
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Sep 13, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Moving to es6-shim broke most browsers

3 participants