-
Notifications
You must be signed in to change notification settings - Fork 23
upgraded nodejs version to 20.18.0 #58
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,4 @@ | ||
| node_modules/ | ||
| build/ | ||
| cache/ | ||
| .DS_Store |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| --- a/configure.py | ||
| +++ b/configure.py | ||
| @@ -1598,7 +1598,9 @@ def configure_v8(o): | ||
| o['variables']['v8_use_siphash'] = 0 if options.without_siphash else 1 | ||
| o['variables']['v8_enable_maglev'] = 1 if options.v8_enable_maglev else 0 | ||
| o['variables']['v8_enable_pointer_compression'] = 1 if options.enable_pointer_compression else 0 | ||
| - o['variables']['v8_enable_sandbox'] = 1 if options.enable_pointer_compression else 0 | ||
| + | ||
| + # o['variables']['v8_enable_sandbox'] = 1 if options.enable_pointer_compression else 0 | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why do we need to disable this option?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There has been a commit that was introduced in nodejs 20.17.0 that enforces enabling |
||
| + | ||
| o['variables']['v8_enable_31bit_smis_on_64bit_arch'] = 1 if options.enable_pointer_compression else 0 | ||
| o['variables']['v8_enable_shared_ro_heap'] = 0 if options.enable_pointer_compression or options.disable_shared_ro_heap else 1 | ||
| o['variables']['v8_enable_extensible_ro_snapshot'] = 0 | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| --- a/deps/uv/src/win/fs-event.c | ||
| +++ b/deps/uv/src/win/fs-event.c | ||
| @@ -266,6 +266,8 @@ short_path_done: | ||
| } | ||
|
|
||
| dir_to_watch = dir; | ||
| + uv__free(short_path); | ||
| + short_path = NULL; | ||
| uv__free(pathw); | ||
| pathw = NULL; | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,24 @@ | ||
| disable usage of <sys/random.h> | ||
|
|
||
| --- deps/cares/config/linux/ares_config.h | ||
| +++ deps/cares/config/linux/ares_config.h | ||
| @@ -116,7 +116,9 @@ | ||
| #define HAVE_GETNAMEINFO 1 | ||
|
|
||
| /* Define to 1 if you have `getrandom` */ | ||
| +#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 25 | ||
| #define HAVE_GETRANDOM 1 | ||
| +#endif | ||
|
|
||
| /* Define to 1 if you have `getservbyport_r` */ | ||
| #define HAVE_GETSERVBYPORT_R 1 | ||
| @@ -329,7 +331,9 @@ | ||
| #define HAVE_SYS_PARAM_H 1 | ||
|
|
||
| /* Define to 1 if you have the <sys/random.h> header file. */ | ||
| +#if defined(__GLIBC__) && __GLIBC__ >= 2 && __GLIBC_MINOR__ >= 25 | ||
| #define HAVE_SYS_RANDOM_H 1 | ||
| +#endif | ||
|
|
||
| /* Define to 1 if you have the <sys/select.h> header file. */ | ||
| #define HAVE_SYS_SELECT_H 1 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| --- src/node.cc | ||
| +++ src/node.cc | ||
| @@ -377,6 +377,14 @@ MaybeLocal<Value> StartExecution(Environment* env, StartExecutionCallback cb) { | ||
| return env->RunSnapshotDeserializeMain(); | ||
| } | ||
|
|
||
| + // To allow people to extend Node in different ways, this hook allows | ||
| + // one to drop a file lib/_third_party_main.js into the build | ||
| + // directory which will be executed instead of Node's normal loading. | ||
| + if (env->builtin_loader()->Exists("_third_party_main")) { | ||
| + return StartExecution(env, "internal/main/run_third_party_main"); | ||
| + } | ||
| + | ||
| + | ||
| if (env->worker_context() != nullptr) { | ||
| return StartExecution(env, "internal/main/worker_thread"); | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| disable building of cctest as it (a) it fails to build due to align_alloc and (b) it is just a waste of time | ||
|
|
||
| --- node.gyp | ||
| +++ node.gyp | ||
| @@ -1144,7 +1144,7 @@ | ||
| }, # fuzz_strings | ||
| { | ||
| 'target_name': 'cctest', | ||
| - 'type': 'executable', | ||
| + 'type': 'none', | ||
|
|
||
| 'dependencies': [ | ||
| '<(node_lib_target_name)', |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| --- /dev/null | ||
| +++ lib/internal/main/run_third_party_main.js | ||
| @@ -0,0 +1,14 @@ | ||
| +'use strict'; | ||
| + | ||
| +const { | ||
| + prepareMainThreadExecution, | ||
| + markBootstrapComplete | ||
| +} = require('internal/process/pre_execution'); | ||
| + | ||
| +prepareMainThreadExecution(); | ||
| +markBootstrapComplete(); | ||
| + | ||
| +// Legacy _third_party_main.js support | ||
| +process.nextTick(() => { | ||
| + require('_third_party_main'); | ||
| +}); |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| expose option for configuring pointer compression | ||
|
|
||
| --- vcbuild.bat | ||
| +++ vcbuild.bat | ||
| @@ -67,6 +67,7 @@ set no_shared_roheap= | ||
| set doc= | ||
| set extra_msbuild_args= | ||
| set exit_code=0 | ||
| +set v8_ptr_compress= | ||
|
|
||
| :next-arg | ||
| if "%1"=="" goto args-done | ||
| @@ -139,6 +140,7 @@ if /i "%1"=="cctest" set cctest=1&goto arg-ok | ||
| if /i "%1"=="openssl-no-asm" set openssl_no_asm=1&goto arg-ok | ||
| if /i "%1"=="no-shared-roheap" set no_shared_roheap=1&goto arg-ok | ||
| if /i "%1"=="doc" set doc=1&goto arg-ok | ||
| +if /i "%1"=="v8_ptr_compress" set v8_ptr_compress=1&goto arg-ok | ||
| if /i "%1"=="binlog" set extra_msbuild_args=/binaryLogger:out\%config%\node.binlog&goto arg-ok | ||
|
|
||
| echo Error: invalid command line option `%1`. | ||
| @@ -196,6 +198,7 @@ if defined debug_nghttp2 set configure_flags=%configure_flags% --debug-nghttp | ||
| if defined openssl_no_asm set configure_flags=%configure_flags% --openssl-no-asm | ||
| if defined no_shared_roheap set configure_flags=%configure_flags% --disable-shared-readonly-heap | ||
| if defined DEBUG_HELPER set configure_flags=%configure_flags% --verbose | ||
| +if defined v8_ptr_compress set configure_flags=%configure_flags% --experimental-enable-pointer-compression | ||
| if "%target_arch%"=="x86" if "%PROCESSOR_ARCHITECTURE%"=="AMD64" set configure_flags=%configure_flags% --no-cross-compiling | ||
|
|
||
| if not exist "%~dp0deps\icu" goto no-depsicu |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Support for
etw(Event Tracing for Windows) has been removed since nodejs v19.0.0 onward. nodejs/node#43652It's mentioned in the nodejs v19 changelog as well.