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

Unified Diff: pkg/dev_compiler/lib/src/compiler/compiler.dart

Issue 2578573003: Add dart:io stubs to ddc sdk, define dart.library.html (Closed)
Patch Set: Add tests Created 4 years 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/lib/src/compiler/compiler.dart
diff --git a/pkg/dev_compiler/lib/src/compiler/compiler.dart b/pkg/dev_compiler/lib/src/compiler/compiler.dart
index ea6764859825648befa346c82d23fb233c04149b..899e18a59e405b8c2ade00284931ab21148f4f10 100644
--- a/pkg/dev_compiler/lib/src/compiler/compiler.dart
+++ b/pkg/dev_compiler/lib/src/compiler/compiler.dart
@@ -97,6 +97,10 @@ class ModuleCompiler {
options.declaredVariables.forEach(context.declaredVariables.define);
context.declaredVariables.define('dart.isVM', 'false');
+ // TODO(vsm): Should this be hardcoded?
+ context.declaredVariables.define('dart.library.html', 'true');
+ context.declaredVariables.define('dart.library.io', 'false');
vsm 2016/12/14 16:20:28 FYI - I verified that the tests print "html". Wit
+
return new ModuleCompiler.withContext(context, summaryData);
}

Powered by Google App Engine
This is Rietveld 408576698