Index: src/regexp.js |
=================================================================== |
--- src/regexp.js (revision 4370) |
+++ src/regexp.js (working copy) |
@@ -166,8 +166,6 @@ |
} else { |
saveAnswer = true; |
} |
- } else { |
- cache.answerSaved = false; |
} |
if (%_ArgumentsLength() == 0) { |
@@ -236,10 +234,8 @@ |
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; |