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

Unified Diff: runtime/lib/integers.cc

Issue 23685004: Don't throw when there is an "onError" for int.parse. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | runtime/lib/integers_patch.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/integers.cc
diff --git a/runtime/lib/integers.cc b/runtime/lib/integers.cc
index 4962ac9e134106b99722d29be89685735c660e9b..5be23af2fea9dbcd0f8a48ea9d524ea1cfc778ac 100644
--- a/runtime/lib/integers.cc
+++ b/runtime/lib/integers.cc
@@ -216,9 +216,6 @@ DEFINE_NATIVE_ENTRY(Integer_parse, 1) {
return Integer::New(temp);
}
- const Array& args = Array::Handle(Array::New(1));
- args.SetAt(0, value);
- Exceptions::ThrowByType(Exceptions::kFormat, args);
return Object::null();
}
« no previous file with comments | « no previous file | runtime/lib/integers_patch.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698