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

Token.prototype.toString does not play nicely with Object.freeze(Object.prototype) #2

Open
jcranmer opened this issue Apr 3, 2014 · 0 comments

Comments

@jcranmer
Copy link
Contributor

jcranmer commented Apr 3, 2014

A brief discussion with some ES committee people indicates that this is intentional. The solution is to use Object.defineProperty instead of a direct assignment. (Or assigning the literal .prototype directly).

I haven't investigated ES6 classes yet, so it's possible that switching to an ES6 class framework would make this work as well.

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

1 participant