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

Unified Diff: runtime/lib/object_patch.dart

Issue 11523002: Pass the proper invocation mirror argument to noSuchMethod. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years 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: runtime/lib/object_patch.dart
===================================================================
--- runtime/lib/object_patch.dart (revision 15932)
+++ runtime/lib/object_patch.dart (working copy)
@@ -23,13 +23,17 @@
// A statically dispatched version of Object.toString.
static String _toString(obj) native "Object_toString";
- dynamic _noSuchMethod(String functionName, List args)
+ dynamic _noSuchMethod(bool isMethod,
+ String memberName,
+ List arguments,
+ Map<String,dynamic> namedArguments)
native "Object_noSuchMethod";
srdjan 2012/12/10 23:55:39 remove 'dynamic' as result type. Add space after c
regis 2012/12/11 00:11:04 Done.
/* patch */ dynamic noSuchMethod(InvocationMirror invocation) {
- var methodName = invocation.memberName;
- var args = invocation.positionalArguments;
- return _noSuchMethod(methodName, args);
+ return _noSuchMethod(invocation.isMethod,
+ invocation.memberName,
+ invocation.positionalArguments,
+ invocation.namedArguments);
}
/* patch */ Type get runtimeType native "Object_runtimeType";

Powered by Google App Engine
This is Rietveld 408576698