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

Issue 3389022: RegExp: Fix caching to correctly set lastIndex. (Closed)

Created:
10 years, 3 months ago by Lasse Reichstein
Modified:
9 years, 6 months ago
Reviewers:
Erik Corry
CC:
v8-dev
Visibility:
Public.

Description

RegExp: Fix caching to correctly set lastIndex. BUG: 52801

Patch Set 1 #

Patch Set 2 : Added test. Fix bug. #

Total comments: 1

Patch Set 3 : Address review comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -0 lines) Patch
M src/regexp.js View 1 2 2 chunks +8 lines, -0 lines 0 comments Download
A test/mjsunit/regress/regress-52801.js View 1 chunk +71 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Lasse Reichstein
10 years, 3 months ago (2010-09-22 08:19:21 UTC) #1
Erik Corry
10 years, 3 months ago (2010-09-22 09:25:54 UTC) #2
LGTM

http://codereview.chromium.org/3389022/diff/2001/3001
File src/regexp.js (right):

http://codereview.chromium.org/3389022/diff/2001/3001#newcode286
src/regexp.js:286: if (this.global) this.lastIndex = lastMatchInfo[CAPTURE1];
We need a little comment here to explain why we only have to do this if the
regexp is global.

Powered by Google App Engine
This is Rietveld 408576698