Skip to content

Commit 4f5b309

Browse files
committed
src: add a default branch for module phase
1 parent 8bc7dfd commit 4f5b309

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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)