[Webkit-unassigned] [Bug 163495] New: JSON.parse should modify configurable non-writable properties.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Oct 15 17:15:19 PDT 2016


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

            Bug ID: 163495
           Summary: JSON.parse should modify configurable non-writable
                    properties.
    Classification: Unclassified
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: mark.lam at apple.com

This is because the JSON.parse spec (see https://tc39.github.io/ecma262/#sec-json.parse and https://tc39.github.io/ecma262/#sec-internalizejsonproperty) uses CreateDataProperty to set properties that the reviver wants to set.  The CreateDataProperty spec (see https://tc39.github.io/ecma262/#sec-createdataproperty) says that it uses [[DefineOwnProperty]] to perform this set.  As a result, if the property was configurable to begin with, it's [[Writable]] will be overridden to be true, and the new value should be applied.

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


More information about the webkit-unassigned mailing list