Index: pkg/compiler/lib/src/cps_ir/inline.dart |
diff --git a/pkg/compiler/lib/src/cps_ir/inline.dart b/pkg/compiler/lib/src/cps_ir/inline.dart |
index cbb673dfe95a055ccd552111c7020af3f9e59048..5a004212d2ea90122d7172df3cfbce15172dbdf4 100644 |
--- a/pkg/compiler/lib/src/cps_ir/inline.dart |
+++ b/pkg/compiler/lib/src/cps_ir/inline.dart |
@@ -211,7 +211,8 @@ class Inliner implements Pass { |
// Do not inline in functions containing try statements. V8 does not |
// optimize code in such functions, so inlining will move optimizable code |
// into a context where it cannot be optimized. |
- if (function.resolvedAst.elements.containsTryStatement) { |
+ if (function.resolvedAst.kind == ResolvedAstKind.PARSED && |
+ function.resolvedAst.elements.containsTryStatement) { |
return; |
} |