Skip to content

Commit 8a71a35

Browse files
authored
Adjust to_phase_constant to allow new enumaration for deferred imports (#231)
1 parent 4896a0d commit 8a71a35

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/module_wrap.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -563,8 +563,9 @@ ModulePhase to_phase_constant(ModuleImportPhase phase) {
563563
return kEvaluationPhase;
564564
case ModuleImportPhase::kSource:
565565
return kSourcePhase;
566+
default:
567+
UNREACHABLE();
566568
}
567-
UNREACHABLE();
568569
}
569570

570571
static Local<Object> createImportAttributesContainer(

0 commit comments

Comments
 (0)