@yao-pkg/pkg-fetch 3.5.3

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.
@@ -0,0 +1,549 @@
1
+ --- node/deps/v8/include/v8.h
2
+ +++ node/deps/v8/include/v8.h
3
+ @@ -7911,10 +7911,14 @@
4
+ */
5
+ static void SetFlagsFromCommandLine(int* argc,
6
+ char** argv,
7
+ bool remove_flags);
8
+
9
+ + static void EnableCompilationForSourcelessUse();
10
+ + static void DisableCompilationForSourcelessUse();
11
+ + static void FixSourcelessScript(Isolate* v8_isolate, Local<UnboundScript> script);
12
+ +
13
+ /** Get the version string. */
14
+ static const char* GetVersion();
15
+
16
+ /** Callback function for reporting failed access checks.*/
17
+ V8_INLINE static V8_DEPRECATED(
18
+ --- node/deps/v8/src/api.cc
19
+ +++ node/deps/v8/src/api.cc
20
+ @@ -830,10 +830,46 @@
21
+ void V8::SetFlagsFromCommandLine(int* argc, char** argv, bool remove_flags) {
22
+ i::FlagList::SetFlagsFromCommandLine(argc, argv, remove_flags);
23
+ }
24
+
25
+
26
+ +bool save_lazy;
27
+ +bool save_predictable;
28
+ +bool save_serialize_toplevel;
29
+ +
30
+ +
31
+ +void V8::EnableCompilationForSourcelessUse() {
32
+ + save_lazy = i::FLAG_lazy;
33
+ + i::FLAG_lazy = false;
34
+ + save_predictable = i::FLAG_predictable;
35
+ + i::FLAG_predictable = true;
36
+ + save_serialize_toplevel = i::FLAG_serialize_toplevel;
37
+ + i::FLAG_serialize_toplevel = true;
38
+ + i::CpuFeatures::Reinitialize();
39
+ + i::CpuFeatures::Probe(true);
40
+ +}
41
+ +
42
+ +
43
+ +void V8::DisableCompilationForSourcelessUse() {
44
+ + i::FLAG_lazy = save_lazy;
45
+ + i::FLAG_predictable = save_predictable;
46
+ + i::FLAG_serialize_toplevel = save_serialize_toplevel;
47
+ + i::CpuFeatures::Reinitialize();
48
+ + i::CpuFeatures::Probe(false);
49
+ +}
50
+ +
51
+ +
52
+ +void V8::FixSourcelessScript(Isolate* v8_isolate, Local<UnboundScript> script) {
53
+ + auto isolate = reinterpret_cast<i::Isolate*>(v8_isolate);
54
+ + auto object = i::Handle<i::HeapObject>::cast(Utils::OpenHandle(*script));
55
+ + i::Handle<i::SharedFunctionInfo> function_info(
56
+ + i::SharedFunctionInfo::cast(*object), object->GetIsolate());
57
+ + auto s = reinterpret_cast<i::Script*>(function_info->script());
58
+ + s->set_source(isolate->heap()->undefined_value());
59
+ +}
60
+ +
61
+ +
62
+ RegisteredExtension* RegisteredExtension::first_extension_ = NULL;
63
+
64
+
65
+ RegisteredExtension::RegisteredExtension(Extension* extension)
66
+ : extension_(extension) { }
67
+ --- node/deps/v8/src/assembler.h
68
+ +++ node/deps/v8/src/assembler.h
69
+ @@ -297,10 +297,15 @@
70
+ }
71
+
72
+ static void PrintTarget();
73
+ static void PrintFeatures();
74
+
75
+ + static void Reinitialize() {
76
+ + supported_ = 0;
77
+ + initialized_ = false;
78
+ + }
79
+ +
80
+ private:
81
+ friend class ExternalReference;
82
+ friend class AssemblerBase;
83
+ // Flush instruction cache.
84
+ static void FlushICache(void* start, size_t size);
85
+ --- node/deps/v8/src/objects.cc
86
+ +++ node/deps/v8/src/objects.cc
87
+ @@ -13206,10 +13206,13 @@
88
+
89
+ // Check if we should print {function} as a class.
90
+ Handle<Object> class_start_position = JSReceiver::GetDataProperty(
91
+ function, isolate->factory()->class_start_position_symbol());
92
+ if (class_start_position->IsSmi()) {
93
+ + if (Script::cast(shared_info->script())->source()->IsUndefined(isolate)) {
94
+ + return isolate->factory()->NewStringFromAsciiChecked("class {}");
95
+ + }
96
+ Handle<Object> class_end_position = JSReceiver::GetDataProperty(
97
+ function, isolate->factory()->class_end_position_symbol());
98
+ Handle<String> script_source(
99
+ String::cast(Script::cast(shared_info->script())->source()), isolate);
100
+ return isolate->factory()->NewSubString(
101
+ --- node/deps/v8/src/parsing/parsing.cc
102
+ +++ node/deps/v8/src/parsing/parsing.cc
103
+ @@ -18,10 +18,11 @@
104
+ namespace parsing {
105
+
106
+ bool ParseProgram(ParseInfo* info, Isolate* isolate) {
107
+ DCHECK(info->is_toplevel());
108
+ DCHECK_NULL(info->literal());
109
+ + if (info->script()->source()->IsUndefined(isolate)) return false;
110
+
111
+ VMState<PARSER> state(isolate);
112
+
113
+ // Create a character stream for the parser.
114
+ Handle<String> source(String::cast(info->script()->source()));
115
+ @@ -52,10 +53,11 @@
116
+ bool ParseFunction(ParseInfo* info, Handle<SharedFunctionInfo> shared_info,
117
+ Isolate* isolate) {
118
+ DCHECK(!info->is_toplevel());
119
+ DCHECK(!shared_info.is_null());
120
+ DCHECK_NULL(info->literal());
121
+ + if (info->script()->source()->IsUndefined(isolate)) return false;
122
+
123
+ // Create a character stream for the parser.
124
+ Handle<String> source(String::cast(info->script()->source()));
125
+ source = String::Flatten(source);
126
+ isolate->counters()->total_parse_size()->Increment(source->length());
127
+ --- node/deps/v8/src/snapshot/code-serializer.cc
128
+ +++ node/deps/v8/src/snapshot/code-serializer.cc
129
+ @@ -392,31 +392,46 @@
130
+
131
+ SerializedCodeData::SanityCheckResult SerializedCodeData::SanityCheck(
132
+ Isolate* isolate, uint32_t expected_source_hash) const {
133
+ if (this->size_ < kHeaderSize) return INVALID_HEADER;
134
+ uint32_t magic_number = GetMagicNumber();
135
+ - if (magic_number != ComputeMagicNumber(isolate)) return MAGIC_NUMBER_MISMATCH;
136
+ + if (magic_number != ComputeMagicNumber(isolate)) {
137
+ + // base::OS::PrintError("Pkg: MAGIC_NUMBER_MISMATCH\n"); // TODO enable after solving v8-cache/ncc issue
138
+ + return MAGIC_NUMBER_MISMATCH;
139
+ + }
140
+ uint32_t version_hash = GetHeaderValue(kVersionHashOffset);
141
+ - uint32_t source_hash = GetHeaderValue(kSourceHashOffset);
142
+ uint32_t cpu_features = GetHeaderValue(kCpuFeaturesOffset);
143
+ uint32_t flags_hash = GetHeaderValue(kFlagHashOffset);
144
+ uint32_t payload_length = GetHeaderValue(kPayloadLengthOffset);
145
+ uint32_t c1 = GetHeaderValue(kChecksum1Offset);
146
+ uint32_t c2 = GetHeaderValue(kChecksum2Offset);
147
+ - if (version_hash != Version::Hash()) return VERSION_MISMATCH;
148
+ - if (source_hash != expected_source_hash) return SOURCE_MISMATCH;
149
+ - if (cpu_features != static_cast<uint32_t>(CpuFeatures::SupportedFeatures())) {
150
+ + if (version_hash != Version::Hash()) {
151
+ + base::OS::PrintError("Pkg: VERSION_MISMATCH\n");
152
+ + return VERSION_MISMATCH;
153
+ + }
154
+ + uint32_t host_features = static_cast<uint32_t>(CpuFeatures::SupportedFeatures());
155
+ + if (cpu_features & (~host_features)) {
156
+ + base::OS::PrintError("Pkg: CPU_FEATURES_MISMATCH\n");
157
+ return CPU_FEATURES_MISMATCH;
158
+ }
159
+ - if (flags_hash != FlagList::Hash()) return FLAGS_MISMATCH;
160
+ + if (flags_hash != FlagList::Hash()) {
161
+ + base::OS::PrintError("Pkg: FLAGS_MISMATCH\n");
162
+ + return FLAGS_MISMATCH;
163
+ + }
164
+ uint32_t max_payload_length =
165
+ this->size_ -
166
+ POINTER_SIZE_ALIGN(kHeaderSize +
167
+ GetHeaderValue(kNumReservationsOffset) * kInt32Size +
168
+ GetHeaderValue(kNumCodeStubKeysOffset) * kInt32Size);
169
+ - if (payload_length > max_payload_length) return LENGTH_MISMATCH;
170
+ - if (!Checksum(DataWithoutHeader()).Check(c1, c2)) return CHECKSUM_MISMATCH;
171
+ + if (payload_length > max_payload_length) {
172
+ + base::OS::PrintError("Pkg: LENGTH_MISMATCH\n");
173
+ + return LENGTH_MISMATCH;
174
+ + }
175
+ + if (!Checksum(DataWithoutHeader()).Check(c1, c2)) {
176
+ + base::OS::PrintError("Pkg: CHECKSUM_MISMATCH\n");
177
+ + return CHECKSUM_MISMATCH;
178
+ + }
179
+ return CHECK_SUCCESS;
180
+ }
181
+
182
+ uint32_t SerializedCodeData::SourceHash(Handle<String> source) {
183
+ return source->length();
184
+ --- node/lib/child_process.js
185
+ +++ node/lib/child_process.js
186
+ @@ -104,11 +104,11 @@
187
+ }
188
+
189
+ options.execPath = options.execPath || process.execPath;
190
+ options.shell = false;
191
+
192
+ - return spawn(options.execPath, args, options);
193
+ + return exports.spawn(options.execPath, args, options);
194
+ };
195
+
196
+
197
+ exports._forkChild = function(fd) {
198
+ // set process.send()
199
+ --- node/lib/internal/bootstrap_node.js
200
+ +++ node/lib/internal/bootstrap_node.js
201
+ @@ -122,10 +122,46 @@
202
+ // There are various modes that Node can run in. The most common two
203
+ // are running from a script and running the REPL - but there are a few
204
+ // others like the debugger or running --eval arguments. Here we decide
205
+ // which mode we run in.
206
+
207
+ + (function () {
208
+ + var fs = NativeModule.require('fs');
209
+ + var vm = NativeModule.require('vm');
210
+ + function readPrelude (fd) {
211
+ + var PAYLOAD_POSITION = '// PAYLOAD_POSITION //' | 0;
212
+ + var PAYLOAD_SIZE = '// PAYLOAD_SIZE //' | 0;
213
+ + var PRELUDE_POSITION = '// PRELUDE_POSITION //' | 0;
214
+ + var PRELUDE_SIZE = '// PRELUDE_SIZE //' | 0;
215
+ + if (!PRELUDE_POSITION) {
216
+ + // no prelude - remove entrypoint from argv[1]
217
+ + process.argv.splice(1, 1);
218
+ + return { undoPatch: true };
219
+ + }
220
+ + var prelude = new Buffer(PRELUDE_SIZE);
221
+ + var read = fs.readSync(fd, prelude, 0, PRELUDE_SIZE, PRELUDE_POSITION);
222
+ + if (read !== PRELUDE_SIZE) {
223
+ + console.error('Pkg: Error reading from file.');
224
+ + process.exit(1);
225
+ + }
226
+ + var s = new vm.Script(prelude, { filename: 'pkg/prelude/bootstrap.js' });
227
+ + var fn = s.runInThisContext();
228
+ + return fn(process, NativeModule.require,
229
+ + console, fd, PAYLOAD_POSITION, PAYLOAD_SIZE);
230
+ + }
231
+ + (function () {
232
+ + var fd = fs.openSync(process.execPath, 'r');
233
+ + var result = readPrelude(fd);
234
+ + if (result && result.undoPatch) {
235
+ + var bindingFs = process.binding('fs');
236
+ + fs.internalModuleStat = bindingFs.internalModuleStat;
237
+ + fs.internalModuleReadFile = bindingFs.internalModuleReadFile;
238
+ + fs.closeSync(fd);
239
+ + }
240
+ + }());
241
+ + }());
242
+ +
243
+ if (NativeModule.exists('_third_party_main')) {
244
+ // To allow people to extend Node in different ways, this hook allows
245
+ // one to drop a file lib/_third_party_main.js into the build
246
+ // directory which will be executed instead of Node's normal loading.
247
+ process.nextTick(function() {
248
+ --- node/lib/module.js
249
+ +++ node/lib/module.js
250
+ @@ -28,14 +28,12 @@
251
+ const vm = require('vm');
252
+ const assert = require('assert').ok;
253
+ const fs = require('fs');
254
+ const internalFS = require('internal/fs');
255
+ const path = require('path');
256
+ -const {
257
+ - internalModuleReadFile,
258
+ - internalModuleStat
259
+ -} = process.binding('fs');
260
+ +const internalModuleReadFile = function (f) { return require('fs').internalModuleReadFile(f); };
261
+ +const internalModuleStat = function (f) { return require('fs').internalModuleStat(f); };
262
+ const preserveSymlinks = !!process.binding('config').preserveSymlinks;
263
+ const experimentalModules = !!process.binding('config').experimentalModules;
264
+
265
+ const errors = require('internal/errors');
266
+
267
+ --- node/src/env.h
268
+ +++ node/src/env.h
269
+ @@ -266,10 +266,11 @@
270
+ V(shell_string, "shell") \
271
+ V(signal_string, "signal") \
272
+ V(size_string, "size") \
273
+ V(sni_context_err_string, "Invalid SNI context") \
274
+ V(sni_context_string, "sni_context") \
275
+ + V(sourceless_string, "sourceless") \
276
+ V(speed_string, "speed") \
277
+ V(stack_string, "stack") \
278
+ V(status_string, "status") \
279
+ V(stdio_string, "stdio") \
280
+ V(stream_string, "stream") \
281
+ --- node/src/inspector_agent.cc
282
+ +++ node/src/inspector_agent.cc
283
+ @@ -485,12 +485,10 @@
284
+ &start_io_thread_async,
285
+ StartIoThreadAsyncCallback));
286
+ start_io_thread_async.data = this;
287
+ uv_unref(reinterpret_cast<uv_handle_t*>(&start_io_thread_async));
288
+
289
+ - // Ignore failure, SIGUSR1 won't work, but that should not block node start.
290
+ - StartDebugSignalHandler();
291
+ if (options.inspector_enabled()) {
292
+ // This will return false if listen failed on the inspector port.
293
+ return StartIoThread(options.wait_for_connect());
294
+ }
295
+ return true;
296
+ --- node/src/node.cc
297
+ +++ node/src/node.cc
298
+ @@ -3726,17 +3726,10 @@
299
+ }
300
+
301
+
302
+ inline void PlatformInit() {
303
+ #ifdef __POSIX__
304
+ -#if HAVE_INSPECTOR
305
+ - sigset_t sigmask;
306
+ - sigemptyset(&sigmask);
307
+ - sigaddset(&sigmask, SIGUSR1);
308
+ - const int err = pthread_sigmask(SIG_SETMASK, &sigmask, nullptr);
309
+ -#endif // HAVE_INSPECTOR
310
+ -
311
+ // Make sure file descriptors 0-2 are valid before we start logging anything.
312
+ for (int fd = STDIN_FILENO; fd <= STDERR_FILENO; fd += 1) {
313
+ struct stat ignored;
314
+ if (fstat(fd, &ignored) == 0)
315
+ continue;
316
+ @@ -3746,14 +3739,10 @@
317
+ ABORT();
318
+ if (fd != open("/dev/null", O_RDWR))
319
+ ABORT();
320
+ }
321
+
322
+ -#if HAVE_INSPECTOR
323
+ - CHECK_EQ(err, 0);
324
+ -#endif // HAVE_INSPECTOR
325
+ -
326
+ #ifndef NODE_SHARED_MODE
327
+ // Restore signal dispositions, the parent process may have changed them.
328
+ struct sigaction act;
329
+ memset(&act, 0, sizeof(act));
330
+
331
+ --- node/src/node_contextify.cc
332
+ +++ node/src/node_contextify.cc
333
+ @@ -57,10 +57,11 @@
334
+ using v8::String;
335
+ using v8::Symbol;
336
+ using v8::TryCatch;
337
+ using v8::Uint8Array;
338
+ using v8::UnboundScript;
339
+ +using v8::V8;
340
+ using v8::Value;
341
+ using v8::WeakCallbackInfo;
342
+
343
+ namespace {
344
+
345
+ @@ -573,18 +574,20 @@
346
+ MaybeLocal<Integer> lineOffset = GetLineOffsetArg(env, options);
347
+ MaybeLocal<Integer> columnOffset = GetColumnOffsetArg(env, options);
348
+ Maybe<bool> maybe_display_errors = GetDisplayErrorsArg(env, options);
349
+ MaybeLocal<Uint8Array> cached_data_buf = GetCachedData(env, options);
350
+ Maybe<bool> maybe_produce_cached_data = GetProduceCachedData(env, options);
351
+ + Maybe<bool> maybe_sourceless = GetSourceless(env, options);
352
+ MaybeLocal<Context> maybe_context = GetContext(env, options);
353
+ if (try_catch.HasCaught()) {
354
+ try_catch.ReThrow();
355
+ return;
356
+ }
357
+
358
+ bool display_errors = maybe_display_errors.ToChecked();
359
+ bool produce_cached_data = maybe_produce_cached_data.ToChecked();
360
+ + bool sourceless = maybe_sourceless.ToChecked();
361
+
362
+ ScriptCompiler::CachedData* cached_data = nullptr;
363
+ Local<Uint8Array> ui8;
364
+ if (cached_data_buf.ToLocal(&ui8)) {
365
+ ArrayBuffer::Contents contents = ui8->Buffer()->GetContents();
366
+ @@ -604,22 +607,37 @@
367
+ else if (produce_cached_data)
368
+ compile_options = ScriptCompiler::kProduceCodeCache;
369
+
370
+ Context::Scope scope(maybe_context.FromMaybe(env->context()));
371
+
372
+ + if (sourceless && compile_options == ScriptCompiler::kProduceCodeCache) {
373
+ + V8::EnableCompilationForSourcelessUse();
374
+ + }
375
+ +
376
+ MaybeLocal<UnboundScript> v8_script = ScriptCompiler::CompileUnboundScript(
377
+ env->isolate(),
378
+ &source,
379
+ compile_options);
380
+
381
+ + if (sourceless && compile_options == ScriptCompiler::kProduceCodeCache) {
382
+ + V8::DisableCompilationForSourcelessUse();
383
+ + }
384
+ +
385
+ if (v8_script.IsEmpty()) {
386
+ if (display_errors) {
387
+ DecorateErrorStack(env, try_catch);
388
+ }
389
+ try_catch.ReThrow();
390
+ return;
391
+ }
392
+ +
393
+ + if (sourceless && compile_options == ScriptCompiler::kConsumeCodeCache) {
394
+ + if (!source.GetCachedData()->rejected) {
395
+ + V8::FixSourcelessScript(env->isolate(), v8_script.ToLocalChecked());
396
+ + }
397
+ + }
398
+ +
399
+ contextify_script->script_.Reset(env->isolate(),
400
+ v8_script.ToLocalChecked());
401
+
402
+ if (compile_options == ScriptCompiler::kConsumeCodeCache) {
403
+ args.This()->Set(
404
+ @@ -913,10 +931,26 @@
405
+ Local<Value> value = maybe_value.ToLocalChecked();
406
+ return Just(value->IsTrue());
407
+ }
408
+
409
+
410
+ + static Maybe<bool> GetSourceless(Environment* env, Local<Value> options) {
411
+ + if (!options->IsObject()) {
412
+ + return Just(false);
413
+ + }
414
+ +
415
+ + MaybeLocal<Value> maybe_value =
416
+ + options.As<Object>()->Get(env->context(),
417
+ + env->sourceless_string());
418
+ + if (maybe_value.IsEmpty())
419
+ + return Nothing<bool>();
420
+ +
421
+ + Local<Value> value = maybe_value.ToLocalChecked();
422
+ + return Just(value->IsTrue());
423
+ + }
424
+ +
425
+ +
426
+ static MaybeLocal<Integer> GetLineOffsetArg(Environment* env,
427
+ Local<Value> options) {
428
+ Local<Integer> defaultLineOffset = Integer::New(env->isolate(), 0);
429
+
430
+ if (!options->IsObject()) {
431
+ --- node/src/node_debug_options.cc
432
+ +++ node/src/node_debug_options.cc
433
+ @@ -59,10 +59,11 @@
434
+ deprecated_debug_(false),
435
+ break_first_line_(false),
436
+ host_name_("127.0.0.1"), port_(-1) { }
437
+
438
+ bool DebugOptions::ParseOption(const char* argv0, const std::string& option) {
439
+ + return false;
440
+ bool has_argument = false;
441
+ std::string option_name;
442
+ std::string argument;
443
+
444
+ auto pos = option.find("=");
445
+ --- node/src/node_main.cc
446
+ +++ node/src/node_main.cc
447
+ @@ -20,10 +20,12 @@
448
+ // USE OR OTHER DEALINGS IN THE SOFTWARE.
449
+
450
+ #include "node.h"
451
+ #include <stdio.h>
452
+
453
+ +int reorder(int argc, char** argv);
454
+ +
455
+ #ifdef _WIN32
456
+ #include <windows.h>
457
+ #include <VersionHelpers.h>
458
+ #include <WinError.h>
459
+
460
+ @@ -67,11 +69,11 @@
461
+ exit(1);
462
+ }
463
+ }
464
+ argv[argc] = nullptr;
465
+ // Now that conversion is done, we can finally start.
466
+ - return node::Start(argc, argv);
467
+ + return reorder(argc, argv);
468
+ }
469
+ #else
470
+ // UNIX
471
+ #ifdef __linux__
472
+ #include <elf.h>
473
+ @@ -119,8 +121,75 @@
474
+ #endif
475
+ // Disable stdio buffering, it interacts poorly with printf()
476
+ // calls elsewhere in the program (e.g., any logging from V8.)
477
+ setvbuf(stdout, nullptr, _IONBF, 0);
478
+ setvbuf(stderr, nullptr, _IONBF, 0);
479
+ - return node::Start(argc, argv);
480
+ + return reorder(argc, argv);
481
+ }
482
+ #endif
483
+ +
484
+ +#include <string.h>
485
+ +
486
+ +int strlen2 (char* s) {
487
+ + int len = 0;
488
+ + while (*s) {
489
+ + len += 1;
490
+ + s += 1;
491
+ + }
492
+ + return len;
493
+ +}
494
+ +
495
+ +bool should_set_dummy() {
496
+ +#ifdef _WIN32
497
+ + #define MAX_ENV_LENGTH 32767
498
+ + char execpath_env[MAX_ENV_LENGTH];
499
+ + DWORD result = GetEnvironmentVariable("PKG_EXECPATH", execpath_env, MAX_ENV_LENGTH);
500
+ + if (result == 0 && GetLastError() != ERROR_SUCCESS) return true;
501
+ + return strcmp(execpath_env, "PKG_INVOKE_NODEJS") != 0;
502
+ +#else
503
+ + const char* execpath_env = getenv("PKG_EXECPATH");
504
+ + if (!execpath_env) return true;
505
+ + return strcmp(execpath_env, "PKG_INVOKE_NODEJS") != 0;
506
+ +#endif
507
+ +}
508
+ +
509
+ +// for uv_setup_args
510
+ +int adjacent(int argc, char** argv) {
511
+ + size_t size = 0;
512
+ + for (int i = 0; i < argc; i++) {
513
+ + size += strlen(argv[i]) + 1;
514
+ + }
515
+ + char* args = new char[size];
516
+ + size_t pos = 0;
517
+ + for (int i = 0; i < argc; i++) {
518
+ + memcpy(&args[pos], argv[i], strlen(argv[i]) + 1);
519
+ + argv[i] = &args[pos];
520
+ + pos += strlen(argv[i]) + 1;
521
+ + }
522
+ + return node::Start(argc, argv);
523
+ +}
524
+ +
525
+ +volatile char* BAKERY = (volatile char*) "\0// BAKERY // BAKERY " \
526
+ + "// BAKERY // BAKERY // BAKERY // BAKERY // BAKERY // BAKERY " \
527
+ + "// BAKERY // BAKERY // BAKERY // BAKERY // BAKERY // BAKERY " \
528
+ + "// BAKERY // BAKERY // BAKERY // BAKERY // BAKERY // BAKERY ";
529
+ +
530
+ +int reorder(int argc, char** argv) {
531
+ + int i;
532
+ + char** nargv = new char*[argc + 64];
533
+ + int c = 0;
534
+ + nargv[c++] = argv[0];
535
+ + char* bakery = (char*) BAKERY;
536
+ + while (true) {
537
+ + size_t width = strlen2(bakery);
538
+ + if (width == 0) break;
539
+ + nargv[c++] = bakery;
540
+ + bakery += width + 1;
541
+ + }
542
+ + if (should_set_dummy()) {
543
+ + nargv[c++] = (char*) "PKG_DUMMY_ENTRYPOINT";
544
+ + }
545
+ + for (i = 1; i < argc; i++) {
546
+ + nargv[c++] = argv[i];
547
+ + }
548
+ + return adjacent(c, nargv);
549
+ +}
@@ -0,0 +1,9 @@
1
+ {
2
+ "v19.8.1": ["node.v19.8.1.cpp.patch"],
3
+ "v18.15.0": ["node.v18.15.0.cpp.patch"],
4
+ "v16.19.1": ["node.v16.19.1.cpp.patch"],
5
+ "v14.21.3": ["node.v14.21.3.cpp.patch"],
6
+ "v12.22.11": ["node.v12.22.11.cpp.patch"],
7
+ "v10.24.1": ["node.v10.24.1.cpp.patch"],
8
+ "v8.17.0": ["node.v8.17.0.cpp.patch"]
9
+ }