summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testMatchStringObject.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/testMatchStringObject.js')
-rw-r--r--js/src/jit-test/tests/basic/testMatchStringObject.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/testMatchStringObject.js b/js/src/jit-test/tests/basic/testMatchStringObject.js
new file mode 100644
index 000000000..cde2da1ae
--- /dev/null
+++ b/js/src/jit-test/tests/basic/testMatchStringObject.js
@@ -0,0 +1,8 @@
+function testMatchStringObject() {
+ var a = new String("foo");
+ var b;
+ for (i = 0; i < 300; i++)
+ b = a.match(/bar/);
+ return b;
+}
+assertEq(testMatchStringObject(), null);