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

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
« no previous file with comments | « runtime/lib/object.cc ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/object_patch.dart
===================================================================
--- runtime/lib/object_patch.dart (revision 15938)
+++ 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)
+ _noSuchMethod(bool isMethod,
+ String memberName,
+ List arguments,
+ Map<String, dynamic> namedArguments)
native "Object_noSuchMethod";
- /* patch */ dynamic noSuchMethod(InvocationMirror invocation) {
- var methodName = invocation.memberName;
- var args = invocation.positionalArguments;
- return _noSuchMethod(methodName, args);
+ /* patch */ noSuchMethod(InvocationMirror invocation) {
+ return _noSuchMethod(invocation.isMethod,
+ invocation.memberName,
+ invocation.positionalArguments,
+ invocation.namedArguments);
}
/* patch */ Type get runtimeType native "Object_runtimeType";
« no previous file with comments | « runtime/lib/object.cc ('k') | runtime/vm/bootstrap_natives.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698