Skip to content

Commit a40e533

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 6f3b16d commit a40e533

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
@@ -530,8 +530,9 @@ ModulePhase to_phase_constant(ModuleImportPhase phase) {
530530
return kEvaluationPhase;
531531
case ModuleImportPhase::kSource:
532532
return kSourcePhase;
533+
default:
534+
UNREACHABLE();
533535
}
534-
UNREACHABLE();
535536
}
536537

537538
static Local<Object> createImportAttributesContainer(

0 commit comments

Comments
 (0)