Index: pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart b/pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart |
index 93e72a2daddb6901d32e5424e5ea43761e1c6200..ee7030ee960a7e547cb71af2b26ac6991f25ef57 100644 |
--- a/pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart |
+++ b/pkg/compiler/lib/src/js_emitter/lazy_emitter/model_emitter.dart |
@@ -305,7 +305,7 @@ class ModelEmitter { |
} |
if (program.hasIsolateSupport) { |
- String isolateName = namer.currentIsolate; |
+ String isolateName = namer.staticStateHolder; |
globals.add( |
new js.Property(js.string(CREATE_NEW_ISOLATE), |
js.js('function () { return $isolateName; }'))); |