[Webkit-unassigned] [Bug 242342] New: Object.prototype.toString.call for a revoked Proxy has the wrong error message
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jul 5 09:38:48 PDT 2022
https://bugs.webkit.org/show_bug.cgi?id=242342
Bug ID: 242342
Summary: Object.prototype.toString.call for a revoked Proxy has
the wrong error message
Product: WebKit
Version: Safari 15
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: ljharb at gmail.com
`var r = Proxy.revocable({}, {}); r.revoke(); Object.prototype.toString.call(r.proxy)` produces an error with a message "Array.isArray cannot be called on a Proxy that has been revoked", which should appear with `Array.isArray(r.proxy)` but should not appear with `Object.prototype.toString.call(r.proxy)`.
--
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/20220705/67dc11c0/attachment.htm>
More information about the webkit-unassigned
mailing list