summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/instanceOfWithKnownTypes.js
blob: 0ca3dc8d94770e88e4a7e4745eb598bff5378f21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// |jit-test| error: TypeError

// Verify that the compiler doesn't assert.

function f() {
    var o = {}, p = {};
    z = o instanceof p;
    z = 3 instanceof p;
    z = p instanceof 3;
    z = 3 instanceof 4;
}

f();