Skip to content

Commit

Permalink
ios,build: disable v8 trap handler-inside-posix
Browse files Browse the repository at this point in the history
This is backporting a commit in a future version of V8, hence this
is not a nodejs-mobile patch for future versions of Node.js.
  • Loading branch information
staltz committed Oct 12, 2023
1 parent 3c14612 commit 13ba6db
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions deps/v8/src/trap-handler/handler-inside-posix.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ namespace v8 {
namespace internal {
namespace trap_handler {

#if V8_TRAP_HANDLER_SUPPORTED

#if V8_OS_LINUX
#define CONTEXT_REG(reg, REG) &uc->uc_mcontext.gregs[REG_##REG]
#elif V8_OS_DARWIN
Expand Down Expand Up @@ -181,6 +183,8 @@ void HandleSignal(int signum, siginfo_t* info, void* context) {
// TryHandleSignal modifies context to change where we return to.
}

#endif

} // namespace trap_handler
} // namespace internal
} // namespace v8

0 comments on commit 13ba6db

Please sign in to comment.