Index: pkg/compiler/lib/src/ssa/ssa.dart |
diff --git a/pkg/compiler/lib/src/ssa/ssa.dart b/pkg/compiler/lib/src/ssa/ssa.dart |
index ddaf2ee7ed45cbe135858a4ebc28acdce8650374..ba197d12af9873c12ad2612799e0473dfeb92b79 100644 |
--- a/pkg/compiler/lib/src/ssa/ssa.dart |
+++ b/pkg/compiler/lib/src/ssa/ssa.dart |
@@ -41,7 +41,8 @@ class SsaFunctionCompiler implements FunctionCompiler { |
js.Expression result = generator.generateCode(work, graph, closedWorld); |
if (element is MethodElement) { |
// TODO(sigmund): replace by kernel transformer when `useKernel` is true. |
- result = backend.rewriteAsync(element, result); |
+ result = |
+ backend.rewriteAsync(closedWorld.commonElements, element, result); |
} |
return result; |
} |