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

fix: error when attempting to access Intl API on some versions of Windows #15693

Merged
merged 1 commit into from Apr 3, 2019

Conversation

crisbeto
Copy link
Member

@crisbeto crisbeto commented Apr 2, 2019

On some versions of Windows merely trying to access the Intl object can cause IE to throw an error, if the default Map object has been overwritten (e.g. when polyfilling). These changes add a try/catch around our usages so that users' apps don't crash completely on load.

Fixes #15687.

@crisbeto crisbeto added the target: patch This PR is targeted for the next patch release label Apr 2, 2019
@googlebot googlebot added the cla: yes PR author has agreed to Google's Contributor License Agreement label Apr 2, 2019
…dows

On some versions of Windows merely trying to access the `Intl` object can cause IE to throw an error, if the default `Map` object has been overwritten (e.g. when polyfilling). These changes add a `try/catch` around our usages so that users' apps don't crash completely on load.

Fixes angular#15687.
Copy link
Member

@jelbourn jelbourn left a comment

Choose a reason for hiding this comment

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

LGTM

Great comments

@jelbourn jelbourn added pr: lgtm action: merge The PR is ready for merge by the caretaker labels Apr 2, 2019
@almogohayon1
Copy link

@mmalerba could you please review ASAP? it's critical issue occur in our production environments

@mmalerba mmalerba added the P2 The issue is important to a large percentage of users, with a workaround label Apr 3, 2019
@mmalerba mmalerba merged commit ae32092 into angular:master Apr 3, 2019
jelbourn pushed a commit that referenced this pull request Apr 4, 2019
…dows (#15693)

On some versions of Windows merely trying to access the `Intl` object can cause IE to throw an error, if the default `Map` object has been overwritten (e.g. when polyfilling). These changes add a `try/catch` around our usages so that users' apps don't crash completely on load.

Fixes #15687.
@angular-automatic-lock-bot
Copy link

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 10, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
action: merge The PR is ready for merge by the caretaker cla: yes PR author has agreed to Google's Contributor License Agreement P2 The issue is important to a large percentage of users, with a workaround target: patch This PR is targeted for the next patch release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Critical crash bug "typeError: intl is not available"
6 participants