| 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 | ||
Pull request: https://github.com/WebKit/WebKit/pull/3424 Pull request: https://github.com/WebKit/WebKit/pull/3923 Committed 254134@main (78a9dd6fd369): <https://commits.webkit.org/254134@main> Reviewed commits have been landed. Closing PR #3923 and removing active labels. Which version of Safari might this appear in? 16.2 still has the issue. Safari 16.3 also still has this issue. This continues to be a problem in Safari 17.1. oops, i misunderstood; this is indeed resolved in 17.1. |
`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)`.