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

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

Issue 2739863003: Add option to suppress type-check whitelisting (Closed)
Patch Set: Created 3 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: pkg/dev_compiler/tool/run.js
diff --git a/pkg/dev_compiler/tool/run.js b/pkg/dev_compiler/tool/run.js
index 6783750863be80b6afc8bee629ed6d155c75cca8..90a2c8ab02f313e8c1e66136e46ca1eb525086f6 100644
--- a/pkg/dev_compiler/tool/run.js
+++ b/pkg/dev_compiler/tool/run.js
@@ -42,11 +42,11 @@ requirejs.config({
// TODO(vsm): Factor out test framework code in test/browser/language_tests.js
// and use here. Async tests and unittests won't work without it.
var sdk = requirejs('dart_sdk');
+sdk.dart.ignoreWhitelistedErrors(false);
var module = requirejs(test);
var lib = test.split('/').slice(-1)[0];
try {
- sdk._isolate_helper.startRootIsolate(() => {}, []);
- 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());
« no previous file with comments | « pkg/dev_compiler/tool/input_sdk/private/regexp_helper.dart ('k') | pkg/dev_compiler/tool/sdk_expected_errors.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698