Revision: 4801
Author: [email protected]
Date: Fri Jun  4 06:43:41 2010
Log: Fix issue in previous test optimization
Review URL: http://codereview.chromium.org/2653002
http://code.google.com/p/v8/source/detail?r=4801

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

=======================================
--- /branches/bleeding_edge/src/regexp.js       Fri Jun  4 06:37:28 2010
+++ /branches/bleeding_edge/src/regexp.js       Fri Jun  4 06:43:41 2010
@@ -301,8 +301,7 @@
       %_StringCharCodeAt(this.source,2) != 63) { // '?'
     if (!%_ObjectEquals(regexp_key, this)) {
       regexp_key = this;
-      regexp_val = new $RegExp(this.source.substring(2,
- this.source.length - 2), + regexp_val = new $RegExp(this.source.substring(2, this.source.length),
                                (this.global ? 'g' : '')
                                + (this.ignoreCase ? 'i' : '')
                                + (this.multiline ? 'm' : ''));

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

Reply via email to