summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testContinueWithLabel4.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/testContinueWithLabel4.js')
-rw-r--r--js/src/jit-test/tests/basic/testContinueWithLabel4.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/testContinueWithLabel4.js b/js/src/jit-test/tests/basic/testContinueWithLabel4.js
new file mode 100644
index 000000000..739726c7a
--- /dev/null
+++ b/js/src/jit-test/tests/basic/testContinueWithLabel4.js
@@ -0,0 +1,25 @@
+// bug 511575
+
+Function.prototype.X = 42;
+
+function ownProperties() {
+ var props = {};
+ var r = function () {};
+
+ outer:
+ for (var a in r) {
+ for (var b in r) {
+ if (a == b) {
+ continue outer;
+ }
+ }
+ print("SHOULD NOT BE REACHED");
+ props[a] = true;
+ }
+ return props;
+}
+
+for (var i = 0; i < 12; ++i) {
+ print(i);
+ ownProperties();
+}