Skip to content

Commit cecb41b

Browse files
committed
src: reset process.versions during pre-execution
nodejs/node#53444
1 parent 959a873 commit cecb41b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

patches/node/src_do_not_use_soon-to-be-deprecated_v8_api.patch

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ index 274f1f01de8d84596ea24bd2bd65e83d69605178..935a6c612d706a611d4cf3f812f30978
7878

7979
// --security-revert flags
8080
#define V(code, _, __) \
81-
@@ -235,11 +239,14 @@ void PatchProcessObject(const FunctionCallbackInfo<Value>& args) {
81+
@@ -240,12 +244,15 @@ void PatchProcessObject(const FunctionCallbackInfo<Value>& args) {
8282

8383
// process.debugPort
8484
CHECK(process
@@ -87,6 +87,7 @@ index 274f1f01de8d84596ea24bd2bd65e83d69605178..935a6c612d706a611d4cf3f812f30978
8787
- DebugPortGetter,
8888
- env->owns_process_state() ? DebugPortSetter : nullptr,
8989
- Local<Value>())
90+
- .FromJust());
9091
+ ->SetNativeDataProperty(
9192
+ context,
9293
+ FIXED_ONE_BYTE_STRING(isolate, "debugPort"),
@@ -95,9 +96,10 @@ index 274f1f01de8d84596ea24bd2bd65e83d69605178..935a6c612d706a611d4cf3f812f30978
9596
+ Local<Value>(),
9697
+ None,
9798
+ SideEffectType::kHasNoSideEffect)
98-
.FromJust());
99-
}
99+
+ .FromJust());
100100

101+
// process.versions
102+
Local<Object> versions = Object::New(isolate);
101103
diff --git a/test/parallel/test-worker-unsupported-things.js b/test/parallel/test-worker-unsupported-things.js
102104
index 18c1617c3cde5ef12f9c97828840c39e0be3dc2c..95d93d24dec9f1944091a97574f01c94d617cc49 100644
103105
--- a/test/parallel/test-worker-unsupported-things.js

0 commit comments

Comments
 (0)