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

Unified Diff: pkg/dev_compiler/tool/run.js

Issue 2649613003: Fix for Animation and other polyfills (Closed)
Patch Set: Created 3 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: pkg/dev_compiler/tool/run.js
diff --git a/pkg/dev_compiler/tool/run.js b/pkg/dev_compiler/tool/run.js
index 73069643c073d516023090b6e3f401359624efd2..2c86e20676d476100b4f8e0f1801358e71da6111 100644
--- a/pkg/dev_compiler/tool/run.js
+++ b/pkg/dev_compiler/tool/run.js
@@ -45,7 +45,7 @@ var sdk = requirejs('dart_sdk');
var module = requirejs(test);
var lib = test.split('/').slice(-1)[0];
try {
- module[lib].main();
+ sdk._isolate_helper.startRootIsolate(module[lib].main, [])
console.log('Test ' + test + ' passed.');
} catch (e) {
console.log('Test ' + test + ' failed:\n' + e.toString());

Powered by Google App Engine
This is Rietveld 408576698