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

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

Issue 1055923002: Don't call dinvoke on Object methods (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: modify test Created 5 years, 9 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/async.js
diff --git a/lib/runtime/dart/async.js b/lib/runtime/dart/async.js
index 31e448b72d84a7cbb065b712f2d4fc564a766c65..eae1004d9a62bbdb5b4882df46cfd9cfd1a37217 100644
--- a/lib/runtime/dart/async.js
+++ b/lib/runtime/dart/async.js
@@ -24,7 +24,7 @@ var async;
this.stackTrace = stackTrace;
}
toString() {
- return dart.as(dart.dinvoke(this.error, 'toString'), core.String);
+ return dart.as(this.error.toString(), core.String);
}
}
AsyncError[dart.implements] = () => [core.Error];

Powered by Google App Engine
This is Rietveld 408576698