diff options
Diffstat (limited to 'js/src/jit-test/tests/basic/bug587366.js')
-rw-r--r-- | js/src/jit-test/tests/basic/bug587366.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/js/src/jit-test/tests/basic/bug587366.js b/js/src/jit-test/tests/basic/bug587366.js new file mode 100644 index 000000000..9934d987a --- /dev/null +++ b/js/src/jit-test/tests/basic/bug587366.js @@ -0,0 +1,3 @@ +// Test flat string replacement, per ECMAScriptv5 15.5.4.11. +assertEq("1+2".replace("1+2", "$&+3"), "1+2+3"); +assertEq(")".replace(")","*$&*"), "*)*"); |