Index: pkg/compiler/lib/src/ssa/builder.dart |
diff --git a/pkg/compiler/lib/src/ssa/builder.dart b/pkg/compiler/lib/src/ssa/builder.dart |
index 2eae9e85caa2ddf9194ca3cc6c7457a4a3017203..0945568cfec8ca52f74c4eecf1ca669123a40266 100644 |
--- a/pkg/compiler/lib/src/ssa/builder.dart |
+++ b/pkg/compiler/lib/src/ssa/builder.dart |
@@ -4154,6 +4154,10 @@ class SsaBuilder extends ast.Visitor |
return; |
} |
+ if (native.HasCapturedPlaceholders.check(nativeBehavior.codeTemplate.ast)) { |
+ reporter.reportErrorMessage(node, MessageKind.JS_PLACEHOLDER_CAPTURE); |
+ } |
+ |
TypeMask ssaType = |
TypeMaskFactory.fromNativeBehavior(nativeBehavior, compiler); |