Index: pkg/compiler/lib/src/js_emitter/model.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/model.dart b/pkg/compiler/lib/src/js_emitter/model.dart |
index be6919d74a893f8ed9c67a9cf21769b0ebd03d1d..0a4facb3c01f184c6962b3eee22211e8fcf8457a 100644 |
--- a/pkg/compiler/lib/src/js_emitter/model.dart |
+++ b/pkg/compiler/lib/src/js_emitter/model.dart |
@@ -22,6 +22,10 @@ class Program { |
final bool hasIsolateSupport; |
/// A map from load id to the list of fragments that need to be loaded. |
final Map<String, List<Fragment>> loadMap; |
+ /// A map from names to strings. |
+ /// |
+ /// This map is needed to support `const Symbol` expressions; |
+ final Map<js.Name, String> symbolsMap; |
// If this field is not `null` then its value must be emitted in the embedded |
// global `TYPE_TO_INTERCEPTOR_MAP`. The map references constants and classes. |
@@ -35,6 +39,7 @@ class Program { |
Program(this.fragments, |
this.holders, |
this.loadMap, |
+ this.symbolsMap, |
this.typeToInterceptorMap, |
this._metadataCollector, |
this.finalizers, |