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

Unified Diff: lib/compiler/implementation/lib/core_patch.dart

Issue 11231074: Change signature of noSuchMethod to take an InvocationMirror. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 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
Index: lib/compiler/implementation/lib/core_patch.dart
diff --git a/lib/compiler/implementation/lib/core_patch.dart b/lib/compiler/implementation/lib/core_patch.dart
index d319a0784d4b1d64fd8bbc5c55c84198d130fbb9..2d027c42797efe661ec4a2d8bad1accc18236417 100644
--- a/lib/compiler/implementation/lib/core_patch.dart
+++ b/lib/compiler/implementation/lib/core_patch.dart
@@ -19,8 +19,11 @@ patch class Object {
patch String toString() => Primitives.objectToString(this);
- patch Dynamic noSuchMethod(String name, List args) {
- throw new NoSuchMethodError(this, name, args);
+ patch Dynamic noSuchMethod(InvocationMirror invocation) {
Ivan Posva 2012/10/26 02:34:26 dynamic
+ throw new NoSuchMethodError(this,
+ invocation.methodName,
+ invocation.positionalArguments,
+ invocation.namedArguments);
}
patch Type get runtimeType {

Powered by Google App Engine
This is Rietveld 408576698