node/test/addons
Daryl Haresign 7f2c810814
src,tools: initialize cppgc
This patch:

- Initializes cppgc in InitializeOncePerProcess() when
  kNoInitializeCppgc is not set
- Create a CppHeap and attach it to the Isolate when
  there isn't one already during IsolateData initialization.
  The CppHeap is detached and terminated when IsolateData
  is freed.
- Publishes the cppgc headers in the tarball.

This allows C++ addons to start using cppgc to manage objects.

A helper node::SetCppgcReference() is also added to help addons
enable cppgc tracing in a user-defined object.

Co-authored-by: Joyee Cheung <joyeec9h3@gmail.com>
Refs: https://github.com/nodejs/node/issues/40786
PR-URL: https://github.com/nodejs/node/pull/45704
Refs: https://docs.google.com/document/d/1ny2Qz_EsUnXGKJRGxoA-FXIE2xpLgaMAN6jD7eAkqFQ/edit
Reviewed-By: Stephen Belanger <admin@stephenbelanger.com>
Reviewed-By: Rafael Gonzaga <rafael.nunu@hotmail.com>
2023-08-11 00:43:51 +00:00
..
async-cleanup-hook
async-hello-world test: use uv_sleep() where possible 2022-10-27 17:13:50 +00:00
async-hooks-id test: add trailing commas in addons test (#45548) 2022-11-21 18:40:12 +01:00
async-resource test: add trailing commas in addons test (#45548) 2022-11-21 18:40:12 +01:00
buffer-free-callback
callback-scope test: add trailing commas in addons test (#45548) 2022-11-21 18:40:12 +01:00
cppgc-object src,tools: initialize cppgc 2023-08-11 00:43:51 +00:00
dlopen-ping-pong build,test: add proper support for IBM i 2023-02-22 04:18:56 +00:00
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 domain: improve deprecation warning text for DEP0097 2020-11-18 18:58:49 +00:00
make-callback-recurse
new-isolate-addon src: fix creating Isolates from addons 2022-12-23 17:06:05 +00:00
new-target
no-addons src,process: add permission model 2023-02-23 18:11:51 +00:00
node-module-version
non-node-context test: add trailing commas in addons test (#45548) 2022-11-21 18:40:12 +01:00
not-a-binding
null-buffer-neuter
openssl-binding build,test: add proper support for IBM i 2023-02-22 04:18:56 +00:00
openssl-client-cert-engine test: add trailing commas in addons test (#45548) 2022-11-21 18:40:12 +01:00
openssl-key-engine test: add trailing commas in addons test (#45548) 2022-11-21 18:40:12 +01:00
openssl-providers build,test: add proper support for IBM i 2023-02-22 04:18:56 +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 18:40:12 +01:00
report-api report: disable js stack when no context is entered 2023-06-21 13:58:15 +00:00
report-fatalerror test: fix -Wunused-variable on report-fatalerror 2022-12-08 00:00:45 +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 18:40:12 +01: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 18:40:12 +01:00
worker-buffer-callback src: throw DataCloneError on transfering untransferable objects 2023-05-05 11:22:42 +00:00
zlib-binding build,test: add proper support for IBM i 2023-02-22 04:18:56 +00:00
.gitignore
addons.status test: skip some binding tests on IBMi PASE 2022-10-02 22:41:21 +00:00
common.gypi build,test: add proper support for IBM i 2023-02-22 04:18:56 +00:00
testcfg.py test: make status file names consistent 2021-03-01 12:18:18 -08:00