[Webkit-unassigned] [Bug 198495] Date.prototype.toJSON throws if toISOString returns an object

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 5 01:50:06 PDT 2019


--- Comment #19 from Keith Miller <keith_miller at apple.com> ---
Comment on attachment 371240
  --> https://bugs.webkit.org/attachment.cgi?id=371240

View in context: https://bugs.webkit.org/attachment.cgi?id=371240&action=review

Are there no test262 tests for this? Can you run `./Tools/Scripts/test262-runner` and see it this fixes any tests?

>> Source/JavaScriptCore/ChangeLog:8
>> +        Don't throw TypeError if result of toISOString call is not a primitive.
> What's the motivation for this change?  Is there a relevant specification?  How do other browsers behave?

I think Alexsey commented on this in the bugzilla. It's part of https://tc39.github.io/ecma262/#sec-date.prototype.tojson. Although, I think it'd be good to have a link to the spec in the ChangeLog.

You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20190605/22682533/attachment.html>

More information about the webkit-unassigned mailing list