| Index: src/ast/variables.h
|
| diff --git a/src/ast/variables.h b/src/ast/variables.h
|
| index 1d6b33657069efd1b23960fed615fe533c90b08d..2b0d55ca3b0db20812b86958819293adee19d7a1 100644
|
| --- a/src/ast/variables.h
|
| +++ b/src/ast/variables.h
|
| @@ -49,7 +49,8 @@ class Variable final : public ZoneObject {
|
| return ForceContextAllocationField::decode(bit_field_);
|
| }
|
| void ForceContextAllocation() {
|
| - DCHECK(IsUnallocated() || IsContextSlot());
|
| + DCHECK(IsUnallocated() || IsContextSlot() ||
|
| + location() == VariableLocation::MODULE);
|
| bit_field_ = ForceContextAllocationField::update(bit_field_, true);
|
| }
|
| bool is_used() { return IsUsedField::decode(bit_field_); }
|
|
|