[Webkit-unassigned] [Bug 210267] New: ProxyObject::defineOwnProperty() should conditionally throw on falsy trap result
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Thu Apr 9 05:35:46 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=210267
Bug ID: 210267
Summary: ProxyObject::defineOwnProperty() should conditionally
throw on falsy trap result
Product: WebKit
Version: WebKit Nightly Build
Hardware: All
OS: All
Status: NEW
Severity: Trivial
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: shvaikalesh at gmail.com
Test case:
Object.defineProperty(new Proxy({}, {defineProperty: () => false}), "foo", {})
Expected:
TypeError thrown
Actual:
Proxy object returned
ECMA262: https://tc39.es/ecma262/#sec-object.defineproperty (step 4)
Test262: https://test262.report/browse/built-ins/Proxy/defineProperty/trap-is-undefined-target-is-proxy.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/20200409/f33cf169/attachment.htm>
More information about the webkit-unassigned
mailing list