Index: pkg/compiler/lib/src/ssa/kernel_impact.dart |
diff --git a/pkg/compiler/lib/src/ssa/kernel_impact.dart b/pkg/compiler/lib/src/ssa/kernel_impact.dart |
index de794a45e69829088c7af774f79a8663cf0a76ac..8693b3378c5705bf9edc680a630fc80fa9f51ba0 100644 |
--- a/pkg/compiler/lib/src/ssa/kernel_impact.dart |
+++ b/pkg/compiler/lib/src/ssa/kernel_impact.dart |
@@ -276,6 +276,12 @@ class KernelImpactBuilder extends ir.Visitor { |
if (commonElements.isSymbolConstructor(constructor)) { |
impactBuilder.registerFeature(Feature.SYMBOL_CONSTRUCTOR); |
} |
+ |
+ if (target.isExternal && constructor.isFromEnvironmentConstructor) { |
+ impactBuilder.registerFeature(Feature.THROW_UNSUPPORTED_ERROR); |
+ return; |
+ } |
+ |
InterfaceType type = elementAdapter.createInterfaceType( |
target.enclosingClass, node.arguments.types); |
CallStructure callStructure = |