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

Issue 10454032: Fix creating substring in string.replace(<global regexp>, <function>). (Closed)

Created:
8 years, 7 months ago by Yang
Modified:
8 years, 6 months ago
CC:
v8-dev
Visibility:
Public.

Description

Fix creating substring in string.replace(<global regexp>, <function>). BUG= TEST=regexp-global.js Committed: https://code.google.com/p/v8/source/detail?r=11661

Patch Set 1 #

Total comments: 6
Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -3 lines) Patch
M src/runtime.cc View 3 chunks +9 lines, -3 lines 2 comments Download
M test/mjsunit/regexp-global.js View 1 chunk +5 lines, -0 lines 4 comments Download

Messages

Total messages: 4 (0 generated)
Yang
PTAL. This caused an assertion failure in debug mode when the subcapture is not an ...
8 years, 7 months ago (2012-05-25 08:18:06 UTC) #1
Erik Corry
LGTM
8 years, 7 months ago (2012-05-25 10:50:07 UTC) #2
Lasse Reichstein Nielsen
drive-by-comment https://chromiumcodereview.appspot.com/10454032/diff/1/src/runtime.cc File src/runtime.cc (right): https://chromiumcodereview.appspot.com/10454032/diff/1/src/runtime.cc#newcode3950 src/runtime.cc:3950: if (!first) { "first" is actually badly named. ...
8 years, 6 months ago (2012-05-29 09:06:52 UTC) #3
Lasse Reichstein Nielsen
8 years, 6 months ago (2012-05-29 10:41:28 UTC) #4
https://chromiumcodereview.appspot.com/10454032/diff/1/test/mjsunit/regexp-gl...
File test/mjsunit/regexp-global.js (right):

https://chromiumcodereview.appspot.com/10454032/diff/1/test/mjsunit/regexp-gl...
test/mjsunit/regexp-global.js:129: // Test capture that is a real substring.
Actually, you are testing a capture that *isn't* a proper substring.

https://chromiumcodereview.appspot.com/10454032/diff/1/test/mjsunit/regexp-gl...
test/mjsunit/regexp-global.js:132: assertEquals("~~");
My bad, you already fixed that.

Powered by Google App Engine
This is Rietveld 408576698