RESOLVED FIXED 205767
JSON.parse should initialize wrapper object with [[DefineOwnProperty]]
https://bugs.webkit.org/show_bug.cgi?id=205767
Summary JSON.parse should initialize wrapper object with [[DefineOwnProperty]]
Alexey Shvayka
Reported 2020-01-04 13:11:41 PST
ECMA262: https://tc39.es/ecma262/#sec-json.parse (step 7.c) Test262: https://test262.report/browse/built-ins/JSON/parse/reviver-wrapper.js Currently, JSC performs [[Set]] instead, which is observable by a setter on Object.prototype (with empty String key).
Attachments
Patch (3.58 KB, patch)
2020-01-04 13:49 PST, Alexey Shvayka
no flags
Alexey Shvayka
Comment 1 2020-01-04 13:49:23 PST
WebKit Commit Bot
Comment 2 2020-01-04 21:09:29 PST
Comment on attachment 386767 [details] Patch Clearing flags on attachment: 386767 Committed r254037: <https://trac.webkit.org/changeset/254037>
WebKit Commit Bot
Comment 3 2020-01-04 21:09:31 PST
All reviewed patches have been landed. Closing bug.
Radar WebKit Bug Importer
Comment 4 2020-01-04 21:10:32 PST
Note You need to log in before you can comment on or make changes to this bug.