Bug 205767

Summary: JSON.parse should initialize wrapper object with [[DefineOwnProperty]]
Product: WebKit Reporter: Alexey Shvayka <ashvayka>
Component: JavaScriptCoreAssignee: Alexey Shvayka <ashvayka>
Status: RESOLVED FIXED    
Severity: Trivial CC: commit-queue, darin, ews-watchlist, keith_miller, mark.lam, msaboff, saam, tzagallo, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: All   
OS: All   
Attachments:
Description Flags
Patch none

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.