Skip to content

Commit

Permalink
Bug 1108382 - Part 4: Do not use non-standard flag argument of String…
Browse files Browse the repository at this point in the history
….prototype.replace in build/pgo/. r=jandem
  • Loading branch information
arai-a committed Mar 1, 2015
1 parent c8a5e78 commit 0a48a99
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/pgo/js-input/sunspider/regexp-dna.html
Expand Up @@ -1741,14 +1741,14 @@ <h3>regexp-dna</h3>
dnaInput = dnaInput.replace(/>.*\n|\n/g,"")
clen = dnaInput.length

var dnaOutputString;
var dnaOutputString = "";

for(i in seqs)
dnaOutputString += seqs[i].source + " " + (dnaInput.match(seqs[i]) || []).length + "\n";
// match returns null if no matches, so replace with empty

for(k in subs)
dnaInput = dnaInput.replace(k, subs[k], "g")
dnaInput = dnaInput.replace(k, subs[k]) // FIXME: Would like this to be a global substitution in a future version of SunSpider.
// search string, replacement string, flags


Expand Down

0 comments on commit 0a48a99

Please sign in to comment.