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

Date.prototype.toJSON is not generic #27

Closed
petermichaux opened this issue Jan 29, 2012 · 1 comment
Closed

Date.prototype.toJSON is not generic #27

petermichaux opened this issue Jan 29, 2012 · 1 comment

Comments

@petermichaux
Copy link

The ECMAScript 5.1 specification requires that the Date.prototype.toJSON method be generic and that the this object only needs to have a toISOString method. The Date.protototype.toJSON polyfill of json2.js is not generic.

http://es5.github.com/#x15.9.5.44

@douglascrockford
Copy link
Owner

Please let me know if this ever manifests as a real problem.

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

2 participants