summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug746397.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/auto-regress/bug746397.js')
-rw-r--r--js/src/jit-test/tests/auto-regress/bug746397.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/auto-regress/bug746397.js b/js/src/jit-test/tests/auto-regress/bug746397.js
new file mode 100644
index 000000000..d915ca7bb
--- /dev/null
+++ b/js/src/jit-test/tests/auto-regress/bug746397.js
@@ -0,0 +1,10 @@
+// |jit-test| error:ReferenceError
+
+// Binary: cache/js-dbg-64-67bf9a4a1f77-linux
+// Flags: --ion-eager
+//
+
+(function () {
+ var a = ['x', 'y'];
+ obj.watch(a[+("0")], counter);
+})();