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

Unified Diff: runtime/lib/errors_patch.dart

Issue 19819003: Make reflective invocations raise NoSuchMethodErrors in the cases where non-reflective invocations … (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 5 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 | runtime/lib/mirrors.cc » ('j') | runtime/lib/mirrors.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/lib/errors_patch.dart
===================================================================
--- runtime/lib/errors_patch.dart (revision 25346)
+++ runtime/lib/errors_patch.dart (working copy)
@@ -143,9 +143,13 @@
}
var args_mismatch = _existingArgumentNames != null;
StringBuffer msg_buf = new StringBuffer(_developerMessage(args_mismatch));
- String receiver_str = Error.safeToString(_receiver);
- if ("Type: class '::'" == receiver_str) {
+ String receiver_str;
+ var level = (_invocation_type >> _InvocationMirror._CALL_SHIFT) &
+ _InvocationMirror._CALL_MASK;
+ if ( level == _InvocationMirror._TOP_LEVEL) {
receiver_str = "top-level";
+ } else {
+ receiver_str = Error.safeToString(_receiver);
}
if (!args_mismatch) {
msg_buf.write(
« no previous file with comments | « no previous file | runtime/lib/mirrors.cc » ('j') | runtime/lib/mirrors.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698