Skip to content

Commit fd9c7c2

Browse files
addaleaxcodebytere
authored andcommitted
src: fix compiler warning in async_wrap.cc
../src/async_wrap.cc: In function ‘uint16_t node::ToAsyncHooksType(v8::PromiseHookType)’: ../src/async_wrap.cc:313:1: error: control reaches end of non-void function [-Werror=return-type] } Refs: #32891 PR-URL: #33322 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Michaël Zasso <[email protected]>
1 parent 1dcf66c commit fd9c7c2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/async_wrap.cc

+1
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,7 @@ static uint16_t ToAsyncHooksType(PromiseHookType type) {
310310
case PromiseHookType::kAfter: return AsyncHooks::kAfter;
311311
case PromiseHookType::kResolve: return AsyncHooks::kPromiseResolve;
312312
}
313+
UNREACHABLE();
313314
}
314315

315316
// Simplified JavaScript hook fast-path for when there is no destroy hook

0 commit comments

Comments
 (0)