Index: pkg/compiler/lib/src/tree_ir/optimization/pull_into_initializers.dart |
diff --git a/pkg/compiler/lib/src/tree_ir/optimization/pull_into_initializers.dart b/pkg/compiler/lib/src/tree_ir/optimization/pull_into_initializers.dart |
index 53348d32c9b6f94d1b7c6a714938194256aceec4..bdc462fb5a40b2624227a511209a078bad84c9d2 100644 |
--- a/pkg/compiler/lib/src/tree_ir/optimization/pull_into_initializers.dart |
+++ b/pkg/compiler/lib/src/tree_ir/optimization/pull_into_initializers.dart |
@@ -330,4 +330,11 @@ class PullIntoInitializers extends ExpressionVisitor<Expression> |
rewriteList(node.arguments); |
return node; |
} |
+ |
+ @override |
+ Expression visitForeignExpression(ForeignExpression node) { |
+ rewriteList(node.arguments); |
+ seenImpure = node.nativeBehavior.sideEffects.hasSideEffects(); |
+ return node; |
+ } |
} |