node/test/addons
Anna Henningsen ded87f6dc4 src: fix creating Isolates from addons
daae938f32 broke addons which create their own `Isolate`
instances, because enabling the shared-readonly-heap feature
of V8 requires all snapshots used for different `Isolate`s to
be identical. Usage of addons that do this has probably
decreased quite a bit since Worker threads were introduced
in Node.js, but it’s still a valid use case, and in any case
the breakage was probably not intentional (although the referenced
commit did require test changes because of this issue).

This commit addresses this issue partially by caching the
V8 snapshot parameters and ignoring ones passed in from users
in `NewIsolate()` when this feature is enabled, and makes
the `NodeMainInstance` snapshot-based isolate creation
also re-use this code.

PR-URL: https://github.com/nodejs/node/pull/45885
Reviewed-By: James M Snell <jasnell@gmail.com>
2023-01-05 13:11:36 -03:00
..
async-cleanup-hook
async-hello-world test: use uv_sleep() where possible 2022-11-10 09:42:59 -03:00
async-hooks-id test: add trailing commas in addons test (#45548) 2022-11-21 15:20:48 -05:00
async-resource test: add trailing commas in addons test (#45548) 2022-11-21 15:20:48 -05:00
buffer-free-callback
callback-scope test: add trailing commas in addons test (#45548) 2022-11-21 15:20:48 -05:00
dlopen-ping-pong
errno-exception test: use assert.match instead of regexp.test 2021-08-31 18:50:16 +02:00
force-context-aware src: disambiguate terms used to refer to builtins and addons 2022-08-09 01:36:49 +08:00
heap-profiler
hello-world
hello-world-function-export
load-long-path
make-callback
make-callback-domain-warning
make-callback-recurse
new-isolate-addon src: fix creating Isolates from addons 2023-01-05 13:11:36 -03:00
new-target
no-addons test: add trailing commas in addons test (#45548) 2022-11-21 15:20:48 -05:00
node-module-version
non-node-context test: add trailing commas in addons test (#45548) 2022-11-21 15:20:48 -05:00
not-a-binding
null-buffer-neuter
openssl-binding
openssl-client-cert-engine test: add trailing commas in addons test (#45548) 2022-11-21 15:20:48 -05:00
openssl-key-engine test: add trailing commas in addons test (#45548) 2022-11-21 15:20:48 -05:00
openssl-providers test: fix addon tests compilation with OpenSSL 1.1.1 2022-09-22 23:19:44 +00:00
openssl-test-engine test: move test-crypto-engine to addon 2022-02-07 17:29:54 -05:00
parse-encoding test: add more cases for parse-encoding 2022-09-06 06:20:16 +00:00
register-signal-handler test: prepare for consistent comma-dangle lint rule 2021-04-01 23:14:29 -07:00
repl-domain-abort test: add trailing commas in addons test (#45548) 2022-11-21 15:20:48 -05:00
report-api test: remove unused variable in addon test 2022-10-02 13:10:46 +00:00
report-fatalerror test: fix -Wunused-variable on report-fatalerror 2022-12-12 16:17:50 +00:00
request-interrupt src: expose environment RequestInterrupt api 2022-09-01 17:01:00 +08:00
stringbytes-external-exceed-max test: add trailing commas in addons test (#45548) 2022-11-21 15:20:48 -05:00
symlinked-module src: disambiguate terms used to refer to builtins and addons 2022-08-09 01:36:49 +08:00
uv-handle-leak test: enable no-empty ESLint rule 2022-02-05 12:58:32 +00:00
worker-addon test: add trailing commas in addons test (#45548) 2022-11-21 15:20:48 -05:00
worker-buffer-callback test: fix comment misspellings of transferred 2020-12-07 07:31:58 -08:00
zlib-binding
.gitignore
addons.status test: skip some binding tests on IBMi PASE 2022-10-02 22:41:21 +00:00
common.gypi
testcfg.py test: make status file names consistent 2021-03-01 12:18:18 -08:00