Skip to content

Commit 5d9aca1

Browse files
committed
Fixup hooks & exceptions patch
nodejs/node#24701
1 parent 73a8672 commit 5d9aca1

1 file changed

Lines changed: 2 additions & 10 deletions

File tree

patches/node/feat_add_flags_for_low-level_hooks_and_exceptions.patch

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -44,14 +44,6 @@ diff --git a/src/node.cc b/src/node.cc
4444
index fee485f86e17f1987e140aea874656e5048cdbfe..7dda6b39c37cdf96f59a34ca6bc75ea2c7fde060 100644
4545
--- a/src/node.cc
4646
+++ b/src/node.cc
47-
@@ -27,6 +27,7 @@
48-
#include "env-inl.h"
49-
#include "memory_tracker-inl.h"
50-
#include "node_binding.h"
51-
+#include "node_errors.h"
52-
#include "node_internals.h"
53-
#include "node_main_instance.h"
54-
#include "node_metadata.h"
5547
@@ -128,6 +129,9 @@ using v8::Undefined;
5648
using v8::V8;
5749
using v8::Value;
@@ -76,7 +68,7 @@ index fee485f86e17f1987e140aea874656e5048cdbfe..7dda6b39c37cdf96f59a34ca6bc75ea2
7668
if (BootstrapInternalLoaders().IsEmpty()) {
7769
return MaybeLocal<Value>();
7870
}
79-
@@ -726,7 +737,9 @@ int InitializeNodeWithArgs(std::vector<std::string>* argv,
71+
@@ -735,7 +735,9 @@ int InitializeNodeWithArgs(std::vector<std::string>* argv,
8072
binding::RegisterBuiltinModules();
8173

8274
// Make inherited handles noninheritable.
@@ -85,8 +77,8 @@ index fee485f86e17f1987e140aea874656e5048cdbfe..7dda6b39c37cdf96f59a34ca6bc75ea2
8577
+ uv_disable_stdio_inheritance();
8678
+ }
8779

88-
#ifdef NODE_REPORT
8980
// Cache the original command line to be
81+
// used in diagnostic reports.
9082
@@ -762,6 +775,8 @@ int InitializeNodeWithArgs(std::vector<std::string>* argv,
9183
if (exit_code != 0) return exit_code;
9284
}

0 commit comments

Comments
 (0)