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

IE8 - Fix #252 'constructor' in Object.defineProperties #305

Merged
merged 1 commit into from
May 30, 2015

Conversation

andybry
Copy link
Contributor

@andybry andybry commented May 30, 2015

Fix #252

In IE8 the 'constructor' property was not being defined by the Object.defineProperties method of the sham because IE8 does not enumerate the constructor property.

I've tested this change manually against IE8 running on Windows XP, but I wasn't able to work out how you do your automated cross browser testing.

In IE8 the 'constructor' property was not being
defined by the Object.defineProperties method
of the sham because IE8 does not enumerate the
constructor property.
@ljharb
Copy link
Member

ljharb commented May 30, 2015

Thanks! This definitely seems like a strictly better approach regardless. Since this particular sham would only apply in pre-ES5 browsers, testing in IE 8 covers down to IE 6, and I'll manually test this in a few older Chrome/Firefox/Safari/Opera versions before merging.

@ljharb ljharb self-assigned this May 30, 2015
ljharb added a commit that referenced this pull request May 30, 2015
IE8 - Fix #252 'constructor' in Object.defineProperties
@ljharb ljharb merged commit 7e656b6 into es-shims:master May 30, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Object.defineProperties(obj, { constructor: .. }} broken in IE8
2 participants