git://git.webkit.org
/
WebKit-https.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
FTL should simplify StringReplace with an empty replacement string
[WebKit-https.git]
/
LayoutTests
/
js
/
regress
/
script-tests
/
string-replace.js
diff --git
a/LayoutTests/js/regress/script-tests/string-replace.js
b/LayoutTests/js/regress/script-tests/string-replace.js
index
2a31929
..
56e152c
100644
(file)
--- a/
LayoutTests/js/regress/script-tests/string-replace.js
+++ b/
LayoutTests/js/regress/script-tests/string-replace.js
@@
-1,7
+1,7
@@
(function() {
var result;
for (var i = 0; i < 400000; ++i) {
- result = "foo".replace(/f/, "b");
+ result = "foo".replace(/f/
g
, "b");
}
if (result != "boo")
throw "Error: bad result: "+ result;