Debian Codegraph @

js/src/jit-test/tests/jaeger/instanceOfWithKnownTypes.js

raw
1 // |jit-test| error: TypeError
2
3 // Verify that the compiler doesn't assert.
4
5 function f() {
6 var o = {}, p = {};
7 z = o instanceof p;
8 z = 3 instanceof p;
9 z = p instanceof 3;
10 z = 3 instanceof 4;
11 }
12
13 f();