summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug1238630.js
diff options
context:
space:
mode:
Diffstat (limited to 'js/src/jit-test/tests/basic/bug1238630.js')
-rw-r--r--js/src/jit-test/tests/basic/bug1238630.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/bug1238630.js b/js/src/jit-test/tests/basic/bug1238630.js
new file mode 100644
index 0000000000..021b66af55
--- /dev/null
+++ b/js/src/jit-test/tests/basic/bug1238630.js
@@ -0,0 +1,7 @@
+var g = /1/g;
+g.exec('1234561');
+g.exec();
+var r = /uDC38/ug;
+r.lastIndex = 1;
+var str = "\uD83D\uDC38";
+r.exec(str);