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

Issue 5338005: Fix number parsing to not allow space between sign and digits. (Closed)

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

Description

Fix number parsing to not allow space between sign and digits. Affects both parseFloat and ToNumber conversion. Fix issue 946.

Patch Set 1 #

Total comments: 2

Patch Set 2 : Address review comment. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+7 lines, -5 lines) Patch
M src/conversions.cc View 1 1 chunk +3 lines, -3 lines 0 comments Download
M test/cctest/test-conversions.cc View 1 chunk +4 lines, -2 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Lasse Reichstein
10 years ago (2010-11-26 12:28:01 UTC) #1
Karl Klose
LGTM if the comment is addressed.
10 years ago (2010-11-26 12:40:02 UTC) #2
Karl Klose
http://codereview.chromium.org/5338005/diff/1/src/conversions.cc File src/conversions.cc (right): http://codereview.chromium.org/5338005/diff/1/src/conversions.cc#newcode453 src/conversions.cc:453: if (current == end) return JUNK_STRING_VALUE; Should the comment ...
10 years ago (2010-11-26 12:40:12 UTC) #3
Lasse Reichstein
http://codereview.chromium.org/5338005/diff/1/src/conversions.cc File src/conversions.cc (right): http://codereview.chromium.org/5338005/diff/1/src/conversions.cc#newcode453 src/conversions.cc:453: if (current == end) return JUNK_STRING_VALUE; Good catch. I'll ...
10 years ago (2010-11-26 12:46:01 UTC) #4
Karl Klose
10 years ago (2010-11-26 12:48:07 UTC) #5
Good, LGTM.

Powered by Google App Engine
This is Rietveld 408576698