@encharm/cws 4.5.3 → 4.8.0

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.
Files changed (305) hide show
  1. package/CHANGELOG.md +18 -0
  2. package/CLAUDE.md +83 -0
  3. package/README.md +20 -4
  4. package/binding.gyp +8 -2
  5. package/dist/bindings/cws_darwin_arm64_node115.node +0 -0
  6. package/dist/bindings/cws_darwin_arm64_node127.node +0 -0
  7. package/dist/bindings/cws_darwin_arm64_node137.node +0 -0
  8. package/dist/bindings/cws_darwin_arm64_node147.node +0 -0
  9. package/dist/bindings/cws_linux_arm64_node115.node +0 -0
  10. package/dist/bindings/cws_linux_arm64_node127.node +0 -0
  11. package/dist/bindings/cws_linux_arm64_node137.node +0 -0
  12. package/dist/bindings/cws_linux_arm64_node147.node +0 -0
  13. package/dist/bindings/cws_linux_x64_node115.node +0 -0
  14. package/dist/bindings/cws_linux_x64_node127.node +0 -0
  15. package/dist/bindings/cws_linux_x64_node137.node +0 -0
  16. package/dist/bindings/cws_linux_x64_node147.node +0 -0
  17. package/dist/bindings/cws_win32_x64_node115.node +0 -0
  18. package/dist/bindings/cws_win32_x64_node127.node +0 -0
  19. package/dist/bindings/cws_win32_x64_node137.node +0 -0
  20. package/dist/bindings/cws_win32_x64_node147.node +0 -0
  21. package/dist/client.d.ts +1 -0
  22. package/dist/client.js +15 -1
  23. package/dist/index.d.ts +6 -1
  24. package/dist/index.js +2 -0
  25. package/dist/server.d.ts +1 -0
  26. package/dist/server.js +16 -2
  27. package/dist/shared.d.ts +1 -0
  28. package/dist/shared.js +3 -2
  29. package/package.json +1 -1
  30. package/src/Addon.cpp +4 -1
  31. package/src/Addon.h +80 -15
  32. package/src/Extensions.cpp +7 -1
  33. package/src/Extensions.h +2 -1
  34. package/src/Group.cpp +1 -1
  35. package/src/Group.h +4 -1
  36. package/src/HTTPSocket.cpp +1 -1
  37. package/src/Hub.cpp +11 -76
  38. package/src/Hub.h +12 -10
  39. package/src/Networking.h +11 -0
  40. package/src/Socket.h +201 -6
  41. package/src/WebSocket.cpp +8 -5
  42. package/src/Zlib.cpp +138 -0
  43. package/src/Zlib.h +38 -0
  44. package/src/cSNode.cpp +2 -0
  45. package/src/cSNode.h +4 -0
  46. package/src/headers/26/acorn_version.h +6 -0
  47. package/src/headers/26/aliased_buffer-inl.h +264 -0
  48. package/src/headers/26/aliased_buffer.h +205 -0
  49. package/src/headers/26/aliased_struct-inl.h +143 -0
  50. package/src/headers/26/aliased_struct.h +248 -0
  51. package/src/headers/26/amaro_version.h +6 -0
  52. package/src/headers/26/async_context_frame.h +33 -0
  53. package/src/headers/26/async_wrap-inl.h +123 -0
  54. package/src/headers/26/async_wrap.h +254 -0
  55. package/src/headers/26/base_object-inl.h +333 -0
  56. package/src/headers/26/base_object.h +339 -0
  57. package/src/headers/26/base_object_types.h +76 -0
  58. package/src/headers/26/blob_serializer_deserializer-inl.h +385 -0
  59. package/src/headers/26/blob_serializer_deserializer.h +142 -0
  60. package/src/headers/26/builtin_info.h +57 -0
  61. package/src/headers/26/callback_queue-inl.h +97 -0
  62. package/src/headers/26/callback_queue.h +79 -0
  63. package/src/headers/26/cares_wrap.h +475 -0
  64. package/src/headers/26/cleanup_queue-inl.h +36 -0
  65. package/src/headers/26/cleanup_queue.h +79 -0
  66. package/src/headers/26/compile_cache.h +134 -0
  67. package/src/headers/26/connect_wrap.h +26 -0
  68. package/src/headers/26/connection_wrap.h +30 -0
  69. package/src/headers/26/cppgc_helpers-inl.h +69 -0
  70. package/src/headers/26/cppgc_helpers.h +162 -0
  71. package/src/headers/26/crypto/crypto_aes.h +107 -0
  72. package/src/headers/26/crypto/crypto_argon2.h +88 -0
  73. package/src/headers/26/crypto/crypto_bio.h +193 -0
  74. package/src/headers/26/crypto/crypto_chacha20_poly1305.h +62 -0
  75. package/src/headers/26/crypto/crypto_cipher.h +291 -0
  76. package/src/headers/26/crypto/crypto_common.h +48 -0
  77. package/src/headers/26/crypto/crypto_context.h +219 -0
  78. package/src/headers/26/crypto/crypto_dh.h +104 -0
  79. package/src/headers/26/crypto/crypto_dsa.h +50 -0
  80. package/src/headers/26/crypto/crypto_ec.h +102 -0
  81. package/src/headers/26/crypto/crypto_hash.h +157 -0
  82. package/src/headers/26/crypto/crypto_hkdf.h +62 -0
  83. package/src/headers/26/crypto/crypto_hmac.h +92 -0
  84. package/src/headers/26/crypto/crypto_kem.h +131 -0
  85. package/src/headers/26/crypto/crypto_keygen.h +382 -0
  86. package/src/headers/26/crypto/crypto_keys.h +366 -0
  87. package/src/headers/26/crypto/crypto_kmac.h +79 -0
  88. package/src/headers/26/crypto/crypto_pbkdf2.h +76 -0
  89. package/src/headers/26/crypto/crypto_pqc.h +39 -0
  90. package/src/headers/26/crypto/crypto_random.h +127 -0
  91. package/src/headers/26/crypto/crypto_rsa.h +108 -0
  92. package/src/headers/26/crypto/crypto_scrypt.h +85 -0
  93. package/src/headers/26/crypto/crypto_sig.h +159 -0
  94. package/src/headers/26/crypto/crypto_spkac.h +21 -0
  95. package/src/headers/26/crypto/crypto_timing.h +20 -0
  96. package/src/headers/26/crypto/crypto_tls.h +342 -0
  97. package/src/headers/26/crypto/crypto_turboshake.h +105 -0
  98. package/src/headers/26/crypto/crypto_util.h +775 -0
  99. package/src/headers/26/crypto/crypto_x509.h +140 -0
  100. package/src/headers/26/dataqueue/queue.h +311 -0
  101. package/src/headers/26/debug_utils-inl.h +291 -0
  102. package/src/headers/26/debug_utils.h +200 -0
  103. package/src/headers/26/diagnosticfilename-inl.h +33 -0
  104. package/src/headers/26/embedded_data.h +17 -0
  105. package/src/headers/26/encoding_binding.h +59 -0
  106. package/src/headers/26/env-inl.h +956 -0
  107. package/src/headers/26/env.h +1294 -0
  108. package/src/headers/26/env_properties.h +562 -0
  109. package/src/headers/26/ffi/data.h +30 -0
  110. package/src/headers/26/ffi/fast.h +96 -0
  111. package/src/headers/26/ffi/jit_memory.h +26 -0
  112. package/src/headers/26/ffi/types.h +99 -0
  113. package/src/headers/26/handle_wrap.h +123 -0
  114. package/src/headers/26/histogram-inl.h +211 -0
  115. package/src/headers/26/histogram.h +474 -0
  116. package/src/headers/26/inspector/dom_storage_agent.h +68 -0
  117. package/src/headers/26/inspector/inspector_object_utils.h +38 -0
  118. package/src/headers/26/inspector/io_agent.h +30 -0
  119. package/src/headers/26/inspector/main_thread_interface.h +116 -0
  120. package/src/headers/26/inspector/network_agent.h +110 -0
  121. package/src/headers/26/inspector/network_inspector.h +45 -0
  122. package/src/headers/26/inspector/network_requests_buffer.h +195 -0
  123. package/src/headers/26/inspector/network_resource_manager.h +29 -0
  124. package/src/headers/26/inspector/node_json.h +24 -0
  125. package/src/headers/26/inspector/node_string.h +101 -0
  126. package/src/headers/26/inspector/notification_emitter.h +38 -0
  127. package/src/headers/26/inspector/protocol_helper.h +27 -0
  128. package/src/headers/26/inspector/runtime_agent.h +41 -0
  129. package/src/headers/26/inspector/storage_agent.h +33 -0
  130. package/src/headers/26/inspector/target_agent.h +59 -0
  131. package/src/headers/26/inspector/target_manager.h +70 -0
  132. package/src/headers/26/inspector/tracing_agent.h +43 -0
  133. package/src/headers/26/inspector/worker_agent.h +40 -0
  134. package/src/headers/26/inspector/worker_inspector.h +124 -0
  135. package/src/headers/26/inspector_agent.h +168 -0
  136. package/src/headers/26/inspector_io.h +78 -0
  137. package/src/headers/26/inspector_profiler.h +149 -0
  138. package/src/headers/26/inspector_socket.h +60 -0
  139. package/src/headers/26/inspector_socket_server.h +110 -0
  140. package/src/headers/26/js_native_api.h +634 -0
  141. package/src/headers/26/js_native_api_types.h +244 -0
  142. package/src/headers/26/js_native_api_v8.h +485 -0
  143. package/src/headers/26/js_native_api_v8_internals.h +45 -0
  144. package/src/headers/26/js_stream.h +57 -0
  145. package/src/headers/26/json_utils.h +172 -0
  146. package/src/headers/26/large_pages/node_large_page.h +34 -0
  147. package/src/headers/26/lru_cache-inl.h +69 -0
  148. package/src/headers/26/memory_tracker-inl.h +461 -0
  149. package/src/headers/26/memory_tracker.h +341 -0
  150. package/src/headers/26/module_wrap.h +231 -0
  151. package/src/headers/26/ncrypto.h +2008 -0
  152. package/src/headers/26/node.h +1693 -0
  153. package/src/headers/26/node_api.h +265 -0
  154. package/src/headers/26/node_api_internals.h +48 -0
  155. package/src/headers/26/node_api_types.h +58 -0
  156. package/src/headers/26/node_binding.h +170 -0
  157. package/src/headers/26/node_blob.h +160 -0
  158. package/src/headers/26/node_bob-inl.h +36 -0
  159. package/src/headers/26/node_bob.h +107 -0
  160. package/src/headers/26/node_buffer.h +92 -0
  161. package/src/headers/26/node_builtins.h +239 -0
  162. package/src/headers/26/node_concepts.h +46 -0
  163. package/src/headers/26/node_config_file.h +77 -0
  164. package/src/headers/26/node_constants.h +82 -0
  165. package/src/headers/26/node_context_data.h +171 -0
  166. package/src/headers/26/node_contextify.h +261 -0
  167. package/src/headers/26/node_crypto.h +66 -0
  168. package/src/headers/26/node_debug.h +30 -0
  169. package/src/headers/26/node_diagnostics_channel.h +121 -0
  170. package/src/headers/26/node_dir.h +52 -0
  171. package/src/headers/26/node_dotenv.h +45 -0
  172. package/src/headers/26/node_errors.h +378 -0
  173. package/src/headers/26/node_exit_code.h +54 -0
  174. package/src/headers/26/node_external_reference.h +171 -0
  175. package/src/headers/26/node_ffi.h +212 -0
  176. package/src/headers/26/node_file-inl.h +421 -0
  177. package/src/headers/26/node_file.h +561 -0
  178. package/src/headers/26/node_file_utils.h +39 -0
  179. package/src/headers/26/node_hash.h +212 -0
  180. package/src/headers/26/node_http2.h +1202 -0
  181. package/src/headers/26/node_http2_state.h +159 -0
  182. package/src/headers/26/node_http_common-inl.h +199 -0
  183. package/src/headers/26/node_http_common.h +535 -0
  184. package/src/headers/26/node_i18n.h +132 -0
  185. package/src/headers/26/node_internals.h +485 -0
  186. package/src/headers/26/node_locks.h +184 -0
  187. package/src/headers/26/node_main_instance.h +67 -0
  188. package/src/headers/26/node_mem-inl.h +113 -0
  189. package/src/headers/26/node_mem.h +45 -0
  190. package/src/headers/26/node_messaging.h +389 -0
  191. package/src/headers/26/node_metadata.h +172 -0
  192. package/src/headers/26/node_modules.h +102 -0
  193. package/src/headers/26/node_mutex.h +323 -0
  194. package/src/headers/26/node_object_wrap.h +145 -0
  195. package/src/headers/26/node_options-inl.h +524 -0
  196. package/src/headers/26/node_options.h +710 -0
  197. package/src/headers/26/node_perf.h +167 -0
  198. package/src/headers/26/node_perf_common.h +103 -0
  199. package/src/headers/26/node_platform.h +290 -0
  200. package/src/headers/26/node_process-inl.h +26 -0
  201. package/src/headers/26/node_process.h +112 -0
  202. package/src/headers/26/node_profiling.h +38 -0
  203. package/src/headers/26/node_realm-inl.h +156 -0
  204. package/src/headers/26/node_realm.h +236 -0
  205. package/src/headers/26/node_report.h +43 -0
  206. package/src/headers/26/node_revert.h +82 -0
  207. package/src/headers/26/node_root_certs.h +2937 -0
  208. package/src/headers/26/node_sea.h +101 -0
  209. package/src/headers/26/node_shadow_realm.h +46 -0
  210. package/src/headers/26/node_snapshot_builder.h +57 -0
  211. package/src/headers/26/node_snapshotable.h +167 -0
  212. package/src/headers/26/node_sockaddr-inl.h +248 -0
  213. package/src/headers/26/node_sockaddr.h +459 -0
  214. package/src/headers/26/node_sqlite.h +607 -0
  215. package/src/headers/26/node_stat_watcher.h +73 -0
  216. package/src/headers/26/node_task_runner.h +92 -0
  217. package/src/headers/26/node_threadsafe_cow-inl.h +54 -0
  218. package/src/headers/26/node_threadsafe_cow.h +105 -0
  219. package/src/headers/26/node_union_bytes.h +81 -0
  220. package/src/headers/26/node_url.h +101 -0
  221. package/src/headers/26/node_url_pattern.h +118 -0
  222. package/src/headers/26/node_v8.h +78 -0
  223. package/src/headers/26/node_v8_embedder.h +26 -0
  224. package/src/headers/26/node_v8_platform-inl.h +96 -0
  225. package/src/headers/26/node_version.h +116 -0
  226. package/src/headers/26/node_wasi.h +184 -0
  227. package/src/headers/26/node_wasm_web_api.h +55 -0
  228. package/src/headers/26/node_watchdog.h +164 -0
  229. package/src/headers/26/node_webstorage.h +62 -0
  230. package/src/headers/26/node_worker.h +162 -0
  231. package/src/headers/26/path.h +36 -0
  232. package/src/headers/26/permission/boolean_permission.h +50 -0
  233. package/src/headers/26/permission/fs_permission.h +192 -0
  234. package/src/headers/26/permission/permission.h +155 -0
  235. package/src/headers/26/permission/permission_base.h +79 -0
  236. package/src/headers/26/pipe_wrap.h +80 -0
  237. package/src/headers/26/quic/application.h +279 -0
  238. package/src/headers/26/quic/arena.h +373 -0
  239. package/src/headers/26/quic/bindingdata.h +440 -0
  240. package/src/headers/26/quic/cid.h +127 -0
  241. package/src/headers/26/quic/data.h +358 -0
  242. package/src/headers/26/quic/defs.h +417 -0
  243. package/src/headers/26/quic/endpoint.h +519 -0
  244. package/src/headers/26/quic/guard.h +5 -0
  245. package/src/headers/26/quic/http3.h +25 -0
  246. package/src/headers/26/quic/packet.h +166 -0
  247. package/src/headers/26/quic/preferredaddress.h +72 -0
  248. package/src/headers/26/quic/session.h +770 -0
  249. package/src/headers/26/quic/session_manager.h +107 -0
  250. package/src/headers/26/quic/sessionticket.h +110 -0
  251. package/src/headers/26/quic/streams.h +518 -0
  252. package/src/headers/26/quic/tlscontext.h +353 -0
  253. package/src/headers/26/quic/tokens.h +263 -0
  254. package/src/headers/26/quic/transportparams.h +184 -0
  255. package/src/headers/26/req_wrap-inl.h +175 -0
  256. package/src/headers/26/req_wrap.h +79 -0
  257. package/src/headers/26/spawn_sync.h +243 -0
  258. package/src/headers/26/stream_base-inl.h +170 -0
  259. package/src/headers/26/stream_base.h +487 -0
  260. package/src/headers/26/stream_pipe.h +76 -0
  261. package/src/headers/26/stream_wrap.h +137 -0
  262. package/src/headers/26/string_bytes.h +114 -0
  263. package/src/headers/26/string_decoder-inl.h +31 -0
  264. package/src/headers/26/string_decoder.h +49 -0
  265. package/src/headers/26/tcp_wrap.h +138 -0
  266. package/src/headers/26/threadpoolwork-inl.h +70 -0
  267. package/src/headers/26/timer_wrap-inl.h +32 -0
  268. package/src/headers/26/timer_wrap.h +87 -0
  269. package/src/headers/26/timers.h +70 -0
  270. package/src/headers/26/tracing/agent.h +125 -0
  271. package/src/headers/26/tracing/agent_legacy.h +146 -0
  272. package/src/headers/26/tracing/agent_perfetto.h +145 -0
  273. package/src/headers/26/tracing/node_trace_buffer.h +91 -0
  274. package/src/headers/26/tracing/node_trace_writer.h +79 -0
  275. package/src/headers/26/tracing/trace_event.h +27 -0
  276. package/src/headers/26/tracing/trace_event_helper.h +40 -0
  277. package/src/headers/26/tracing/trace_event_legacy.h +1113 -0
  278. package/src/headers/26/tracing/trace_event_legacy_inl.h +711 -0
  279. package/src/headers/26/tracing/trace_event_perfetto.h +47 -0
  280. package/src/headers/26/tracing/traced_value.h +167 -0
  281. package/src/headers/26/tty_wrap.h +65 -0
  282. package/src/headers/26/udp_wrap.h +231 -0
  283. package/src/headers/26/undici_version.h +6 -0
  284. package/src/headers/26/util-inl.h +788 -0
  285. package/src/headers/26/util.h +1207 -0
  286. package/src/headers/26/v8-cpp-heap-external.h +56 -0
  287. package/src/headers/26/v8-external-memory-accounter.h +60 -0
  288. package/src/headers/26/v8-fast-api-calls.h +784 -0
  289. package/src/headers/26/v8-inspector-protocol.h +13 -0
  290. package/src/headers/26/v8-inspector.h +458 -0
  291. package/src/headers/26/v8-metrics.h +273 -0
  292. package/src/headers/26/v8-trace-categories.h +28 -0
  293. package/src/headers/26/v8-unwinder-state.h +30 -0
  294. package/src/headers/26/v8-util.h +549 -0
  295. package/src/headers/26/v8-value-serializer-version.h +24 -0
  296. package/src/headers/26/v8-version-string.h +38 -0
  297. package/src/headers/26/v8-wasm-trap-handler-posix.h +31 -0
  298. package/src/headers/26/v8-wasm-trap-handler-win.h +28 -0
  299. package/src/headers/26/zlib_version.h +6 -0
  300. package/dist/bindings/cws_darwin_arm64_node115.node.dSYM/Contents/Info.plist +0 -20
  301. package/dist/bindings/cws_darwin_arm64_node115.node.dSYM/Contents/Resources/DWARF/cws_darwin_arm64_node115.node +0 -0
  302. package/dist/bindings/cws_darwin_arm64_node115.node.dSYM/Contents/Resources/Relocations/aarch64/cws_darwin_arm64_node115.node.yml +0 -931
  303. package/dist/bindings/cws_darwin_arm64_node127.node.dSYM/Contents/Info.plist +0 -20
  304. package/dist/bindings/cws_darwin_arm64_node127.node.dSYM/Contents/Resources/DWARF/cws_darwin_arm64_node127.node +0 -0
  305. package/dist/bindings/cws_darwin_arm64_node127.node.dSYM/Contents/Resources/Relocations/aarch64/cws_darwin_arm64_node127.node.yml +0 -931
@@ -0,0 +1,562 @@
1
+ #ifndef SRC_ENV_PROPERTIES_H_
2
+ #define SRC_ENV_PROPERTIES_H_
3
+
4
+ #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
5
+
6
+ // PER_ISOLATE_* macros: We have a lot of per-isolate properties
7
+ // and adding and maintaining their getters and setters by hand would be
8
+ // difficult so let's make the preprocessor generate them for us.
9
+ //
10
+ // In each macro, `V` is expected to be the name of a macro or function which
11
+ // accepts the number of arguments provided in each tuple in the macro body,
12
+ // typically two. The named function will be invoked against each tuple.
13
+ //
14
+ // Make sure that any macro V defined for use with the PER_ISOLATE_* macros is
15
+ // undefined again after use.
16
+
17
+ // Private symbols are per-isolate primitives but Environment proxies them
18
+ // for the sake of convenience. Strings should be ASCII-only and have a
19
+ // "node:" prefix to avoid name clashes with third-party code.
20
+ #define PER_ISOLATE_PRIVATE_SYMBOL_PROPERTIES(V) \
21
+ V(arrow_message_private_symbol, "node:arrowMessage") \
22
+ V(contextify_context_private_symbol, "node:contextify:context") \
23
+ V(decorated_private_symbol, "node:decorated") \
24
+ V(empty_context_frame_sentinel_symbol, "node:empty_context_frame_sentinel") \
25
+ V(ffi_pointer_address_private_symbol, "node:ffi:pointer_address") \
26
+ V(transfer_mode_private_symbol, "node:transfer_mode") \
27
+ V(host_defined_option_symbol, "node:host_defined_option_symbol") \
28
+ V(js_transferable_wrapper_private_symbol, "node:js_transferable_wrapper") \
29
+ V(entry_point_module_private_symbol, "node:entry_point_module") \
30
+ V(entry_point_promise_private_symbol, "node:entry_point_promise") \
31
+ V(module_source_private_symbol, "node:module_source") \
32
+ V(module_export_names_private_symbol, "node:module_export_names") \
33
+ V(module_circular_visited_private_symbol, "node:module_circular_visited") \
34
+ V(module_export_private_symbol, "node:module_export") \
35
+ V(module_first_parent_private_symbol, "node:module_first_parent") \
36
+ V(module_last_parent_private_symbol, "node:module_last_parent") \
37
+ V(napi_type_tag, "node:napi:type_tag") \
38
+ V(napi_wrapper, "node:napi:wrapper") \
39
+ V(untransferable_object_private_symbol, "node:untransferableObject") \
40
+ V(exit_info_private_symbol, "node:exit_info_private_symbol") \
41
+ V(promise_trace_id, "node:promise_trace_id") \
42
+ V(source_map_data_private_symbol, "node:source_map_data_private_symbol")
43
+
44
+ // Symbols are per-isolate primitives but Environment proxies them
45
+ // for the sake of convenience.
46
+ #define PER_ISOLATE_SYMBOL_PROPERTIES(V) \
47
+ V(fs_use_promises_symbol, "fs_use_promises_symbol") \
48
+ V(async_id_symbol, "async_id_symbol") \
49
+ V(ffi_sb_shared_buffer_symbol, "ffi_sb_shared_buffer_symbol") \
50
+ V(ffi_sb_invoke_slow_symbol, "ffi_sb_invoke_slow_symbol") \
51
+ V(ffi_sb_arguments_symbol, "ffi_sb_arguments_symbol") \
52
+ V(ffi_sb_return_symbol, "ffi_sb_return_symbol") \
53
+ V(ffi_fast_arguments_symbol, "ffi_fast_arguments_symbol") \
54
+ V(ffi_fast_buffer_invoke_symbol, "ffi_fast_buffer_invoke_symbol") \
55
+ V(constructor_key_symbol, "constructor_key_symbol") \
56
+ V(handle_onclose_symbol, "handle_onclose") \
57
+ V(no_message_symbol, "no_message_symbol") \
58
+ V(messaging_deserialize_symbol, "messaging_deserialize_symbol") \
59
+ V(imported_cjs_symbol, "imported_cjs_symbol") \
60
+ V(messaging_transfer_symbol, "messaging_transfer_symbol") \
61
+ V(messaging_clone_symbol, "messaging_clone_symbol") \
62
+ V(messaging_transfer_list_symbol, "messaging_transfer_list_symbol") \
63
+ V(oninit_symbol, "oninit") \
64
+ V(owner_symbol, "owner_symbol") \
65
+ V(onpskexchange_symbol, "onpskexchange") \
66
+ V(resource_symbol, "resource_symbol") \
67
+ V(trigger_async_id_symbol, "trigger_async_id_symbol") \
68
+ V(builtin_source_text_module_hdo, "builtin_source_text_module_hdo") \
69
+ V(embedder_module_hdo, "embedder_module_hdo") \
70
+ V(source_text_module_default_hdo, "source_text_module_default_hdo") \
71
+ V(vm_context_no_contextify, "vm_context_no_contextify") \
72
+ V(vm_dynamic_import_default_internal, "vm_dynamic_import_default_internal") \
73
+ V(vm_dynamic_import_main_context_default, \
74
+ "vm_dynamic_import_main_context_default") \
75
+ V(vm_dynamic_import_missing_flag, "vm_dynamic_import_missing_flag") \
76
+ V(vm_dynamic_import_no_callback, "vm_dynamic_import_no_callback")
77
+
78
+ // Strings are per-isolate primitives but Environment proxies them
79
+ // for the sake of convenience. Strings should be ASCII-only.
80
+ #define PER_ISOLATE_STRING_PROPERTIES(V) \
81
+ V(__filename_string, "__filename") \
82
+ V(__dirname_string, "__dirname") \
83
+ V(ack_string, "ack") \
84
+ V(address_string, "address") \
85
+ V(algorithm_string, "algorithm") \
86
+ V(aliases_string, "aliases") \
87
+ V(allow_bare_named_params_string, "allowBareNamedParameters") \
88
+ V(allow_unknown_named_params_string, "allowUnknownNamedParameters") \
89
+ V(alpn_callback_string, "ALPNCallback") \
90
+ V(args_string, "args") \
91
+ V(arguments_string, "arguments") \
92
+ V(async_ids_stack_string, "async_ids_stack") \
93
+ V(attributes_string, "attributes") \
94
+ V(backup_string, "backup") \
95
+ V(base_string, "base") \
96
+ V(base_url_string, "baseURL") \
97
+ V(brotli_string, "brotli") \
98
+ V(buffer_string, "buffer") \
99
+ V(bytes_parsed_string, "bytesParsed") \
100
+ V(bytes_read_string, "bytesRead") \
101
+ V(bytes_written_string, "bytesWritten") \
102
+ V(cached_data_produced_string, "cachedDataProduced") \
103
+ V(cached_data_rejected_string, "cachedDataRejected") \
104
+ V(cached_data_string, "cachedData") \
105
+ V(cause_string, "cause") \
106
+ V(change_string, "change") \
107
+ V(changes_string, "changes") \
108
+ V(chunks_sent_since_last_write_string, "chunksSentSinceLastWrite") \
109
+ V(clone_unsupported_type_str, "Cannot clone object of unsupported type.") \
110
+ V(clone_transfer_needed_str, \
111
+ "Object that needs transfer was found in message but not listed in " \
112
+ "transferList") \
113
+ V(clone_untransferable_str, "Found invalid value in transferList.") \
114
+ V(code_string, "code") \
115
+ V(config_string, "config") \
116
+ V(constants_string, "constants") \
117
+ V(crypto_dh_string, "dh") \
118
+ V(crypto_dsa_string, "dsa") \
119
+ V(crypto_ec_string, "ec") \
120
+ V(crypto_ed25519_string, "ed25519") \
121
+ V(crypto_ed448_string, "ed448") \
122
+ V(crypto_ml_dsa_44_string, "ml-dsa-44") \
123
+ V(crypto_ml_dsa_65_string, "ml-dsa-65") \
124
+ V(crypto_ml_dsa_87_string, "ml-dsa-87") \
125
+ V(crypto_ml_kem_512_string, "ml-kem-512") \
126
+ V(crypto_ml_kem_768_string, "ml-kem-768") \
127
+ V(crypto_ml_kem_1024_string, "ml-kem-1024") \
128
+ V(crypto_slh_dsa_sha2_128f_string, "slh-dsa-sha2-128f") \
129
+ V(crypto_slh_dsa_sha2_128s_string, "slh-dsa-sha2-128s") \
130
+ V(crypto_slh_dsa_sha2_192f_string, "slh-dsa-sha2-192f") \
131
+ V(crypto_slh_dsa_sha2_192s_string, "slh-dsa-sha2-192s") \
132
+ V(crypto_slh_dsa_sha2_256f_string, "slh-dsa-sha2-256f") \
133
+ V(crypto_slh_dsa_sha2_256s_string, "slh-dsa-sha2-256s") \
134
+ V(crypto_slh_dsa_shake_128f_string, "slh-dsa-shake-128f") \
135
+ V(crypto_slh_dsa_shake_128s_string, "slh-dsa-shake-128s") \
136
+ V(crypto_slh_dsa_shake_192f_string, "slh-dsa-shake-192f") \
137
+ V(crypto_slh_dsa_shake_192s_string, "slh-dsa-shake-192s") \
138
+ V(crypto_slh_dsa_shake_256f_string, "slh-dsa-shake-256f") \
139
+ V(crypto_slh_dsa_shake_256s_string, "slh-dsa-shake-256s") \
140
+ V(crypto_x25519_string, "x25519") \
141
+ V(crypto_x448_string, "x448") \
142
+ V(crypto_rsa_string, "rsa") \
143
+ V(crypto_rsa_pss_string, "rsa-pss") \
144
+ V(cwd_string, "cwd") \
145
+ V(data_string, "data") \
146
+ V(database_string, "database") \
147
+ V(default_is_true_string, "defaultIsTrue") \
148
+ V(defensive_string, "defensive") \
149
+ V(deserialize_info_string, "deserializeInfo") \
150
+ V(dest_string, "dest") \
151
+ V(destroyed_string, "destroyed") \
152
+ V(detached_string, "detached") \
153
+ V(dh_string, "DH") \
154
+ V(dirname_string, "dirname") \
155
+ V(divisor_length_string, "divisorLength") \
156
+ V(dns_a_string, "A") \
157
+ V(dns_aaaa_string, "AAAA") \
158
+ V(dns_caa_string, "CAA") \
159
+ V(dns_cname_string, "CNAME") \
160
+ V(dns_mx_string, "MX") \
161
+ V(dns_naptr_string, "NAPTR") \
162
+ V(dns_ns_string, "NS") \
163
+ V(dns_ptr_string, "PTR") \
164
+ V(dns_soa_string, "SOA") \
165
+ V(dns_srv_string, "SRV") \
166
+ V(dns_tlsa_string, "TLSA") \
167
+ V(dns_txt_string, "TXT") \
168
+ V(done_string, "done") \
169
+ V(duration_string, "duration") \
170
+ V(ecdh_string, "ECDH") \
171
+ V(emit_string, "emit") \
172
+ V(emit_warning_string, "emitWarning") \
173
+ V(encoding_string, "encoding") \
174
+ V(env_pairs_string, "envPairs") \
175
+ V(env_var_settings_string, "envVarSettings") \
176
+ V(err_sqlite_error_string, "ERR_SQLITE_ERROR") \
177
+ V(errcode_string, "errcode") \
178
+ V(errno_string, "errno") \
179
+ V(error_string, "error") \
180
+ V(errstr_string, "errstr") \
181
+ V(events_waiting, "eventsWaiting") \
182
+ V(events, "events") \
183
+ V(exclusive_string, "exclusive") \
184
+ V(exponent_string, "exponent") \
185
+ V(exports_string, "exports") \
186
+ V(external_stream_string, "_externalStream") \
187
+ V(extractable_string, "extractable") \
188
+ V(family_string, "family") \
189
+ V(fatal_exception_string, "_fatalException") \
190
+ V(fd_string, "fd") \
191
+ V(fields_string, "fields") \
192
+ V(file_string, "file") \
193
+ V(filename_string, "filename") \
194
+ V(filter_string, "filter") \
195
+ V(flags_string, "flags") \
196
+ V(flowlabel_string, "flowlabel") \
197
+ V(frames_received_string, "framesReceived") \
198
+ V(frames_sent_string, "framesSent") \
199
+ V(function_string, "function") \
200
+ V(get_string, "get") \
201
+ V(get_data_clone_error_string, "_getDataCloneError") \
202
+ V(get_shared_array_buffer_id_string, "_getSharedArrayBufferId") \
203
+ V(gid_string, "gid") \
204
+ V(groups_string, "groups") \
205
+ V(has_regexp_groups_string, "hasRegExpGroups") \
206
+ V(has_top_level_await_string, "hasTopLevelAwait") \
207
+ V(hash_string, "hash") \
208
+ V(h2_string, "h2") \
209
+ V(handle_string, "handle") \
210
+ V(hash_algorithm_string, "hashAlgorithm") \
211
+ V(help_text_string, "helpText") \
212
+ V(homedir_string, "homedir") \
213
+ V(host_string, "host") \
214
+ V(hostname_string, "hostname") \
215
+ V(href_string, "href") \
216
+ V(http_1_1_string, "http/1.1") \
217
+ V(id_string, "id") \
218
+ V(identity_string, "identity") \
219
+ V(ignore_case_string, "ignoreCase") \
220
+ V(ignore_string, "ignore") \
221
+ V(inherit_string, "inherit") \
222
+ V(input_string, "input") \
223
+ V(internal_crypto_keys_string, "internal/crypto/keys") \
224
+ V(inverse_string, "inverse") \
225
+ V(ipv4_string, "IPv4") \
226
+ V(ipv6_string, "IPv6") \
227
+ V(isclosing_string, "isClosing") \
228
+ V(issuercert_string, "issuerCertificate") \
229
+ V(iterator_string, "Iterator") \
230
+ V(jwk_akp_string, "AKP") \
231
+ V(jwk_alg_string, "alg") \
232
+ V(jwk_crv_string, "crv") \
233
+ V(jwk_d_string, "d") \
234
+ V(jwk_dp_string, "dp") \
235
+ V(jwk_dq_string, "dq") \
236
+ V(jwk_e_string, "e") \
237
+ V(jwk_ec_string, "EC") \
238
+ V(jwk_k_string, "k") \
239
+ V(jwk_kty_string, "kty") \
240
+ V(jwk_n_string, "n") \
241
+ V(jwk_oct_string, "oct") \
242
+ V(jwk_okp_string, "OKP") \
243
+ V(jwk_p_string, "p") \
244
+ V(jwk_priv_string, "priv") \
245
+ V(jwk_pub_string, "pub") \
246
+ V(jwk_q_string, "q") \
247
+ V(jwk_qi_string, "qi") \
248
+ V(jwk_rsa_string, "RSA") \
249
+ V(jwk_x_string, "x") \
250
+ V(jwk_y_string, "y") \
251
+ V(kill_signal_string, "killSignal") \
252
+ V(kind_string, "kind") \
253
+ V(last_insert_rowid_string, "lastInsertRowid") \
254
+ V(length_string, "length") \
255
+ V(limits_string, "limits") \
256
+ V(library_string, "library") \
257
+ V(loop_count, "loopCount") \
258
+ V(max_buffer_string, "maxBuffer") \
259
+ V(max_concurrent_streams_string, "maxConcurrentStreams") \
260
+ V(message_port_constructor_string, "MessagePort") \
261
+ V(message_port_string, "messagePort") \
262
+ V(message_string, "message") \
263
+ V(messageerror_string, "messageerror") \
264
+ V(mgf1_hash_algorithm_string, "mgf1HashAlgorithm") \
265
+ V(module_string, "module") \
266
+ V(modulus_length_string, "modulusLength") \
267
+ V(name_string, "name") \
268
+ V(named_curve_string, "namedCurve") \
269
+ V(next_string, "next") \
270
+ V(node_string, "node") \
271
+ V(object_string, "Object") \
272
+ V(ocsp_request_string, "OCSPRequest") \
273
+ V(ok_string, "ok") \
274
+ V(oncertcb_string, "oncertcb") \
275
+ V(onchange_string, "onchange") \
276
+ V(onclienthello_string, "onclienthello") \
277
+ V(oncomplete_string, "oncomplete") \
278
+ V(onconflict_string, "onConflict") \
279
+ V(onconnection_string, "onconnection") \
280
+ V(ondone_string, "ondone") \
281
+ V(onerror_string, "onerror") \
282
+ V(onexit_string, "onexit") \
283
+ V(onhandshakedone_string, "onhandshakedone") \
284
+ V(onhandshakestart_string, "onhandshakestart") \
285
+ V(onkeylog_string, "onkeylog") \
286
+ V(onmessage_string, "onmessage") \
287
+ V(onnewsession_string, "onnewsession") \
288
+ V(onocspresponse_string, "onocspresponse") \
289
+ V(onreadstart_string, "onreadstart") \
290
+ V(onreadstop_string, "onreadstop") \
291
+ V(onshutdown_string, "onshutdown") \
292
+ V(onsignal_string, "onsignal") \
293
+ V(onunpipe_string, "onunpipe") \
294
+ V(onwrite_string, "onwrite") \
295
+ V(ongracefulclosecomplete_string, "ongracefulclosecomplete") \
296
+ V(openssl_error_stack, "opensslErrorStack") \
297
+ V(operationerror_string, "OperationError") \
298
+ V(options_string, "options") \
299
+ V(original_string, "original") \
300
+ V(output_string, "output") \
301
+ V(overlapped_string, "overlapped") \
302
+ V(p256_string, "P-256") \
303
+ V(p384_string, "P-384") \
304
+ V(p521_string, "P-521") \
305
+ V(parse_error_string, "Parse Error") \
306
+ V(password_string, "password") \
307
+ V(path_string, "path") \
308
+ V(pathname_string, "pathname") \
309
+ V(pending_handle_string, "pendingHandle") \
310
+ V(permission_string, "permission") \
311
+ V(phase_string, "phase") \
312
+ V(pid_string, "pid") \
313
+ V(pointer_string, "pointer") \
314
+ V(ping_rtt_string, "pingRTT") \
315
+ V(pipe_source_string, "pipeSource") \
316
+ V(pipe_string, "pipe") \
317
+ V(pipe_target_string, "pipeTarget") \
318
+ V(port1_string, "port1") \
319
+ V(port2_string, "port2") \
320
+ V(port_string, "port") \
321
+ V(primordials_string, "primordials") \
322
+ V(process_string, "process") \
323
+ V(progress_string, "progress") \
324
+ V(promise_string, "promise") \
325
+ V(protocol_string, "protocol") \
326
+ V(prototype_string, "prototype") \
327
+ V(psk_string, "psk") \
328
+ V(public_exponent_string, "publicExponent") \
329
+ V(rate_string, "rate") \
330
+ V(read_host_object_string, "_readHostObject") \
331
+ V(readable_string, "readable") \
332
+ V(read_bigints_string, "readBigInts") \
333
+ V(reason_string, "reason") \
334
+ V(remaining_pages_string, "remainingPages") \
335
+ V(rename_string, "rename") \
336
+ V(required_module_facade_url_string, \
337
+ "node:internal/require_module_default_facade") \
338
+ V(required_module_facade_source_string, \
339
+ "export * from 'original'; export { default } from 'original'; export " \
340
+ "const __esModule = true;") \
341
+ V(require_string, "require") \
342
+ V(resource_string, "resource") \
343
+ V(result_string, "result") \
344
+ V(return_arrays_string, "returnArrays") \
345
+ V(return_string, "return") \
346
+ V(salt_length_string, "saltLength") \
347
+ V(secp256k1_string, "secp256k1") \
348
+ V(search_string, "search") \
349
+ V(servername_string, "servername") \
350
+ V(session_id_string, "sessionId") \
351
+ V(set_string, "set") \
352
+ V(shared_string, "shared") \
353
+ V(shell_string, "shell") \
354
+ V(signal_string, "signal") \
355
+ V(sink_string, "sink") \
356
+ V(size_string, "size") \
357
+ V(sni_context_err_string, "Invalid SNI context") \
358
+ V(sni_context_string, "sni_context") \
359
+ V(source_string, "source") \
360
+ V(source_map_url_string, "sourceMapURL") \
361
+ V(source_url_string, "sourceURL") \
362
+ V(specifier_string, "specifier") \
363
+ V(sql_string, "sql") \
364
+ V(stack_string, "stack") \
365
+ V(start_string, "start") \
366
+ V(state_string, "state") \
367
+ V(stats_string, "stats") \
368
+ V(status_string, "status") \
369
+ V(stdio_string, "stdio") \
370
+ V(step_string, "step") \
371
+ V(stream_average_duration_string, "streamAverageDuration") \
372
+ V(stream_count_string, "streamCount") \
373
+ V(synthetic_string, "synthetic") \
374
+ V(syscall_string, "syscall") \
375
+ V(table_string, "table") \
376
+ V(target_string, "target") \
377
+ V(then_string, "then") \
378
+ V(thread_id_string, "threadId") \
379
+ V(thread_name_string, "threadName") \
380
+ V(tls_group_string, "TLSGroup") \
381
+ V(ticketkeycallback_string, "onticketkeycallback") \
382
+ V(timeout_string, "timeout") \
383
+ V(time_to_first_byte_string, "timeToFirstByte") \
384
+ V(time_to_first_byte_sent_string, "timeToFirstByteSent") \
385
+ V(time_to_first_header_string, "timeToFirstHeader") \
386
+ V(tls_ticket_string, "tlsTicket") \
387
+ V(total_pages_string, "totalPages") \
388
+ V(transfer_string, "transfer") \
389
+ V(transfer_unsupported_type_str, \
390
+ "Cannot transfer object of unsupported type.") \
391
+ V(ttl_string, "ttl") \
392
+ V(type_string, "type") \
393
+ V(uid_string, "uid") \
394
+ V(unknown_string, "<unknown>") \
395
+ V(url_string, "url") \
396
+ V(usages_string, "usages") \
397
+ V(username_string, "username") \
398
+ V(value_string, "value") \
399
+ V(verify_error_string, "verifyError") \
400
+ V(version_string, "version") \
401
+ V(windows_hide_string, "windowsHide") \
402
+ V(windows_verbatim_arguments_string, "windowsVerbatimArguments") \
403
+ V(wrap_string, "wrap") \
404
+ V(writable_string, "writable") \
405
+ V(write_host_object_string, "_writeHostObject") \
406
+ V(write_queue_size_string, "writeQueueSize") \
407
+ V(zlib_string, "zlib") \
408
+ V(zstd_string, "zstd")
409
+
410
+ #define PER_ISOLATE_TEMPLATE_PROPERTIES(V) \
411
+ V(a_record_template, v8::DictionaryTemplate) \
412
+ V(aaaa_record_template, v8::DictionaryTemplate) \
413
+ V(async_wrap_ctor_template, v8::FunctionTemplate) \
414
+ V(binding_data_default_template, v8::ObjectTemplate) \
415
+ V(blob_constructor_template, v8::FunctionTemplate) \
416
+ V(blob_reader_constructor_template, v8::FunctionTemplate) \
417
+ V(blocklist_constructor_template, v8::FunctionTemplate) \
418
+ V(caa_record_template, v8::DictionaryTemplate) \
419
+ V(callsite_template, v8::DictionaryTemplate) \
420
+ V(cipherinfo_detail_template, v8::DictionaryTemplate) \
421
+ V(cipherinfo_template, v8::DictionaryTemplate) \
422
+ V(cname_record_template, v8::DictionaryTemplate) \
423
+ V(compiled_function_cjs_template, v8::DictionaryTemplate) \
424
+ V(compiled_function_template, v8::DictionaryTemplate) \
425
+ V(contextify_global_template, v8::ObjectTemplate) \
426
+ V(contextify_wrapper_template, v8::ObjectTemplate) \
427
+ V(cpu_usage_template, v8::DictionaryTemplate) \
428
+ V(crypto_cryptokey_constructor_template, v8::FunctionTemplate) \
429
+ V(crypto_key_object_handle_constructor, v8::FunctionTemplate) \
430
+ V(crypto_key_object_constructor_template, v8::FunctionTemplate) \
431
+ V(env_proxy_template, v8::ObjectTemplate) \
432
+ V(env_proxy_ctor_template, v8::FunctionTemplate) \
433
+ V(ephemeral_key_template, v8::DictionaryTemplate) \
434
+ V(dir_instance_template, v8::ObjectTemplate) \
435
+ V(dns_ns_record_template, v8::DictionaryTemplate) \
436
+ V(fd_constructor_template, v8::ObjectTemplate) \
437
+ V(fdclose_constructor_template, v8::ObjectTemplate) \
438
+ V(ffi_dynamic_library_constructor_template, v8::FunctionTemplate) \
439
+ V(ffi_function_constructor_template, v8::FunctionTemplate) \
440
+ V(filehandlereadwrap_template, v8::ObjectTemplate) \
441
+ V(free_list_statistics_template, v8::DictionaryTemplate) \
442
+ V(fsreqpromise_constructor_template, v8::ObjectTemplate) \
443
+ V(handle_wrap_ctor_template, v8::FunctionTemplate) \
444
+ V(heap_statistics_template, v8::DictionaryTemplate) \
445
+ V(v8_heap_statistics_template, v8::DictionaryTemplate) \
446
+ V(histogram_ctor_template, v8::FunctionTemplate) \
447
+ V(http2settings_constructor_template, v8::ObjectTemplate) \
448
+ V(http2stream_constructor_template, v8::ObjectTemplate) \
449
+ V(http2ping_constructor_template, v8::ObjectTemplate) \
450
+ V(i18n_converter_template, v8::ObjectTemplate) \
451
+ V(intervalhistogram_constructor_template, v8::FunctionTemplate) \
452
+ V(iterationhistogram_constructor_template, v8::FunctionTemplate) \
453
+ V(iter_template, v8::DictionaryTemplate) \
454
+ V(js_transferable_constructor_template, v8::FunctionTemplate) \
455
+ V(libuv_stream_wrap_ctor_template, v8::FunctionTemplate) \
456
+ V(lock_holder_constructor_template, v8::FunctionTemplate) \
457
+ V(lock_info_template, v8::DictionaryTemplate) \
458
+ V(lock_query_template, v8::DictionaryTemplate) \
459
+ V(message_port_constructor_template, v8::FunctionTemplate) \
460
+ V(module_wrap_constructor_template, v8::FunctionTemplate) \
461
+ V(mx_record_template, v8::DictionaryTemplate) \
462
+ V(naptr_record_template, v8::DictionaryTemplate) \
463
+ V(object_stats_template, v8::DictionaryTemplate) \
464
+ V(page_stats_template, v8::DictionaryTemplate) \
465
+ V(permission_diagnostic_channel_message, v8::DictionaryTemplate) \
466
+ V(pipe_constructor_template, v8::FunctionTemplate) \
467
+ V(script_context_constructor_template, v8::FunctionTemplate) \
468
+ V(secure_context_constructor_template, v8::FunctionTemplate) \
469
+ V(shutdown_wrap_template, v8::ObjectTemplate) \
470
+ V(soa_record_template, v8::DictionaryTemplate) \
471
+ V(socketaddress_constructor_template, v8::FunctionTemplate) \
472
+ V(space_stats_template, v8::DictionaryTemplate) \
473
+ V(sqlite_column_template, v8::DictionaryTemplate) \
474
+ V(sqlite_limits_template, v8::ObjectTemplate) \
475
+ V(sqlite_run_result_template, v8::DictionaryTemplate) \
476
+ V(sqlite_statement_sync_constructor_template, v8::FunctionTemplate) \
477
+ V(sqlite_statement_sync_iterator_constructor_template, v8::FunctionTemplate) \
478
+ V(sqlite_session_constructor_template, v8::FunctionTemplate) \
479
+ V(srv_record_template, v8::DictionaryTemplate) \
480
+ V(streambaseoutputstream_constructor_template, v8::ObjectTemplate) \
481
+ V(tcp_constructor_template, v8::FunctionTemplate) \
482
+ V(tlsa_record_template, v8::DictionaryTemplate) \
483
+ V(tty_constructor_template, v8::FunctionTemplate) \
484
+ V(txt_record_template, v8::DictionaryTemplate) \
485
+ V(urlpatterncomponentresult_template, v8::DictionaryTemplate) \
486
+ V(urlpatterninit_template, v8::DictionaryTemplate) \
487
+ V(urlpatternresult_template, v8::DictionaryTemplate) \
488
+ V(write_wrap_template, v8::ObjectTemplate) \
489
+ V(worker_cpu_profile_taker_template, v8::ObjectTemplate) \
490
+ V(worker_cpu_usage_taker_template, v8::ObjectTemplate) \
491
+ V(worker_heap_profile_taker_template, v8::ObjectTemplate) \
492
+ V(worker_heap_snapshot_taker_template, v8::ObjectTemplate) \
493
+ V(worker_heap_statistics_taker_template, v8::ObjectTemplate) \
494
+ V(x509_constructor_template, v8::FunctionTemplate) \
495
+ V(x509_dictionary_template, v8::DictionaryTemplate)
496
+
497
+ #define PER_REALM_STRONG_PERSISTENT_VALUES(V) \
498
+ V(async_hooks_after_function, v8::Function) \
499
+ V(async_hooks_before_function, v8::Function) \
500
+ V(async_hooks_callback_trampoline, v8::Function) \
501
+ V(async_hooks_binding, v8::Object) \
502
+ V(async_hooks_destroy_function, v8::Function) \
503
+ V(async_hooks_init_function, v8::Function) \
504
+ V(async_hooks_promise_resolve_function, v8::Function) \
505
+ V(buffer_prototype_object, v8::Object) \
506
+ V(crypto_internal_cryptokey_constructor, v8::Function) \
507
+ V(crypto_key_object_private_constructor, v8::Function) \
508
+ V(crypto_key_object_public_constructor, v8::Function) \
509
+ V(crypto_key_object_secret_constructor, v8::Function) \
510
+ V(enhance_fatal_stack_after_inspector, v8::Function) \
511
+ V(enhance_fatal_stack_before_inspector, v8::Function) \
512
+ V(get_source_map_error_source, v8::Function) \
513
+ V(host_import_module_dynamically_callback, v8::Function) \
514
+ V(host_import_meta_resolve_initializer, v8::Function) \
515
+ V(host_initialize_import_meta_object_callback, v8::Function) \
516
+ V(http2session_on_altsvc_function, v8::Function) \
517
+ V(http2session_on_error_function, v8::Function) \
518
+ V(http2session_on_frame_error_function, v8::Function) \
519
+ V(http2session_on_goaway_data_function, v8::Function) \
520
+ V(http2session_on_headers_function, v8::Function) \
521
+ V(http2session_on_origin_function, v8::Function) \
522
+ V(http2session_on_ping_function, v8::Function) \
523
+ V(http2session_on_priority_function, v8::Function) \
524
+ V(http2session_on_settings_function, v8::Function) \
525
+ V(http2session_on_stream_close_function, v8::Function) \
526
+ V(http2session_on_stream_trailers_function, v8::Function) \
527
+ V(internal_binding_loader, v8::Function) \
528
+ V(immediate_callback_function, v8::Function) \
529
+ V(inspector_console_extension_installer, v8::Function) \
530
+ V(inspector_disable_async_hooks, v8::Function) \
531
+ V(inspector_disable_network_tracking, v8::Function) \
532
+ V(inspector_enable_async_hooks, v8::Function) \
533
+ V(inspector_enable_network_tracking, v8::Function) \
534
+ V(maybe_cache_generated_source_map, v8::Function) \
535
+ V(messaging_deserialize_create_object, v8::Function) \
536
+ V(message_port, v8::Object) \
537
+ V(builtin_module_require, v8::Function) \
538
+ V(performance_entry_callback, v8::Function) \
539
+ V(prepare_stack_trace_callback, v8::Function) \
540
+ V(process_object, v8::Object) \
541
+ V(process_emit_warning_sync, v8::Function) \
542
+ V(primordials, v8::Object) \
543
+ V(primordials_safe_map_prototype_object, v8::Object) \
544
+ V(primordials_safe_set_prototype_object, v8::Object) \
545
+ V(primordials_safe_weak_map_prototype_object, v8::Object) \
546
+ V(primordials_safe_weak_set_prototype_object, v8::Object) \
547
+ V(promise_reject_callback, v8::Function) \
548
+ V(snapshot_serialize_callback, v8::Function) \
549
+ V(snapshot_deserialize_callback, v8::Function) \
550
+ V(snapshot_deserialize_main, v8::Function) \
551
+ V(source_map_cache_getter, v8::Function) \
552
+ V(tick_callback_function, v8::Function) \
553
+ V(timers_callback_function, v8::Function) \
554
+ V(tls_wrap_constructor_function, v8::Function) \
555
+ V(trace_category_state_function, v8::Function) \
556
+ V(udp_constructor_function, v8::Function) \
557
+ V(wasm_streaming_compilation_impl, v8::Function) \
558
+ V(wasm_streaming_object_constructor, v8::Function)
559
+
560
+ #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
561
+
562
+ #endif // SRC_ENV_PROPERTIES_H_
@@ -0,0 +1,30 @@
1
+ #pragma once
2
+
3
+ #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS
4
+
5
+ #include "base_object.h"
6
+ #include "ffi.h"
7
+
8
+ #include <cstdint>
9
+
10
+ namespace node::ffi {
11
+
12
+ v8::Maybe<int64_t> GetValidatedSignedInt(Environment* env,
13
+ v8::Local<v8::Value> value,
14
+ int64_t min,
15
+ int64_t max,
16
+ const char* type_name);
17
+
18
+ v8::Maybe<uint64_t> GetValidatedUnsignedInt(Environment* env,
19
+ v8::Local<v8::Value> value,
20
+ uint64_t max,
21
+ const char* type_name);
22
+
23
+ v8::Maybe<uintptr_t> GetValidatedPointerAddress(Environment* env,
24
+ v8::Local<v8::Value> value,
25
+ const char* label);
26
+
27
+ size_t GetFFIReturnValueStorageSize(ffi_type* type);
28
+ } // namespace node::ffi
29
+
30
+ #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS