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

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Jun 3 14:00:33 PDT 2019


https://bugs.webkit.org/show_bug.cgi?id=198495

            Bug ID: 198495
           Summary: Date.prototype.toJSON throws if toISOString returns an
                    object
           Product: WebKit
           Version: WebKit Nightly Build
          Hardware: All
                OS: All
            Status: NEW
          Severity: Minor
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: shvaikalesh at gmail.com

Test case:
> Date.prototype.toJSON.call({toISOString: () => []})

Expected:
< []

Actual:
< TypeError: toISOString did not return a primitive value

ECMA262: https://tc39.github.io/ecma262/#sec-date.prototype.tojson (step 4)
Test262: https://github.com/tc39/test262/pull/2190

-- 
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/20190603/4b1102a1/attachment.html>


More information about the webkit-unassigned mailing list