Commit 67116752 authored by sandholm@chromium.org's avatar sandholm@chromium.org
parent 82ddab5f
......@@ -166,8 +166,6 @@ function RegExpExec(string) {
} else {
saveAnswer = true;
}
} else {
cache.answerSaved = false;
}
if (%_ArgumentsLength() == 0) {
......@@ -236,10 +234,8 @@ function RegExpExec(string) {
cache.regExp = this;
cache.subject = s;
cache.lastIndex = lastIndex;
if (saveAnswer) {
cache.answer = CloneRegexpAnswer(result);
cache.answerSaved = true;
}
if (saveAnswer) cache.answer = CloneRegexpAnswer(result);
cache.answerSaved = saveAnswer;
cache.type = 'exec';
}
return result;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment