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 92cfc59e170b217cbc3e0c6035045a6de6ee83cd..ea6764859825648befa346c82d23fb233c04149b 100644 |
--- a/pkg/dev_compiler/lib/src/compiler/compiler.dart |
+++ b/pkg/dev_compiler/lib/src/compiler/compiler.dart |
@@ -94,6 +94,8 @@ class ModuleCompiler { |
context.typeProvider = sdkResolver.dartSdk.context.typeProvider; |
context.resultProvider = |
new InputPackagesResultProvider(context, summaryData); |
+ options.declaredVariables.forEach(context.declaredVariables.define); |
+ context.declaredVariables.define('dart.isVM', 'false'); |
return new ModuleCompiler.withContext(context, summaryData); |
} |