Revision: 5774
Author: [email protected]
Date: Fri Nov  5 06:33:12 2010
Log: Another minor regexp cleanup.
Review URL: http://codereview.chromium.org/4577001
http://code.google.com/p/v8/source/detail?r=5774

Modified:
 /branches/bleeding_edge/src/string.js

=======================================
--- /branches/bleeding_edge/src/string.js       Thu Nov  4 03:24:17 2010
+++ /branches/bleeding_edge/src/string.js       Fri Nov  5 06:33:12 2010
@@ -162,9 +162,6 @@
   var subject = TO_STRING_INLINE(this);
   if (IS_REGEXP(regexp)) {
     if (!regexp.global) return regexp.exec(subject);
-
-    var saveAnswer = false;
-
     %_Log('regexp', 'regexp-match,%0S,%1r', [subject, regexp]);
     // lastMatchInfo is defined in regexp.js.
     return %StringMatch(subject, regexp, lastMatchInfo);
@@ -561,8 +558,6 @@

     return result;
   }
-
-  var saveAnswer = false;

   %_Log('regexp', 'regexp-split,%0S,%1r', [subject, separator]);

--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev

Reply via email to