mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-24 19:37:15 +00:00

This removes the non-standard `hasInstance` proxy trap. All objects will now use the algorithm in `JS::InstanceofOperator`. That function uses other primitives and proxy traps already available to JS code. As discussed in the bug, there's a minor difference in behavior: for `xrayWrapper instanceof xrayWaiver` we used to always return false but we can now invoke `xrayWaiver[Symbol.hasInstance]()`. Differential Revision: https://phabricator.services.mozilla.com/D142061