[Webkit-unassigned] [Bug 199292] New: JSON.parse incorrectly handles array proxies

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Thu Jun 27 15:24:51 PDT 2019


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

            Bug ID: 199292
           Summary: JSON.parse incorrectly handles array proxies
           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

1. Arrays should be detected using `isArray`:

ECMA262: https://tc39.es/ecma262/#sec-internalizejsonproperty (step 2.a)
Test262: https://test262.report/browse/built-ins/JSON/parse/revived-proxy.js

2. "length" lookup should be observable by proxies:

ECMA262: https://tc39.es/ecma262/#sec-internalizejsonproperty (step 2.b.ii)
Test262:
  https://test262.report/browse/built-ins/JSON/parse/reviver-array-length-get-err.js
  https://test262.report/browse/built-ins/JSON/parse/reviver-array-length-coerce-err.js

-- 
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/20190627/1c019eb4/attachment-0001.html>


More information about the webkit-unassigned mailing list