Reviewers: Lasse Reichstein,
Message:
TBR
Description:
Fix issue in previous test optimization
Please review this at http://codereview.chromium.org/2653002/show
SVN Base: http://v8.googlecode.com/svn/branches/bleeding_edge/
Affected files:
M src/regexp.js
Index: src/regexp.js
===================================================================
--- src/regexp.js (revision 4800)
+++ src/regexp.js (working copy)
@@ -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