Index: runtime/vm/flow_graph_type_propagator.cc |
diff --git a/runtime/vm/flow_graph_type_propagator.cc b/runtime/vm/flow_graph_type_propagator.cc |
index 686074e9fdf3800ec8cb30ab91ebe5056b252365..bc052f687d02d76610e55807d24aed3c1df0cd42 100644 |
--- a/runtime/vm/flow_graph_type_propagator.cc |
+++ b/runtime/vm/flow_graph_type_propagator.cc |
@@ -750,13 +750,13 @@ CompileType ParameterInstr::ComputeType() const { |
const AbstractType& type = scope->VariableAt(index())->type(); |
// Parameter is the constructor phase. |
- if ((index() == 1) && function.IsConstructor()) { |
+ if ((index() == 1) && function.IsGenerativeConstructor()) { |
return CompileType::FromAbstractType(type, CompileType::kNonNullable); |
} |
// Parameter is the receiver. |
if ((index() == 0) && |
- (function.IsDynamicFunction() || function.IsConstructor())) { |
+ (function.IsDynamicFunction() || function.IsGenerativeConstructor())) { |
if (type.IsObjectType() || type.IsNullType()) { |
// Receiver can be null. |
return CompileType::FromAbstractType(type, CompileType::kNullable); |