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

Issue 85633003: Add num.parse. (Closed)

Created:
7 years ago by Lasse Reichstein Nielsen
Modified:
7 years ago
Reviewers:
floitsch, ngeoffray
CC:
reviews_dartlang.org, vm-dev_dartlang.org, Ivan Posva
Visibility:
Public.

Description

Add num.parse. The implementation is still primitive: It calls int.parse, then double.parse, and then fails if it hasn't found a result yet. BUG= http://dartbug.com/8237 R=floitsch@google.com Committed: https://code.google.com/p/dart/source/detail?r=30624 Committed: https://code.google.com/p/dart/source/detail?r=30663

Patch Set 1 #

Patch Set 2 : Remove added empty line #

Patch Set 3 : Remove inserted letter in comment. #

Total comments: 10

Patch Set 4 : Include test file. #

Patch Set 5 : Address review comments. #

Patch Set 6 : Reapply after revert. #

Patch Set 7 : Reapply after revert #

Patch Set 8 : Reupload patch #

Patch Set 9 : Update status file for IE. #

Patch Set 10 : Update status file for IE. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -2 lines) Patch
M runtime/lib/double_patch.dart View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M sdk/lib/core/int.dart View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M sdk/lib/core/num.dart View 1 2 3 4 1 chunk +29 lines, -0 lines 0 comments Download
M tests/corelib/corelib.status View 1 2 3 4 5 6 7 8 2 chunks +6 lines, -0 lines 0 comments Download
A tests/corelib/num_parse_test.dart View 1 2 3 4 5 1 chunk +195 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Lasse Reichstein Nielsen
https://codereview.chromium.org/85633003/diff/50001/runtime/lib/double_patch.dart File runtime/lib/double_patch.dart (right): https://codereview.chromium.org/85633003/diff/50001/runtime/lib/double_patch.dart#newcode49 runtime/lib/double_patch.dart:49: if (result.isNaN) return NAN; This seems like an unnecessary ...
7 years ago (2013-11-25 12:37:40 UTC) #1
floitsch
LGTM. https://codereview.chromium.org/85633003/diff/50001/runtime/lib/double_patch.dart File runtime/lib/double_patch.dart (right): https://codereview.chromium.org/85633003/diff/50001/runtime/lib/double_patch.dart#newcode49 runtime/lib/double_patch.dart:49: if (result.isNaN) return NAN; On 2013/11/25 12:37:40, Lasse ...
7 years ago (2013-11-25 12:50:53 UTC) #2
Lasse Reichstein Nielsen
Added issue http://dartbug.com/15293 for the VM. https://codereview.chromium.org/85633003/diff/50001/sdk/lib/core/int.dart File sdk/lib/core/int.dart (right): https://codereview.chromium.org/85633003/diff/50001/sdk/lib/core/int.dart#newcode249 sdk/lib/core/int.dart:249: * If no ...
7 years ago (2013-11-25 13:05:15 UTC) #3
Lasse Reichstein Nielsen
Committed patchset #5 manually as r30624 (presubmit successful).
7 years ago (2013-11-25 13:09:15 UTC) #4
Lasse Reichstein Nielsen
Nicolas, please take a look. It fails for dart2js on IE9 only.
7 years ago (2013-11-26 08:03:58 UTC) #5
Lasse Reichstein Nielsen
7 years ago (2013-11-26 08:44:48 UTC) #6
Message was sent while issue was closed.
Committed patchset #10 manually as r30663 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698