diff options
Diffstat (limited to 'js/src/jit-test/tests/jaeger/instanceOfWithKnownTypes.js')
-rw-r--r-- | js/src/jit-test/tests/jaeger/instanceOfWithKnownTypes.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/jaeger/instanceOfWithKnownTypes.js b/js/src/jit-test/tests/jaeger/instanceOfWithKnownTypes.js new file mode 100644 index 0000000000..0ca3dc8d94 --- /dev/null +++ b/js/src/jit-test/tests/jaeger/instanceOfWithKnownTypes.js @@ -0,0 +1,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();
|