Index: lib/runtime/dart/_runtime.js |
diff --git a/lib/runtime/dart/_runtime.js b/lib/runtime/dart/_runtime.js |
index 97e39946de2dc4c2e610dec147d1cc828c4974ae..85bc89066e45cf4bf01f8bbb7f580139f180c563 100644 |
--- a/lib/runtime/dart/_runtime.js |
+++ b/lib/runtime/dart/_runtime.js |
@@ -426,14 +426,13 @@ dart_library.library('dart/_runtime', null, /* Imports */[ |
throwNoSuchMethod(obj, name, pArgs); |
} |
function checkAndCall(f, ftype, obj, args, name) { |
- let originalFunction = f; |
if (!(f instanceof Function)) { |
if (f != null) { |
ftype = getMethodType(f, 'call'); |
f = f.call; |
} |
if (!(f instanceof Function)) { |
- throwNoSuchMethodFunc(obj, name, args, originalFunction); |
+ throwNoSuchMethodFunc(obj, name, args); |
} |
} |
if (ftype === void 0) { |
@@ -445,7 +444,7 @@ dart_library.library('dart/_runtime', null, /* Imports */[ |
if (checkApply(ftype, args)) { |
return f.apply(obj, args); |
} |
- throwNoSuchMethodFunc(obj, name, args, originalFunction); |
+ throwNoSuchMethodFunc(obj, name, args, f); |
} |
function dcall(f, ...args) { |
let ftype = read(f); |