summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/undefined-warning-bug1274499.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/undefined-warning-bug1274499.js')
-rw-r--r--js/src/jit-test/tests/basic/undefined-warning-bug1274499.js13
1 files changed, 13 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/undefined-warning-bug1274499.js b/js/src/jit-test/tests/basic/undefined-warning-bug1274499.js
new file mode 100644
index 000000000..d8e48323b
--- /dev/null
+++ b/js/src/jit-test/tests/basic/undefined-warning-bug1274499.js
@@ -0,0 +1,13 @@
+options("strict", "werror");
+
+var o = {};
+var failureCode = 0;
+
+try {
+ // Don't throw here.
+ if (o.a || o.b)
+ failureCode = 1;
+} catch (e) {
+ failureCode = 2
+}
+assertEq(failureCode, 0);