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 <anna@addaleax.net> Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Aditi Singh <aditisingh1400@gmail.com> Reviewed-By: Jake Yuesong Li <jake.yuesong@gmail.com>
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)