summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug587366.js
blob: 9934d987a24f3a25455fe0d0237b848c91573c61 (plain)
1
2
3
// Test flat string replacement, per ECMAScriptv5 15.5.4.11.
assertEq("1+2".replace("1+2", "$&+3"), "1+2+3");
assertEq(")".replace(")","*$&*"), "*)*");