Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(939)

Unified Diff: src/regexp.js

Issue 1638001: Adding Lasse's improvement to r4364 ... (Closed) Base URL: http://v8.googlecode.com/svn/branches/bleeding_edge/
Patch Set: Created 10 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698