Skip to content

Commit

Permalink
src: fix compiler warning in async_wrap.cc
Browse files Browse the repository at this point in the history
    ../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 <cjihrig@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
  • Loading branch information
addaleax authored and codebytere committed May 11, 2020
1 parent 1dcf66c commit fd9c7c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/async_wrap.cc
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ static uint16_t ToAsyncHooksType(PromiseHookType type) {
case PromiseHookType::kAfter: return AsyncHooks::kAfter;
case PromiseHookType::kResolve: return AsyncHooks::kPromiseResolve;
}
UNREACHABLE();
}

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

0 comments on commit fd9c7c2

Please sign in to comment.