From 4f5b30981e8e45865b71e8764a7454ae830ca1bd Mon Sep 17 00:00:00 2001 From: Chengzhong Wu Date: Wed, 15 Oct 2025 10:32:32 +0100 Subject: [PATCH] src: add a default branch for module phase --- src/module_wrap.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/module_wrap.cc b/src/module_wrap.cc index 729b71e905d75e..42379e1217e133 100644 --- a/src/module_wrap.cc +++ b/src/module_wrap.cc @@ -563,8 +563,9 @@ ModulePhase to_phase_constant(ModuleImportPhase phase) { return kEvaluationPhase; case ModuleImportPhase::kSource: return kSourcePhase; + default: + UNREACHABLE(); } - UNREACHABLE(); } static Local createImportAttributesContainer(