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

Issue 4750003: Make String.prototype.split honor limit when separator is empty. (Closed)

Created:
10 years, 1 month ago by Vitaly Repeshko
Modified:
9 years, 7 months ago
CC:
v8-dev
Visibility:
Public.

Description

Make String.prototype.split honor limit when separator is empty. BUG=929 Committed: http://code.google.com/p/v8/source/detail?r=5806

Patch Set 1 #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -4 lines) Patch
M src/runtime.h View 1 chunk +1 line, -1 line 0 comments Download
M src/runtime.cc View 1 chunk +3 lines, -2 lines 0 comments Download
M src/string.js View 1 chunk +1 line, -1 line 1 comment Download
M test/mjsunit/string-split.js View 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Vitaly Repeshko
10 years, 1 month ago (2010-11-09 22:56:51 UTC) #1
Mads Ager (chromium)
10 years, 1 month ago (2010-11-10 09:45:32 UTC) #2
LGTM!

http://codereview.chromium.org/4750003/diff/1/src/string.js
File src/string.js (right):

http://codereview.chromium.org/4750003/diff/1/src/string.js#newcode555
src/string.js:555: if (separator_length === 0) return %StringToArray(subject,
limit);
Accidental indentation change?

Powered by Google App Engine
This is Rietveld 408576698