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 87892d3a1fe888ce912bfbe58baa9ef96d9bd7d7..97922db105ee8089eac72c28c1c2d3a31d2d3549 100644 |
--- a/pkg/compiler/lib/src/cps_ir/inline.dart |
+++ b/pkg/compiler/lib/src/cps_ir/inline.dart |
@@ -394,6 +394,7 @@ class InliningVisitor extends TrampolineRecursiveVisitor { |
// AST node, targets that are asynchronous or generator functions, or |
// targets containing a try statement. |
if (!target.hasNode) return null; |
+ if (backend.isJsInterop(target)) return null; |
if (target.asyncMarker != AsyncMarker.SYNC) return null; |
// V8 does not optimize functions containing a try statement. Inlining |
// code containing a try statement will make the optimizable calling code |