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

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: Regen sum 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
« no previous file with comments | « pkg/dev_compiler/lib/sdk/ddc_sdk.sum ('k') | pkg/dev_compiler/test/browser/language_tests.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 4b954e185c4c234e28684f5a2f9b76c1a1bcc6b3..62921bd3ae3beb6b956b74b0658464d68c3751f4 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?
Brian Wilkerson 2016/12/14 20:28:41 If you mean "hardcoded here" then I'd say this is
+ context.declaredVariables.define('dart.library.html', 'true');
+ context.declaredVariables.define('dart.library.io', 'false');
+
return new ModuleCompiler.withContext(context, summaryData);
}
« no previous file with comments | « pkg/dev_compiler/lib/sdk/ddc_sdk.sum ('k') | pkg/dev_compiler/test/browser/language_tests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698