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..81879e68cf680786c05b2a8a12eba526e7967c55 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 (#, \$) { |
floitsch
2015/09/14 13:25:38
namer.staticStateHolder
sigurdm
2015/09/14 13:34:57
Done.
|
# |
} |
""", [globalsHolder, body])); |