Bug 593611 - Add missing test for bug 593611. r=needed-tests
authorChristian Holler <choller@mozilla.com>
Wed, 20 Mar 2013 03:58:09 +0100
changeset 131997 e051419897daaa3e8a7c71b47cc0b575c656ba45
parent 131996 053bb31882c4246b504139c7ba09f91dd1aa71f7
child 131998 f1c918eaacfa6c7b48ab4bdd4034e0f45e11f22c
push idunknown
push userunknown
push dateunknown
reviewersneeded-tests
bugs593611
milestone22.0a1
Bug 593611 - Add missing test for bug 593611. r=needed-tests
js/src/jit-test/tests/basic/bug593611.js
new file mode 100644
--- /dev/null
+++ b/js/src/jit-test/tests/basic/bug593611.js
@@ -0,0 +1,10 @@
+(function() {
+  __defineGetter__("x", /x/.constructor)
+})()
+for (var a = 0; a < 4; ++a) {
+  if (a % 4 == 1) {
+    gc()
+  } else {
+    print(x);
+  }
+}