Skip to content

Commit 73fe9d2

Browse files
legendecasaduh95
authored andcommitted
src: add a default branch for module phase
PR-URL: #60261 Refs: https://chromium-review.googlesource.com/c/v8/v8/+/7017517 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Aditi Singh <[email protected]> Reviewed-By: Jake Yuesong Li <[email protected]>
1 parent 2448de6 commit 73fe9d2

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)