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

Issue 581593002: Add argument error for int.parse(null). (Closed)

Created:
6 years, 3 months ago by Lasse Reichstein Nielsen
Modified:
6 years, 3 months ago
CC:
reviews_dartlang.org, vm-dev_dartlang.org
Visibility:
Public.

Description

Add argument error for int.parse(null). Slightly tweak _tryParseSmi to generate slightly less code. BUG= http://dartbug.com/17774 R=fschneider@google.com Committed: https://code.google.com/p/dart/source/detail?r=40373

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -4 lines) Patch
M runtime/lib/integers_patch.dart View 2 chunks +5 lines, -4 lines 2 comments Download

Messages

Total messages: 7 (2 generated)
Lasse Reichstein Nielsen
6 years, 3 months ago (2014-09-17 12:12:59 UTC) #2
Florian Schneider
lgtm
6 years, 3 months ago (2014-09-17 12:35:49 UTC) #3
Lasse Reichstein Nielsen
Committed patchset #1 (id:1) manually as 40373 (presubmit successful).
6 years, 3 months ago (2014-09-17 12:51:30 UTC) #4
srdjan
https://codereview.chromium.org/581593002/diff/1/runtime/lib/integers_patch.dart File runtime/lib/integers_patch.dart (right): https://codereview.chromium.org/581593002/diff/1/runtime/lib/integers_patch.dart#newcode65 runtime/lib/integers_patch.dart:65: if (identical(source, null)) throw new ArgumentError(source); Please explain why ...
6 years, 3 months ago (2014-09-17 15:13:53 UTC) #6
Lasse Reichstein Nielsen
6 years, 3 months ago (2014-09-17 15:28:04 UTC) #7
Message was sent while issue was closed.
https://codereview.chromium.org/581593002/diff/1/runtime/lib/integers_patch.dart
File runtime/lib/integers_patch.dart (right):

https://codereview.chromium.org/581593002/diff/1/runtime/lib/integers_patch.d...
runtime/lib/integers_patch.dart:65: if (identical(source, null)) throw new
ArgumentError(source);
Ack, a silly attempt to see if it made any difference (it didn't), but I forgot
to roll it back.
I'll undo that.

Powered by Google App Engine
This is Rietveld 408576698