Skip to content
This repository has been archived by the owner on May 11, 2018. It is now read-only.

[1.x] Add polyfills for ES6 static Object methods #441

Merged
merged 2 commits into from
Oct 13, 2017

Conversation

danez
Copy link
Member

@danez danez commented Oct 13, 2017

These functions do exist in ES5, but we still need to load the polyfills in ES5 browsers (like IE11), as the functions work sligthly different in ES5 vs ES6

We noticed this when trying to basically run the following code which throws in IE11 but works in latest Chrome:

Object.keys(123);

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/keys#Notes

Can also port to 2.0 if this is okay.

//cc @SevInf

latest yarn produced new yarn.lock
@existentialism
Copy link
Member

@danez let's port this to babel/babel (the new 2.x) as well

@danez
Copy link
Member Author

danez commented Oct 13, 2017

Oh it was moved already? Didn't know about that. Will do it!

This functions do exist in ES5, but we still need to
load the polyfills, as they now accept different values
@hzoo
Copy link
Member

hzoo commented Oct 13, 2017

@danez we moved the code but i failed at moving issues correctly 😛 (need to move open issues + some closed issues, I only moved older issues without a label)

@existentialism existentialism merged commit 38c77a2 into 1.x Oct 13, 2017
@danez danez deleted the add-object-static branch October 13, 2017 21:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants