Jan de Mooij 6e6a50b7b8 Bug 1760844 part 1 - Remove hasInstance proxy trap. r=iain,peterv,robwu
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
2022-04-04 15:09:29 +00:00
..