Index: pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart |
diff --git a/pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart b/pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart |
index 6a5716b42bea5d71b2c32738be210c419ea9ef83..31b3c4e5075e048b13e8a068e42b24b9ceca07dc 100644 |
--- a/pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart |
+++ b/pkg/compiler/lib/src/js_emitter/full_emitter/emitter.dart |
@@ -1982,10 +1982,6 @@ function(originalDescriptor, name, holder, isStatic, globalFunctionsAccess) { |
..add(js.statement('${typesAccess}.push.apply(${typesAccess}, ' |
'${namer.deferredTypesName});')); |
- // Sets the static state variable to the state of the current isolate |
- // (which is provided as second argument). |
- body.add(js.statement("${namer.staticStateHolder} = arguments[1];")); |
- |
body.add(buildCompileTimeConstants(fragment.constants, |
isMainFragment: false)); |
body.add(buildStaticNonFinalFieldInitializations(outputUnit)); |
@@ -1995,7 +1991,7 @@ function(originalDescriptor, name, holder, isStatic, globalFunctionsAccess) { |
statements |
..add(buildGeneratedBy()) |
..add(js.statement('${deferredInitializers}.current = ' |
- """function (#) { |
+ """function (#, ${namer.staticStateHolder}) { |
# |
} |
""", [globalsHolder, body])); |