summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug532363.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/auto-regress/bug532363.js')
-rw-r--r--js/src/jit-test/tests/auto-regress/bug532363.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/auto-regress/bug532363.js b/js/src/jit-test/tests/auto-regress/bug532363.js
new file mode 100644
index 000000000..10cdbef4a
--- /dev/null
+++ b/js/src/jit-test/tests/auto-regress/bug532363.js
@@ -0,0 +1,10 @@
+// Binary: cache/js-dbg-32-410468c50ca1-linux
+// Flags: -j
+//
+load(libdir + 'asserts.js');
+assertThrowsInstanceOf(function() {
+ for each(z in [0, 0, 0, 0]) { ({
+ __parent__: []
+ } = [])
+ }
+}, TypeError); // [].__parent__ is undefined