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

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

Issue 1100633006: Generate static calls for Object fields and methods (Closed) Base URL: https://github.com/dart-lang/dev_compiler.git@master
Patch Set: Better static dispatch check Created 5 years, 8 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/_isolate_helper.js
diff --git a/lib/runtime/dart/_isolate_helper.js b/lib/runtime/dart/_isolate_helper.js
index 556c8520c43168b5c703c085e43ca1187c43a35f..ea55492038e881b599b0c646fea87571cf0ace72 100644
--- a/lib/runtime/dart/_isolate_helper.js
+++ b/lib/runtime/dart/_isolate_helper.js
@@ -602,8 +602,8 @@ var _isolate_helper;
return;
}
let message = new core.List(2);
- message[core.$set](0, error.toString());
- message[core.$set](1, stackTrace == null ? null : stackTrace.toString());
+ message[core.$set](0, dart.toString(error));
+ message[core.$set](1, stackTrace == null ? null : dart.toString(stackTrace));
for (let port of this.errorPorts)
port.send(message);
}
@@ -1009,7 +1009,7 @@ var _isolate_helper;
IsolateNatives.enableSpawnWorker = true;
let isLight = false;
let isSpawnUri = true;
- return IsolateNatives.spawn(null, uri.toString(), args, message, isLight, isSpawnUri, startPaused);
+ return IsolateNatives.spawn(null, dart.toString(uri), args, message, isLight, isSpawnUri, startPaused);
}
static spawn(functionName, uri, args, message, isLight, isSpawnUri, startPaused) {
if (uri != null && dart.notNull(uri.endsWith(".dart"))) {

Powered by Google App Engine
This is Rietveld 408576698