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

Unified Diff: runtime/lib/mirrors_impl.dart

Issue 181063025: Match existing expectation that delegate returns unwrapped values. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 10 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 | tests/lib/mirrors/delegate_function_invocation_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/mirrors_impl.dart
diff --git a/runtime/lib/mirrors_impl.dart b/runtime/lib/mirrors_impl.dart
index 2c08ffd88b0f2065e9c57911772f0dcb54ce13c6..acb421bd3ddb8c33742db83269b4c704102b4ef8 100644
--- a/runtime/lib/mirrors_impl.dart
+++ b/runtime/lib/mirrors_impl.dart
@@ -479,7 +479,7 @@ class _LocalClosureMirror extends _LocalInstanceMirror
delegate(Invocation invocation) {
if (invocation.isMethod && (invocation.memberName == #call)) {
return this.apply(invocation.positionalArguments,
- invocation.namedArguments);
+ invocation.namedArguments).reflectee;
}
return super.delegate(invocation);
}
« no previous file with comments | « no previous file | tests/lib/mirrors/delegate_function_invocation_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698