Bug 242342
Summary: | Object.prototype.toString.call for a revoked Proxy has the wrong error message | ||
---|---|---|---|
Product: | WebKit | Reporter: | Jordan Harband <ljharb> |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | saam, webkit-bug-importer, ysuzuki |
Priority: | P2 | Keywords: | InRadar |
Version: | Safari 15 | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Jordan Harband
`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)`.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/96893485>
serakeri
Pull request: https://github.com/WebKit/WebKit/pull/3424
serakeri
Pull request: https://github.com/WebKit/WebKit/pull/3923
EWS
Committed 254134@main (78a9dd6fd369): <https://commits.webkit.org/254134@main>
Reviewed commits have been landed. Closing PR #3923 and removing active labels.
Jordan Harband
Which version of Safari might this appear in? 16.2 still has the issue.
Jordan Harband
Safari 16.3 also still has this issue.
Jordan Harband
This continues to be a problem in Safari 17.1.
Jordan Harband
oops, i misunderstood; this is indeed resolved in 17.1.