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

Array.of conflicts with ES6 Array.of proposal #32

Open
chrisdevereux opened this issue Apr 23, 2015 · 6 comments
Open

Array.of conflicts with ES6 Array.of proposal #32

chrisdevereux opened this issue Apr 23, 2015 · 6 comments

Comments

@chrisdevereux
Copy link

See: http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.of

According to MDN, it is currently implemented in Firefox 25, so clientside use of js-schema may cause unexpected behavior.

@molnarg molnarg mentioned this issue May 3, 2015
@molnarg
Copy link
Owner

molnarg commented May 3, 2015

Yeah, we should find a new name or syntax for this soon.

@apendua
Copy link

apendua commented May 5, 2015

👍

@cphoover
Copy link

cphoover commented Jun 9, 2015

IMO this is the exact reason you don't extend natives in javascript, that's the one thing I really don't like about this library. What if we had an option to disable extending natives? and instead use a new global
e.g schema.Array.of. This seems like a much safer way to handle this... my two cents

@spacepluk
Copy link

+1 to leave the built-in types alone

@jantimon
Copy link

+1 for schema.Array.of

@ashrafuzzaman
Copy link

👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants