| Index: lib/compiler/implementation/emitter.dart
|
| diff --git a/lib/compiler/implementation/emitter.dart b/lib/compiler/implementation/emitter.dart
|
| index 99270ca09c8785cfe88e254b3574be63d1f1129b..9b20b8ca757dae611ea87b89c4985625f08d6bf6 100644
|
| --- a/lib/compiler/implementation/emitter.dart
|
| +++ b/lib/compiler/implementation/emitter.dart
|
| @@ -650,6 +650,10 @@ function(collectedClasses) {
|
| addParameterStubs(callElement, (String name, String value) {
|
| buffer.add('$fieldAccess.$name = $value;\n');
|
| });
|
| + // If a static function is used as a closure we need to add its name
|
| + // in case it is used in spawnFunction.
|
| + String fieldName = Namer.STATIC_CLOSURE_NAME_NAME;
|
| + buffer.add('$fieldAccess.$fieldName = "$staticName";\n');
|
| }
|
| }
|
|
|
|
|