diff options
Diffstat (limited to 'js/src/jit-test/tests/bug1775005.js')
-rw-r--r-- | js/src/jit-test/tests/bug1775005.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/bug1775005.js b/js/src/jit-test/tests/bug1775005.js new file mode 100644 index 0000000000..b1cd0ec82a --- /dev/null +++ b/js/src/jit-test/tests/bug1775005.js @@ -0,0 +1,8 @@ +try { + var n = 65536; + const lower = "a".repeat(n) + const upper = "A".repeat(n) + const pat = "^(?:" + lower + "|" + upper + "|" + upper + ")$"; + const re = RegExp(pat, "i"); + re.test(""); +} catch {} |