Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

fix(browser): make Object.defineProperty patch safer #392

Merged
merged 1 commit into from
Aug 11, 2016

Conversation

marclaval
Copy link
Contributor

Fixes #391

The following code was failing in Chrome and Firefox (at least) when zone was loaded:

var someArray = [];
Object.defineProperty(someArray, 'length', {value: 2, writable: false})

I locally patched zone.js and was able to successfully run all Angular 2's tests with this fix. It solves the issues that were found in Chrome mobile 30 (Android 4.4.2).

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.

Breaks Intl API in older versions of Chrome
3 participants