Index: pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart b/pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart |
index 23646b7d6436cf3c52d6c31c6a86da2415abb94e..081270bbf351ae88e7fc01d80dc49a54dc98b8d1 100644 |
--- a/pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart |
+++ b/pkg/compiler/lib/src/js_emitter/new_emitter/model_emitter.dart |
@@ -66,8 +66,12 @@ class ModelEmitter { |
} |
js.Expression generateEmbeddedGlobalAccess(String global) { |
- // TODO(floitsch): We should not use "init" for globals. |
- return js.js("init.$global"); |
+ return js.js(generateEmbeddedGlobalAccessString(global)); |
+ } |
+ |
+ String generateEmbeddedGlobalAccessString(String global) { |
+ // TODO(floitsch): don't use 'init' as global embedder storage. |
+ return 'init.$global'; |
} |
bool isConstantInlinedOrAlreadyEmitted(ConstantValue constant) { |