[Webkit-unassigned] [Bug 206131] New: Object.preventExtensions should throw if not successful

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sat Jan 11 10:16:36 PST 2020


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

            Bug ID: 206131
           Summary: Object.preventExtensions should throw if not
                    successful
           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

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

-- 
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/20200111/0e1195eb/attachment.htm>


More information about the webkit-unassigned mailing list