Align instanceof with the final ES6 spec.

This commit is contained in:
wolfbeast 2019-02-07 10:39:40 +01:00 • committed by Roy Tam
commit becadd3588
11 changed files with 79 additions and 18 deletions

View file

@ -482,6 +482,8 @@ class XrayWrapper : public Base {
JS::AutoIdVector& props) const override;
virtual bool getBuiltinClass(JSContext* cx, JS::HandleObject wapper, js::ESClass* cls) const override;
virtual bool hasInstance(JSContext* cx, JS::HandleObject wrapper,
JS::MutableHandleValue v, bool* bp) const override;
virtual const char* className(JSContext* cx, JS::HandleObject proxy) const override;
static const XrayWrapper singleton;