From 8a248bb48706b83d461d9e1d39d1dc1d7939fe47 Mon Sep 17 00:00:00 2001 From: Shelley Vohr Date: Wed, 19 May 2021 22:37:57 +0200 Subject: [PATCH] src: move node_binding to modern THROW_ERR* https://github.com/nodejs/node/pull/35469 --- ...e_add_context_to_context_aware_module_prevention.patch | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/patches/node/chore_add_context_to_context_aware_module_prevention.patch b/patches/node/chore_add_context_to_context_aware_module_prevention.patch index 0a54a5928605c..a5a404659f3d7 100644 --- a/patches/node/chore_add_context_to_context_aware_module_prevention.patch +++ b/patches/node/chore_add_context_to_context_aware_module_prevention.patch @@ -11,14 +11,14 @@ diff --git a/src/node_binding.cc b/src/node_binding.cc index ca5a01f925a2ae69ba4295d82316e546f45c60cd..a0f6730de75b9b1dc58e2cec5ed64f9619162a2b 100644 --- a/src/node_binding.cc +++ b/src/node_binding.cc -@@ -3,6 +3,7 @@ - #include - #include "env-inl.h" +@@ -4,6 +4,7 @@ + #include "node_errors.h" + #include "node_external_reference.h" #include "node_native_module_env.h" +#include "node_process.h" #include "util.h" - #if HAVE_OPENSSL + #include @@ -463,7 +464,12 @@ void DLOpen(const FunctionCallbackInfo& args) { if (mp->nm_context_register_func == nullptr) { if (env->force_context_aware()) {