@yao-pkg/pkg-fetch 3.5.9 → 3.5.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21,26 +21,26 @@
|
|
|
21
21
|
"node-v16.20.2-win-arm64": "7514915e02aedfbdc9f87ede04f1f251b014e312e3e184d5b94b42aeb28c2485",
|
|
22
22
|
"node-v16.20.2-win-x64": "272729724993ce07b37d328718a0152e50ec5c9d27aa972975c09b75604c0dca",
|
|
23
23
|
"node-v16.20.2-macos-arm64": "3d04eb7ddd8b614b888eeb1caa6e64a068b665ab4a26dd064051973ae5842a85",
|
|
24
|
-
"node-v18.
|
|
25
|
-
"node-v18.
|
|
26
|
-
"node-v18.
|
|
27
|
-
"node-v18.
|
|
28
|
-
"node-v18.
|
|
29
|
-
"node-v18.
|
|
30
|
-
"node-v18.
|
|
31
|
-
"node-v18.
|
|
32
|
-
"node-v18.
|
|
33
|
-
"node-v18.
|
|
34
|
-
"node-v18.
|
|
35
|
-
"node-v20.
|
|
36
|
-
"node-v20.
|
|
37
|
-
"node-v20.
|
|
38
|
-
"node-v20.
|
|
39
|
-
"node-v20.
|
|
40
|
-
"node-v20.
|
|
41
|
-
"node-v20.
|
|
42
|
-
"node-v20.
|
|
43
|
-
"node-v20.
|
|
44
|
-
"node-v20.
|
|
45
|
-
"node-v20.
|
|
24
|
+
"node-v18.20.4-alpine-arm64": "86e3e659e02e6197a0cf42474f4abf3965ded46f8cf9e3b7a9b232c977b154c7",
|
|
25
|
+
"node-v18.20.4-alpine-x64": "d5d0f46cfc0387ebd7772c4b200b0a0df1a33426f0025568f2fd0e3145a1f03c",
|
|
26
|
+
"node-v18.20.4-linux-arm64": "6d5cab68b470cb2451c76ced34866f255ef8216c6f51c0a09e143d29f1bf743d",
|
|
27
|
+
"node-v18.20.4-linux-x64": "fc4a2d84782493525d34c9c1288ed90a44db26001fd3746e6446e6fa385f8084",
|
|
28
|
+
"node-v18.20.4-linuxstatic-arm64": "69832ff23792e0eae34158231179639c227bdc33ea8ad66272fafb7d8fa7f907",
|
|
29
|
+
"node-v18.20.4-linuxstatic-armv7": "256b885167bc43c37b04343b31ee081e6e8021cd698706361085563dff80d15d",
|
|
30
|
+
"node-v18.20.4-linuxstatic-x64": "d4ae1354280d6612f720e5654b33efe94b5c3d503ac12ea643738927f655ff53",
|
|
31
|
+
"node-v18.20.4-macos-arm64": "c94ba6e603222f032b1afbc4fc46556ad6a8f0eb777ddd2e38b424c91b09adb9",
|
|
32
|
+
"node-v18.20.4-macos-x64": "8ebc5bd8c21632bc79b5469d0b7dbbee9209214d9deee9aa1d84d0990c7e8464",
|
|
33
|
+
"node-v18.20.4-win-arm64": "01227a811847179a943392a41cc75084d08c21e049278190eebd98cdc6bcc4e0",
|
|
34
|
+
"node-v18.20.4-win-x64": "53196be55b5c4f5362f04eb3a34692263df8e65d756506176269a967f5e9face",
|
|
35
|
+
"node-v20.17.0-alpine-arm64": "764e4ed9b1fc68e9932a98b16ab9f2576de099ac7ad0d230353fe2698ab2d998",
|
|
36
|
+
"node-v20.17.0-alpine-x64": "240ffbc13fa0cb9b1560bd87113ba035e70b9d1f7562e54c026df8c1f092cc3b",
|
|
37
|
+
"node-v20.17.0-linux-arm64": "173d940455d7bd02d75be5aaaca1b313cf498257817b96300a3a7d7b6ca769a8",
|
|
38
|
+
"node-v20.17.0-linux-x64": "f6b00290bbcd9f9a4cc35cc469ddf21e60ba7d58d3d01962fef7f6057ba7fa3c",
|
|
39
|
+
"node-v20.17.0-linuxstatic-arm64": "35353d9fff4a884954fa1da9412dc2348a9d5432964cb7bdda8d397b034d7a4a",
|
|
40
|
+
"node-v20.17.0-linuxstatic-armv7": "5c8a3d46c7b2362afc1f323f3f2ee9c101c4fd02fea4a4ae1ea426a8ab24f246",
|
|
41
|
+
"node-v20.17.0-linuxstatic-x64": "bdabc37d146119e0697f7ce6a18fc3c51c3634241522f3e7bf62c082594c352b",
|
|
42
|
+
"node-v20.17.0-macos-arm64": "2e59df5e88c90f1457fd89abcea47fa0f2b7c66cbf93116d0ab3e5b29c87bc5f",
|
|
43
|
+
"node-v20.17.0-macos-x64": "cb37f44c3cdc12fe6e2e6b461cfdacba35177426bd8ab85f39e4c3d279fca11b",
|
|
44
|
+
"node-v20.17.0-win-arm64": "9769ad72c8ab0f6b1705c9bffb03585044a917511a30d74c68205b7923ff9fa2",
|
|
45
|
+
"node-v20.17.0-win-x64": "9c15a64b3babd2e7cd6c0cb1770495c331bea6df4544df92f734a23cc55bc1bf"
|
|
46
46
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
diff --git node/common.gypi node/common.gypi
|
|
2
|
-
index
|
|
2
|
+
index ec92c9df4c..8c1e94fca2 100644
|
|
3
3
|
--- node/common.gypi
|
|
4
4
|
+++ node/common.gypi
|
|
5
5
|
@@ -174,7 +174,7 @@
|
|
@@ -12,7 +12,7 @@ index dba2631f21..4c4c430dc1 100644
|
|
|
12
12
|
'lto': ' -flto ', # Clang
|
|
13
13
|
}],
|
|
14
14
|
diff --git node/configure.py node/configure.py
|
|
15
|
-
index
|
|
15
|
+
index 82916748fd..59575698b5 100755
|
|
16
16
|
--- node/configure.py
|
|
17
17
|
+++ node/configure.py
|
|
18
18
|
@@ -1289,9 +1289,7 @@ def configure_node(o):
|
|
@@ -41,7 +41,7 @@ index 3d59c73f7c..00b2de4524 100644
|
|
|
41
41
|
static const char* GetVersion();
|
|
42
42
|
|
|
43
43
|
diff --git node/deps/v8/src/api/api.cc node/deps/v8/src/api/api.cc
|
|
44
|
-
index
|
|
44
|
+
index 3b1a81680b..f49f824cfd 100644
|
|
45
45
|
--- node/deps/v8/src/api/api.cc
|
|
46
46
|
+++ node/deps/v8/src/api/api.cc
|
|
47
47
|
@@ -709,6 +709,29 @@ void V8::SetFlagsFromCommandLine(int* argc, char** argv, bool remove_flags) {
|
|
@@ -237,10 +237,10 @@ index 0000000000..a697294fdf
|
|
|
237
237
|
+ }());
|
|
238
238
|
+}());
|
|
239
239
|
diff --git node/lib/internal/modules/cjs/loader.js node/lib/internal/modules/cjs/loader.js
|
|
240
|
-
index
|
|
240
|
+
index 69473df97e..efbd05066d 100644
|
|
241
241
|
--- node/lib/internal/modules/cjs/loader.js
|
|
242
242
|
+++ node/lib/internal/modules/cjs/loader.js
|
|
243
|
-
@@ -
|
|
243
|
+
@@ -95,7 +95,7 @@ const {
|
|
244
244
|
const assert = require('internal/assert');
|
|
245
245
|
const fs = require('fs');
|
|
246
246
|
const path = require('path');
|
|
@@ -382,11 +382,25 @@ index 4795be82e7..977124a014 100644
|
|
|
382
382
|
const {
|
|
383
383
|
Module: {
|
|
384
384
|
_preloadModules,
|
|
385
|
+
diff --git node/lib/internal/vm.js node/lib/internal/vm.js
|
|
386
|
+
index 624e6825b8..fee9d341f2 100644
|
|
387
|
+
--- node/lib/internal/vm.js
|
|
388
|
+
+++ node/lib/internal/vm.js
|
|
389
|
+
@@ -126,7 +126,8 @@ function makeContextifyScript(code,
|
|
390
|
+
cachedData,
|
|
391
|
+
produceCachedData,
|
|
392
|
+
parsingContext,
|
|
393
|
+
- hostDefinedOptionId);
|
|
394
|
+
+ hostDefinedOptionId,
|
|
395
|
+
+ false);
|
|
396
|
+
} catch (e) {
|
|
397
|
+
throw e; /* node-do-not-add-exception-line */
|
|
398
|
+
}
|
|
385
399
|
diff --git node/lib/vm.js node/lib/vm.js
|
|
386
|
-
index
|
|
400
|
+
index 6bea7e5e74..575a5527d9 100644
|
|
387
401
|
--- node/lib/vm.js
|
|
388
402
|
+++ node/lib/vm.js
|
|
389
|
-
@@ -
|
|
403
|
+
@@ -80,6 +80,7 @@ class Script extends ContextifyScript {
|
|
390
404
|
produceCachedData = false,
|
|
391
405
|
importModuleDynamically,
|
|
392
406
|
[kParsingContext]: parsingContext,
|
|
@@ -394,12 +408,12 @@ index b48e79c282..3b86fa8933 100644
|
|
|
394
408
|
} = options;
|
|
395
409
|
|
|
396
410
|
validateString(filename, 'options.filename');
|
|
397
|
-
@@ -
|
|
398
|
-
columnOffset,
|
|
411
|
+
@@ -103,7 +104,8 @@ class Script extends ContextifyScript {
|
|
399
412
|
cachedData,
|
|
400
413
|
produceCachedData,
|
|
401
|
-
|
|
402
|
-
|
|
414
|
+
parsingContext,
|
|
415
|
+
- hostDefinedOptionId);
|
|
416
|
+
+ hostDefinedOptionId,
|
|
403
417
|
+ sourceless);
|
|
404
418
|
} catch (e) {
|
|
405
419
|
throw e; /* node-do-not-add-exception-line */
|
|
@@ -432,7 +446,7 @@ index b1ba86b7b0..e2478e537c 100644
|
|
|
432
446
|
parent_env_->AddCleanupHook([](void* data) {
|
|
433
447
|
Environment* env = static_cast<Environment*>(data);
|
|
434
448
|
diff --git node/src/node.cc node/src/node.cc
|
|
435
|
-
index
|
|
449
|
+
index 367d47325b..5e3cd94124 100644
|
|
436
450
|
--- node/src/node.cc
|
|
437
451
|
+++ node/src/node.cc
|
|
438
452
|
@@ -304,6 +304,8 @@ MaybeLocal<Value> StartExecution(Environment* env, StartExecutionCallback cb) {
|
|
@@ -460,40 +474,45 @@ index 0c75b5a08e..385a03090f 100644
|
|
|
460
474
|
}
|
|
461
475
|
|
|
462
476
|
diff --git node/src/node_contextify.cc node/src/node_contextify.cc
|
|
463
|
-
index
|
|
477
|
+
index 65a7acbcfb..160784d64c 100644
|
|
464
478
|
--- node/src/node_contextify.cc
|
|
465
479
|
+++ node/src/node_contextify.cc
|
|
466
|
-
@@ -75,6 +75,7 @@ using v8::
|
|
467
|
-
using v8::
|
|
480
|
+
@@ -75,6 +75,7 @@ using v8::String;
|
|
481
|
+
using v8::Symbol;
|
|
468
482
|
using v8::Uint32;
|
|
469
483
|
using v8::UnboundScript;
|
|
470
484
|
+using v8::V8;
|
|
471
485
|
using v8::Value;
|
|
472
486
|
using v8::WeakCallbackInfo;
|
|
473
|
-
|
|
474
|
-
@@ -
|
|
487
|
+
|
|
488
|
+
@@ -786,13 +787,14 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
|
475
489
|
Local<ArrayBufferView> cached_data_buf;
|
|
476
490
|
bool produce_cached_data = false;
|
|
477
491
|
Local<Context> parsing_context = context;
|
|
478
492
|
+ bool sourceless = false;
|
|
479
493
|
|
|
494
|
+
Local<Symbol> id_symbol;
|
|
480
495
|
if (argc > 2) {
|
|
481
496
|
// new ContextifyScript(code, filename, lineOffset, columnOffset,
|
|
482
|
-
// cachedData, produceCachedData, parsingContext
|
|
483
|
-
|
|
484
|
-
|
|
497
|
+
// cachedData, produceCachedData, parsingContext,
|
|
498
|
+
// hostDefinedOptionId)
|
|
499
|
+
- CHECK_EQ(argc, 8);
|
|
500
|
+
+ CHECK_EQ(argc, 9);
|
|
485
501
|
CHECK(args[2]->IsNumber());
|
|
486
502
|
line_offset = args[2].As<Int32>()->Value();
|
|
487
503
|
CHECK(args[3]->IsNumber());
|
|
488
|
-
@@ -
|
|
504
|
+
@@ -811,8 +813,9 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
|
489
505
|
CHECK_NOT_NULL(sandbox);
|
|
490
506
|
parsing_context = sandbox->context();
|
|
491
507
|
}
|
|
492
|
-
|
|
508
|
+
- CHECK(args[7]->IsSymbol());
|
|
509
|
+
+ CHECK(args[7]->IsSymbol());
|
|
510
|
+
id_symbol = args[7].As<Symbol>();
|
|
511
|
+
+ sourceless = args[8]->IsTrue();
|
|
493
512
|
}
|
|
494
513
|
|
|
495
514
|
ContextifyScript* contextify_script =
|
|
496
|
-
@@ -
|
|
515
|
+
@@ -861,6 +864,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
|
497
516
|
ShouldNotAbortOnUncaughtScope no_abort_scope(env);
|
|
498
517
|
Context::Scope scope(parsing_context);
|
|
499
518
|
|
|
@@ -504,21 +523,20 @@ index 3da8746e2c..ff60588e77 100644
|
|
|
504
523
|
MaybeLocal<UnboundScript> maybe_v8_script =
|
|
505
524
|
ScriptCompiler::CompileUnboundScript(isolate, &source, compile_options);
|
|
506
525
|
|
|
507
|
-
@@ -
|
|
526
|
+
@@ -874,7 +881,11 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
|
508
527
|
"ContextifyScript::New");
|
|
509
528
|
return;
|
|
510
529
|
}
|
|
511
|
-
|
|
512
|
-
+
|
|
530
|
+
-
|
|
531
|
+
+ if (sourceless && compile_options == ScriptCompiler::kConsumeCodeCache) {
|
|
513
532
|
+ if (!source.GetCachedData()->rejected) {
|
|
514
533
|
+ V8::FixSourcelessScript(env->isolate(), v8_script);
|
|
515
534
|
+ }
|
|
516
535
|
+ }
|
|
517
|
-
+
|
|
518
536
|
contextify_script->script_.Reset(isolate, v8_script);
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
@@ -
|
|
537
|
+
contextify_script->script_.SetWeak();
|
|
538
|
+
contextify_script->object()->SetInternalFieldForNodeCore(kUnboundScriptSlot,
|
|
539
|
+
@@ -908,6 +919,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
|
522
540
|
.IsNothing())
|
|
523
541
|
return;
|
|
524
542
|
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
diff --git node/common.gypi node/common.gypi
|
|
2
|
-
index
|
|
2
|
+
index 7c0b4a0851..064e453130 100644
|
|
3
3
|
--- node/common.gypi
|
|
4
4
|
+++ node/common.gypi
|
|
5
|
-
@@ -
|
|
5
|
+
@@ -184,7 +184,7 @@
|
|
6
6
|
'MSVC_runtimeType': 2 # MultiThreadedDLL (/MD)
|
|
7
7
|
}],
|
|
8
8
|
['llvm_version=="0.0"', {
|
|
@@ -11,18 +11,6 @@ index db09a8a33d..6b2053467d 100644
|
|
|
11
11
|
}, {
|
|
12
12
|
'lto': ' -flto ', # Clang
|
|
13
13
|
}],
|
|
14
|
-
diff --git node/configure.py node/configure.py
|
|
15
|
-
index 84b016cd85..3b31b09f04 100755
|
|
16
|
-
--- node/configure.py
|
|
17
|
-
+++ node/configure.py
|
|
18
|
-
@@ -1275,7 +1275,6 @@ def configure_node(o):
|
|
19
|
-
|
|
20
|
-
# Enable branch protection for arm64
|
|
21
|
-
if target_arch == 'arm64':
|
|
22
|
-
- o['cflags']+=['-msign-return-address=all']
|
|
23
|
-
o['variables']['arm_fpu'] = options.arm_fpu or 'neon'
|
|
24
|
-
|
|
25
|
-
if options.node_snapshot_main is not None:
|
|
26
14
|
diff --git node/deps/v8/include/v8-initialization.h node/deps/v8/include/v8-initialization.h
|
|
27
15
|
index d3e35d6ec5..6e9bbe3849 100644
|
|
28
16
|
--- node/deps/v8/include/v8-initialization.h
|
|
@@ -39,7 +27,7 @@ index d3e35d6ec5..6e9bbe3849 100644
|
|
|
39
27
|
static const char* GetVersion();
|
|
40
28
|
|
|
41
29
|
diff --git node/deps/v8/src/api/api.cc node/deps/v8/src/api/api.cc
|
|
42
|
-
index
|
|
30
|
+
index a06394e6c1..154b7a82a8 100644
|
|
43
31
|
--- node/deps/v8/src/api/api.cc
|
|
44
32
|
+++ node/deps/v8/src/api/api.cc
|
|
45
33
|
@@ -806,6 +806,28 @@ void V8::SetFlagsFromCommandLine(int* argc, char** argv, bool remove_flags) {
|
|
@@ -164,7 +152,7 @@ index c83e8e4581..8cb451e147 100644
|
|
|
164
152
|
uint32_t max_payload_length = this->size_ - kHeaderSize;
|
|
165
153
|
if (payload_length > max_payload_length) {
|
|
166
154
|
diff --git node/lib/child_process.js node/lib/child_process.js
|
|
167
|
-
index
|
|
155
|
+
index 48870b35ad..d2aca054b2 100644
|
|
168
156
|
--- node/lib/child_process.js
|
|
169
157
|
+++ node/lib/child_process.js
|
|
170
158
|
@@ -169,7 +169,7 @@ function fork(modulePath, args = [], options) {
|
|
@@ -232,10 +220,10 @@ index 0000000000..a697294fdf
|
|
|
232
220
|
+ }());
|
|
233
221
|
+}());
|
|
234
222
|
diff --git node/lib/internal/modules/cjs/loader.js node/lib/internal/modules/cjs/loader.js
|
|
235
|
-
index
|
|
223
|
+
index c284b39b1a..ce38f028e4 100644
|
|
236
224
|
--- node/lib/internal/modules/cjs/loader.js
|
|
237
225
|
+++ node/lib/internal/modules/cjs/loader.js
|
|
238
|
-
@@ -
|
|
226
|
+
@@ -138,7 +138,7 @@ const {
|
|
239
227
|
const assert = require('internal/assert');
|
|
240
228
|
const fs = require('fs');
|
|
241
229
|
const path = require('path');
|
|
@@ -258,10 +246,10 @@ index 88c079d10d..a7eaca0574 100644
|
|
|
258
246
|
const permission = require('internal/process/permission');
|
|
259
247
|
const { kEmptyObject } = require('internal/util');
|
|
260
248
|
diff --git node/lib/internal/process/pre_execution.js node/lib/internal/process/pre_execution.js
|
|
261
|
-
index
|
|
249
|
+
index 59308ab817..35583f830a 100644
|
|
262
250
|
--- node/lib/internal/process/pre_execution.js
|
|
263
251
|
+++ node/lib/internal/process/pre_execution.js
|
|
264
|
-
@@ -
|
|
252
|
+
@@ -51,7 +51,11 @@ const {
|
|
265
253
|
},
|
|
266
254
|
} = require('internal/v8/startup_snapshot');
|
|
267
255
|
|
|
@@ -273,7 +261,7 @@ index cffffc28d3..679b9c3939 100644
|
|
|
273
261
|
return prepareExecution({
|
|
274
262
|
expandArgv1,
|
|
275
263
|
initializeModules,
|
|
276
|
-
@@ -
|
|
264
|
+
@@ -243,7 +247,8 @@ function patchProcessObject(expandArgv1) {
|
|
277
265
|
// If requested, update process.argv[1] to replace whatever the user provided with the resolved absolute file path of
|
|
278
266
|
// the entry point.
|
|
279
267
|
if (expandArgv1 && process.argv[1] &&
|
|
@@ -283,7 +271,7 @@ index cffffc28d3..679b9c3939 100644
|
|
|
283
271
|
// Expand process.argv[1] into a full path.
|
|
284
272
|
const path = require('path');
|
|
285
273
|
try {
|
|
286
|
-
@@ -
|
|
274
|
+
@@ -722,6 +727,7 @@ function loadPreloadModules() {
|
|
287
275
|
// For user code, we preload modules if `-r` is passed
|
|
288
276
|
const preloadModules = getOptionValue('--require');
|
|
289
277
|
if (preloadModules && preloadModules.length > 0) {
|
|
@@ -292,10 +280,10 @@ index cffffc28d3..679b9c3939 100644
|
|
|
292
280
|
Module: {
|
|
293
281
|
_preloadModules,
|
|
294
282
|
diff --git node/lib/vm.js node/lib/vm.js
|
|
295
|
-
index
|
|
283
|
+
index 34814c430d..db1f4779b6 100644
|
|
296
284
|
--- node/lib/vm.js
|
|
297
285
|
+++ node/lib/vm.js
|
|
298
|
-
@@ -
|
|
286
|
+
@@ -97,6 +97,7 @@ class Script extends ContextifyScript {
|
|
299
287
|
produceCachedData = false,
|
|
300
288
|
importModuleDynamically,
|
|
301
289
|
[kParsingContext]: parsingContext,
|
|
@@ -303,7 +291,7 @@ index 44861be46d..9775ef58b7 100644
|
|
|
303
291
|
} = options;
|
|
304
292
|
|
|
305
293
|
validateString(filename, 'options.filename');
|
|
306
|
-
@@ -
|
|
294
|
+
@@ -120,7 +121,8 @@ class Script extends ContextifyScript {
|
|
307
295
|
cachedData,
|
|
308
296
|
produceCachedData,
|
|
309
297
|
parsingContext,
|
|
@@ -314,23 +302,26 @@ index 44861be46d..9775ef58b7 100644
|
|
|
314
302
|
throw e; /* node-do-not-add-exception-line */
|
|
315
303
|
}
|
|
316
304
|
diff --git node/src/inspector_agent.cc node/src/inspector_agent.cc
|
|
317
|
-
index
|
|
305
|
+
index 4cab7dea04..a1f0d51ab5 100644
|
|
318
306
|
--- node/src/inspector_agent.cc
|
|
319
307
|
+++ node/src/inspector_agent.cc
|
|
320
|
-
@@ -
|
|
308
|
+
@@ -738,11 +738,6 @@ bool Agent::Start(const std::string& path,
|
|
321
309
|
StartIoThreadAsyncCallback));
|
|
322
310
|
uv_unref(reinterpret_cast<uv_handle_t*>(&start_io_thread_async));
|
|
323
311
|
start_io_thread_async.data = this;
|
|
324
|
-
-
|
|
325
|
-
-
|
|
312
|
+
- if (parent_env_->should_start_debug_signal_handler()) {
|
|
313
|
+
- // Ignore failure, SIGUSR1 won't work, but that should not block node
|
|
314
|
+
- // start.
|
|
315
|
+
- StartDebugSignalHandler();
|
|
316
|
+
- }
|
|
326
317
|
|
|
327
318
|
parent_env_->AddCleanupHook([](void* data) {
|
|
328
319
|
Environment* env = static_cast<Environment*>(data);
|
|
329
320
|
diff --git node/src/node.cc node/src/node.cc
|
|
330
|
-
index
|
|
321
|
+
index 9f6f8e53ab..ee8fa43f2f 100644
|
|
331
322
|
--- node/src/node.cc
|
|
332
323
|
+++ node/src/node.cc
|
|
333
|
-
@@ -
|
|
324
|
+
@@ -377,6 +377,8 @@ MaybeLocal<Value> StartExecution(Environment* env, StartExecutionCallback cb) {
|
|
334
325
|
return env->RunSnapshotDeserializeMain();
|
|
335
326
|
}
|
|
336
327
|
|
|
@@ -339,7 +330,7 @@ index 524f80ee69..419cb95c4c 100644
|
|
|
339
330
|
if (env->worker_context() != nullptr) {
|
|
340
331
|
return StartExecution(env, "internal/main/worker_thread");
|
|
341
332
|
}
|
|
342
|
-
@@ -
|
|
333
|
+
@@ -601,14 +603,6 @@ static void PlatformInit(ProcessInitializationFlags::Flags flags) {
|
|
343
334
|
}
|
|
344
335
|
|
|
345
336
|
if (!(flags & ProcessInitializationFlags::kNoDefaultSignalHandling)) {
|
|
@@ -355,10 +346,10 @@ index 524f80ee69..419cb95c4c 100644
|
|
|
355
346
|
}
|
|
356
347
|
|
|
357
348
|
diff --git node/src/node_contextify.cc node/src/node_contextify.cc
|
|
358
|
-
index
|
|
349
|
+
index d873792ab9..588e53377d 100644
|
|
359
350
|
--- node/src/node_contextify.cc
|
|
360
351
|
+++ node/src/node_contextify.cc
|
|
361
|
-
@@ -
|
|
352
|
+
@@ -76,6 +76,7 @@ using v8::String;
|
|
362
353
|
using v8::Symbol;
|
|
363
354
|
using v8::Uint32;
|
|
364
355
|
using v8::UnboundScript;
|
|
@@ -366,7 +357,7 @@ index a68f6bb686..eab5eb9b8b 100644
|
|
|
366
357
|
using v8::Value;
|
|
367
358
|
using v8::WeakCallbackInfo;
|
|
368
359
|
|
|
369
|
-
@@ -
|
|
360
|
+
@@ -789,13 +790,14 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
|
370
361
|
Local<ArrayBufferView> cached_data_buf;
|
|
371
362
|
bool produce_cached_data = false;
|
|
372
363
|
Local<Context> parsing_context = context;
|
|
@@ -383,7 +374,7 @@ index a68f6bb686..eab5eb9b8b 100644
|
|
|
383
374
|
CHECK(args[2]->IsNumber());
|
|
384
375
|
line_offset = args[2].As<Int32>()->Value();
|
|
385
376
|
CHECK(args[3]->IsNumber());
|
|
386
|
-
@@ -
|
|
377
|
+
@@ -816,6 +818,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
|
387
378
|
}
|
|
388
379
|
CHECK(args[7]->IsSymbol());
|
|
389
380
|
id_symbol = args[7].As<Symbol>();
|
|
@@ -394,7 +385,7 @@ index a68f6bb686..eab5eb9b8b 100644
|
|
|
394
385
|
}
|
|
395
386
|
|
|
396
387
|
ContextifyScript* contextify_script =
|
|
397
|
-
@@ -
|
|
388
|
+
@@ -864,6 +870,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
|
398
389
|
ShouldNotAbortOnUncaughtScope no_abort_scope(env);
|
|
399
390
|
Context::Scope scope(parsing_context);
|
|
400
391
|
|
|
@@ -405,7 +396,7 @@ index a68f6bb686..eab5eb9b8b 100644
|
|
|
405
396
|
MaybeLocal<UnboundScript> maybe_v8_script =
|
|
406
397
|
ScriptCompiler::CompileUnboundScript(isolate, &source, compile_options);
|
|
407
398
|
|
|
408
|
-
@@ -
|
|
399
|
+
@@ -878,6 +888,11 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
|
409
400
|
return;
|
|
410
401
|
}
|
|
411
402
|
|
|
@@ -417,7 +408,7 @@ index a68f6bb686..eab5eb9b8b 100644
|
|
|
417
408
|
contextify_script->script_.Reset(isolate, v8_script);
|
|
418
409
|
contextify_script->script_.SetWeak();
|
|
419
410
|
contextify_script->object()->SetInternalFieldForNodeCore(kUnboundScriptSlot,
|
|
420
|
-
@@ -
|
|
411
|
+
@@ -911,6 +926,10 @@ void ContextifyScript::New(const FunctionCallbackInfo<Value>& args) {
|
|
421
412
|
.IsNothing())
|
|
422
413
|
return;
|
|
423
414
|
|
|
@@ -539,10 +530,10 @@ index f66099a557..4048f6bd93 100644
|
|
|
539
530
|
+ return adjacent(c, nargv);
|
|
540
531
|
+}
|
|
541
532
|
diff --git node/src/node_options.cc node/src/node_options.cc
|
|
542
|
-
index
|
|
533
|
+
index e94e4dbc95..097ba01185 100644
|
|
543
534
|
--- node/src/node_options.cc
|
|
544
535
|
+++ node/src/node_options.cc
|
|
545
|
-
@@ -
|
|
536
|
+
@@ -307,6 +307,7 @@ void Parse(
|
|
546
537
|
// TODO(addaleax): Make that unnecessary.
|
|
547
538
|
|
|
548
539
|
DebugOptionsParser::DebugOptionsParser() {
|
package/patches/patches.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"v20.
|
|
3
|
-
"v18.
|
|
2
|
+
"v20.17.0": ["node.v20.17.0.cpp.patch"],
|
|
3
|
+
"v18.20.4": ["node.v18.20.4.cpp.patch"],
|
|
4
4
|
"v16.20.2": ["node.v16.20.2.cpp.patch"],
|
|
5
5
|
"v14.21.3": ["node.v14.21.3.cpp.patch"],
|
|
6
6
|
"v12.22.11": ["node.v12.22.11.cpp.patch"],
|