| Summary: | Object.preventExtensions should throw if not successful | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Alexey Shvayka <ashvayka> | ||||
| Component: | JavaScriptCore | Assignee: | Alexey Shvayka <ashvayka> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Minor | CC: | commit-queue, ews-watchlist, keith_miller, mark.lam, msaboff, ross.kirsling, saam, tzagallo, webkit-bug-importer, ysuzuki | ||||
| Priority: | P2 | Keywords: | InRadar | ||||
| Version: | WebKit Nightly Build | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Attachments: |
|
||||||
Created attachment 387443 [details]
Patch
Comment on attachment 387443 [details]
Patch
r=me
Comment on attachment 387443 [details] Patch Clearing flags on attachment: 387443 Committed r254626: <https://trac.webkit.org/changeset/254626> All reviewed patches have been landed. Closing bug. |
Test case: Object.preventExtensions(new Proxy({}, { preventExtensions: () => false })) Expected: Throws TypeError Actual: Returns Proxy ECMA262: https://tc39.es/ecma262/#sec-object.preventextensions (step 3) Test262: https://test262.report/browse/built-ins/Object/preventExtensions/throws-when-false.js