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

Unified Diff: frog/lib/natives.dart

Issue 10054031: Pass optional arguments to NullPointerException constructor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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 | « corelib/src/exceptions.dart ('k') | frog/minfrog » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: frog/lib/natives.dart
diff --git a/frog/lib/natives.dart b/frog/lib/natives.dart
index b5de7aa0b4c901f3a03d55c67988de601f7bdefe..4b21cca6dc5113c38299005baa3a005faebb83fe 100644
--- a/frog/lib/natives.dart
+++ b/frog/lib/natives.dart
@@ -32,14 +32,14 @@ if (e instanceof TypeError) {
case 'property_not_function':
case 'called_non_callable':
if (e.arguments[0] == null) {
- return attachStack(new NullPointerException());
+ return attachStack(new NullPointerException(null, []));
} else {
return attachStack(new ObjectNotClosureException());
}
break;
case 'non_object_property_call':
case 'non_object_property_load':
- return attachStack(new NullPointerException());
+ return attachStack(new NullPointerException(null, []));
break;
case 'undefined_method':
var mname = e.arguments[0];
@@ -60,7 +60,7 @@ if (e instanceof TypeError) {
return e;""" {
// Ensure constructors are generated
new ObjectNotClosureException();
- new NullPointerException();
+ new NullPointerException(null, null);
new NoSuchMethodException(null, null, null);
new StackOverflowException();
}
« no previous file with comments | « corelib/src/exceptions.dart ('k') | frog/minfrog » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698