class Test { } const x = new Test(); x.__proto__ = {}; console.log(x instanceof Test); // ??
instanceof
true
false