Index: test/mjsunit/string-replace.js |
diff --git a/test/mjsunit/string-replace.js b/test/mjsunit/string-replace.js |
index 9e4f559e4cfd7c8d4edf74c3d6b9953956460526..f6e923d44276c5f2091fc0b08d4a0e8ea3fd6139 100644 |
--- a/test/mjsunit/string-replace.js |
+++ b/test/mjsunit/string-replace.js |
@@ -207,3 +207,8 @@ replaceTest("[ab-aabb-ab-b][az-aazz-az-z]", |
replaceTest("[ab-aabb-ab-b][az-aazz-az-z]", |
"abaz", /a(.)/g, replacer); |
+ |
+var str = 'She sells seashells by the seashore.'; |
+var re = /sh/g; |
+assertEquals('She sells sea$schells by the sea$schore.', |
+ str.replace(re,"$$" + 'sch')) |