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
mhevery merged 1 commit intoangular:masterfrom
marclaval:saferDefineProperty
Aug 11, 2016
Merged

fix(browser): make Object.defineProperty patch safer#392
mhevery merged 1 commit intoangular:masterfrom
marclaval:saferDefineProperty

Conversation

@marclaval
Copy link
Copy Markdown
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