Note that for now code running with system principals still has the
hasInstance hook, so instanceof will still return true there if the
platform object and its interface's prototype object are from different
realms. We do plan to align to the behaviour from the spec everywhere in
the near futur
https://github.com/heycam/webidl/pull/356 removed custom hasInstance behavior
in 2017, and the feature has only been shipped by Firefox.
Dropping the support means that JavaScript `instanceof` operator will return
false when the contexts of the object and the constructor don't match, e.g. the
o
2 matches
Mail list logo