Index: pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart b/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart |
index 372536f30ea80e8af5464774c8d9da1b1ca7b729..deadcb73e45f98b3adc99294156ef817ae67a765 100644 |
--- a/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart |
+++ b/pkg/compiler/lib/src/js_emitter/program_builder/program_builder.dart |
@@ -99,9 +99,9 @@ class ProgramBuilder { |
collector.outputStaticNonFinalFieldLists.forEach( |
_registry.registerElements); |
- // TODO(kasperl): There's code that implicitly needs access to the special |
- // $ holder so we have to register that. Can we track if we have to? |
- _registry.registerHolder(r'$'); |
+ // We always add the current isolate holder. |
+ _registry.registerHolder( |
+ namer.staticStateHolder, isStaticStateHolder: true); |
// We need to run the native-preparation before we build the output. The |
// preparation code, in turn needs the classes to be set up. |