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

Issue 7685005: Inserted a missing string encoding check in lastIndexOf. (Closed)

Created:
9 years, 4 months ago by Yang
Modified:
9 years, 4 months ago
CC:
v8-dev
Visibility:
Public.

Description

Inserted a missing string encoding check in lastIndexOf. Committed: http://code.google.com/p/v8/source/detail?r=8992

Patch Set 1 #

Total comments: 2

Patch Set 2 : Included a test case. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -10 lines) Patch
M src/runtime.cc View 1 1 chunk +15 lines, -9 lines 1 comment Download
M src/string.js View 1 chunk +1 line, -1 line 0 comments Download
M test/cctest/test-api.cc View 1 2 chunks +7 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Yang
Hi Vitaly, here is something I noticed when implementing stuff for slices. Please take a ...
9 years, 4 months ago (2011-08-19 13:38:52 UTC) #1
Vitaly Repeshko
We agreed Yang will write a cctest and restore the check in runtime.cc to keep ...
9 years, 4 months ago (2011-08-19 16:30:00 UTC) #2
Yang
As it turned out, a similar test case already exists. I constructed it the way ...
9 years, 4 months ago (2011-08-22 11:54:58 UTC) #3
Vitaly Repeshko
9 years, 4 months ago (2011-08-22 13:37:46 UTC) #4
LGTM

http://codereview.chromium.org/7685005/diff/5001/src/runtime.cc
File src/runtime.cc (right):

http://codereview.chromium.org/7685005/diff/5001/src/runtime.cc#newcode3167
src/runtime.cc:3167: // Extract flattened substrings of cons strings before
determining asciiness.
nit: Move the comment one line above.

Powered by Google App Engine
This is Rietveld 408576698