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

Unified Diff: lib/runtime/dart/_runtime.js

Issue 1625563002: Use the great new Devtools API for custom formatters. Now Dart objects are now generally as easy to… (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 4 years, 11 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
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);

Powered by Google App Engine
This is Rietveld 408576698