visaljs 0.0.7 → 0.0.8

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 (428) hide show
  1. package/README.md +63 -2
  2. package/THIRD_PARTY_LICENSES +1216 -0
  3. package/cli.js +4413 -324
  4. package/node/include/js_node.h +57 -1
  5. package/node/include/js_uv.h +8 -1
  6. package/node/prelude/_stream_duplex.js +4 -0
  7. package/node/prelude/_stream_passthrough.js +4 -0
  8. package/node/prelude/_stream_readable.js +4 -0
  9. package/node/prelude/_stream_transform.js +4 -0
  10. package/node/prelude/_stream_writable.js +4 -0
  11. package/node/prelude/assert.js +1334 -0
  12. package/node/prelude/assert_strict.js +12 -0
  13. package/node/prelude/async_hooks.js +1 -1
  14. package/node/prelude/buffer.js +43 -3
  15. package/node/prelude/child_process.js +1098 -0
  16. package/node/prelude/cluster.js +52 -0
  17. package/node/prelude/console.js +328 -0
  18. package/node/prelude/constants.js +10 -0
  19. package/node/prelude/crypto.js +1 -1
  20. package/node/prelude/diagnostics_channel.js +1 -1
  21. package/node/prelude/dns.js +1 -1
  22. package/node/prelude/domain.js +115 -0
  23. package/node/prelude/events.js +144 -16
  24. package/node/prelude/fs.js +1138 -151
  25. package/node/prelude/fs_promises.js +117 -11
  26. package/node/prelude/http.js +104 -27
  27. package/node/prelude/http2.js +1 -1
  28. package/node/prelude/https.js +148 -0
  29. package/node/prelude/inspector.js +27 -0
  30. package/node/prelude/inspector_promises.js +4 -0
  31. package/node/prelude/internal/async_context.js +1 -1
  32. package/node/prelude/internal/buffer_transcode.js +44 -0
  33. package/node/prelude/internal/comparisons.js +916 -0
  34. package/node/prelude/internal/compression_streams.js +153 -0
  35. package/node/prelude/internal/crypto/asym.js +27 -14
  36. package/node/prelude/internal/crypto/cipher.js +16 -5
  37. package/node/prelude/internal/crypto/diffiehellman.js +3 -2
  38. package/node/prelude/internal/crypto/hash.js +2 -1
  39. package/node/prelude/internal/crypto/kdf.js +14 -9
  40. package/node/prelude/internal/crypto/keys.js +63 -50
  41. package/node/prelude/internal/crypto/random.js +2 -1
  42. package/node/prelude/internal/crypto/util.js +4 -4
  43. package/node/prelude/internal/dotenv.js +98 -0
  44. package/node/prelude/internal/errors.js +21 -5
  45. package/node/prelude/internal/events_extras.js +116 -0
  46. package/node/prelude/internal/events_on.js +100 -0
  47. package/node/prelude/internal/features.js +55 -0
  48. package/node/prelude/internal/fetch.js +364 -0
  49. package/node/prelude/internal/form_data.js +376 -0
  50. package/node/prelude/internal/fs_bigint_stats.js +41 -0
  51. package/node/prelude/internal/fs_blob.js +19 -0
  52. package/node/prelude/internal/fs_cp.js +709 -0
  53. package/node/prelude/internal/fs_dir.js +166 -0
  54. package/node/prelude/internal/fs_filehandle.js +287 -0
  55. package/node/prelude/internal/fs_glob.js +296 -0
  56. package/node/prelude/internal/fs_statfs.js +42 -0
  57. package/node/prelude/internal/fs_stats.js +89 -0
  58. package/node/prelude/internal/fs_streams.js +541 -0
  59. package/node/prelude/internal/fs_utils.js +286 -0
  60. package/node/prelude/internal/fs_watch.js +580 -0
  61. package/node/prelude/internal/http_agent.js +26 -0
  62. package/node/prelude/internal/mime.js +249 -0
  63. package/node/prelude/internal/net.js +1 -0
  64. package/node/prelude/internal/parse_args.js +288 -0
  65. package/node/prelude/internal/perf_histogram.js +435 -0
  66. package/node/prelude/internal/perf_observe.js +119 -0
  67. package/node/prelude/internal/performance_global.js +19 -0
  68. package/node/prelude/internal/process_events.js +49 -1
  69. package/node/prelude/internal/process_memory.js +14 -0
  70. package/node/prelude/internal/process_more.js +414 -0
  71. package/node/prelude/internal/process_signals.js +2 -1
  72. package/node/prelude/internal/process_stdin.js +52 -0
  73. package/node/prelude/internal/process_stdio.js +36 -0
  74. package/node/prelude/internal/querystring.js +0 -0
  75. package/node/prelude/internal/readline.js +338 -0
  76. package/node/prelude/internal/socketaddress.js +8 -4
  77. package/node/prelude/internal/source_map.js +122 -0
  78. package/node/prelude/internal/stream_compose.js +74 -0
  79. package/node/prelude/internal/stream_from.js +6 -0
  80. package/node/prelude/internal/stream_operators.js +23 -0
  81. package/node/prelude/internal/stream_pipeline.js +7 -0
  82. package/node/prelude/internal/stream_transform.js +10 -0
  83. package/node/prelude/internal/stream_web_adapters.js +143 -0
  84. package/node/prelude/internal/streams/add_abort_signal.js +58 -0
  85. package/node/prelude/internal/streams/compose.js +244 -0
  86. package/node/prelude/internal/streams/destroy.js +358 -0
  87. package/node/prelude/internal/streams/duplex.js +199 -0
  88. package/node/prelude/internal/streams/duplexify.js +378 -0
  89. package/node/prelude/internal/streams/end_of_stream.js +387 -0
  90. package/node/prelude/internal/streams/errors.js +216 -0
  91. package/node/prelude/internal/streams/from.js +211 -0
  92. package/node/prelude/internal/streams/legacy.js +120 -0
  93. package/node/prelude/internal/streams/operators.js +375 -0
  94. package/node/prelude/internal/streams/passthrough.js +45 -0
  95. package/node/prelude/internal/streams/pipeline.js +468 -0
  96. package/node/prelude/internal/streams/readable.js +1835 -0
  97. package/node/prelude/internal/streams/state.js +48 -0
  98. package/node/prelude/internal/streams/transform.js +203 -0
  99. package/node/prelude/internal/streams/utils.js +355 -0
  100. package/node/prelude/internal/streams/validators.js +108 -0
  101. package/node/prelude/internal/streams/writable.js +1160 -0
  102. package/node/prelude/internal/structured_clone.js +238 -0
  103. package/node/prelude/internal/system_errors.js +37 -0
  104. package/node/prelude/internal/test_runner/mock.js +431 -0
  105. package/node/prelude/internal/test_runner/reporters.js +404 -0
  106. package/node/prelude/internal/test_runner/test.js +1571 -0
  107. package/node/prelude/internal/timers.js +38 -7
  108. package/node/prelude/internal/timers_global.js +1 -1
  109. package/node/prelude/internal/tls/common.js +8 -2
  110. package/node/prelude/internal/tls/wrap.js +3 -15
  111. package/node/prelude/internal/tls/x509.js +1 -1
  112. package/node/prelude/internal/tty_read_stream.js +39 -0
  113. package/node/prelude/internal/tty_streams.js +3 -0
  114. package/node/prelude/internal/util_debuglog.js +68 -0
  115. package/node/prelude/internal/util_diff.js +63 -0
  116. package/node/prelude/internal/util_more.js +111 -0
  117. package/node/prelude/internal/util_styles.js +76 -0
  118. package/node/prelude/internal/zlib_engines.js +1 -1
  119. package/node/prelude/module.js +194 -7
  120. package/node/prelude/net.js +2 -1
  121. package/node/prelude/os.js +88 -11
  122. package/node/prelude/path.js +11 -7
  123. package/node/prelude/path_posix.js +1 -1
  124. package/node/prelude/path_win32.js +1 -1
  125. package/node/prelude/perf_hooks.js +147 -0
  126. package/node/prelude/process.js +36 -1
  127. package/node/prelude/punycode.js +188 -0
  128. package/node/prelude/querystring.js +1 -1
  129. package/node/prelude/readline.js +8 -0
  130. package/node/prelude/readline_promises.js +88 -0
  131. package/node/prelude/repl.js +38 -0
  132. package/node/prelude/sea.js +23 -0
  133. package/node/prelude/stream.js +70 -1332
  134. package/node/prelude/stream_consumers.js +34 -0
  135. package/node/prelude/stream_promises.js +1 -1
  136. package/node/prelude/stream_web.js +15 -2
  137. package/node/prelude/string_decoder.js +1 -1
  138. package/node/prelude/sys.js +7 -0
  139. package/node/prelude/test.js +56 -0
  140. package/node/prelude/test_reporters.js +269 -0
  141. package/node/prelude/timers.js +7 -84
  142. package/node/prelude/timers_promises.js +1 -1
  143. package/node/prelude/tls.js +2 -1
  144. package/node/prelude/trace_events.js +52 -0
  145. package/node/prelude/tty.js +10 -4
  146. package/node/prelude/url.js +88 -27
  147. package/node/prelude/util.js +121 -5
  148. package/node/prelude/util_types.js +4 -3
  149. package/node/prelude/v8.js +814 -0
  150. package/node/prelude/vm.js +86 -0
  151. package/node/prelude/wasi.js +10 -0
  152. package/node/prelude/worker_threads.js +56 -0
  153. package/node/prelude/zlib.js +58 -25
  154. package/node/src/host_brotli.c +59 -11
  155. package/node/src/host_fs.c +342 -11
  156. package/node/src/host_fswatch.c +170 -0
  157. package/node/src/host_http.c +143 -20
  158. package/node/src/host_loop.c +25 -2
  159. package/node/src/host_net.c +55 -7
  160. package/node/src/host_os.c +55 -1
  161. package/node/src/host_proc.c +291 -0
  162. package/node/src/host_process.c +488 -0
  163. package/node/src/host_sys.c +64 -2
  164. package/node/src/host_zlib.c +27 -7
  165. package/node/src/host_zstd.c +41 -6
  166. package/node/third_party/hdrhistogram/LICENSE +42 -0
  167. package/node/third_party/hdrhistogram/README.md +5 -0
  168. package/node/third_party/libuv/LICENSE +0 -0
  169. package/node/third_party/libuv/LICENSE-extra +36 -0
  170. package/node/third_party/libuv/include/uv/aix.h +0 -0
  171. package/node/third_party/libuv/include/uv/bsd.h +0 -0
  172. package/node/third_party/libuv/include/uv/darwin.h +0 -0
  173. package/node/third_party/libuv/include/uv/errno.h +0 -0
  174. package/node/third_party/libuv/include/uv/linux.h +0 -0
  175. package/node/third_party/libuv/include/uv/os390.h +0 -0
  176. package/node/third_party/libuv/include/uv/posix.h +0 -0
  177. package/node/third_party/libuv/include/uv/sunos.h +0 -0
  178. package/node/third_party/libuv/include/uv/threadpool.h +0 -0
  179. package/node/third_party/libuv/include/uv/tree.h +0 -0
  180. package/node/third_party/libuv/include/uv/unix.h +0 -0
  181. package/node/third_party/libuv/include/uv/version.h +0 -0
  182. package/node/third_party/libuv/include/uv/win.h +0 -0
  183. package/node/third_party/libuv/include/uv.h +0 -0
  184. package/node/third_party/libuv/src/fs-poll.c +0 -0
  185. package/node/third_party/libuv/src/heap-inl.h +0 -0
  186. package/node/third_party/libuv/src/idna.c +0 -0
  187. package/node/third_party/libuv/src/idna.h +0 -0
  188. package/node/third_party/libuv/src/inet.c +0 -0
  189. package/node/third_party/libuv/src/queue.h +0 -0
  190. package/node/third_party/libuv/src/random.c +0 -0
  191. package/node/third_party/libuv/src/strscpy.c +0 -0
  192. package/node/third_party/libuv/src/strscpy.h +0 -0
  193. package/node/third_party/libuv/src/strtok.c +0 -0
  194. package/node/third_party/libuv/src/strtok.h +0 -0
  195. package/node/third_party/libuv/src/thread-common.c +0 -0
  196. package/node/third_party/libuv/src/threadpool.c +0 -0
  197. package/node/third_party/libuv/src/timer.c +0 -0
  198. package/node/third_party/libuv/src/unix/async.c +0 -0
  199. package/node/third_party/libuv/src/unix/bsd-ifaddrs.c +0 -0
  200. package/node/third_party/libuv/src/unix/core.c +0 -0
  201. package/node/third_party/libuv/src/unix/darwin-proctitle.c +0 -0
  202. package/node/third_party/libuv/src/unix/darwin-stub.h +0 -0
  203. package/node/third_party/libuv/src/unix/darwin-syscalls.h +0 -0
  204. package/node/third_party/libuv/src/unix/darwin.c +0 -0
  205. package/node/third_party/libuv/src/unix/dl.c +0 -0
  206. package/node/third_party/libuv/src/unix/fs.c +0 -0
  207. package/node/third_party/libuv/src/unix/fsevents.c +0 -0
  208. package/node/third_party/libuv/src/unix/getaddrinfo.c +0 -0
  209. package/node/third_party/libuv/src/unix/getnameinfo.c +0 -0
  210. package/node/third_party/libuv/src/unix/internal.h +0 -0
  211. package/node/third_party/libuv/src/unix/kqueue.c +0 -0
  212. package/node/third_party/libuv/src/unix/linux.c +0 -0
  213. package/node/third_party/libuv/src/unix/loop-watcher.c +0 -0
  214. package/node/third_party/libuv/src/unix/loop.c +0 -0
  215. package/node/third_party/libuv/src/unix/pipe.c +0 -0
  216. package/node/third_party/libuv/src/unix/poll.c +0 -0
  217. package/node/third_party/libuv/src/unix/process.c +0 -0
  218. package/node/third_party/libuv/src/unix/procfs-exepath.c +0 -0
  219. package/node/third_party/libuv/src/unix/proctitle.c +0 -0
  220. package/node/third_party/libuv/src/unix/random-devurandom.c +0 -0
  221. package/node/third_party/libuv/src/unix/random-getentropy.c +0 -0
  222. package/node/third_party/libuv/src/unix/random-getrandom.c +0 -0
  223. package/node/third_party/libuv/src/unix/random-sysctl-linux.c +0 -0
  224. package/node/third_party/libuv/src/unix/signal.c +0 -0
  225. package/node/third_party/libuv/src/unix/stream.c +0 -0
  226. package/node/third_party/libuv/src/unix/tcp.c +0 -0
  227. package/node/third_party/libuv/src/unix/thread.c +0 -0
  228. package/node/third_party/libuv/src/unix/tty.c +0 -0
  229. package/node/third_party/libuv/src/unix/udp.c +0 -0
  230. package/node/third_party/libuv/src/uv-common.c +0 -0
  231. package/node/third_party/libuv/src/uv-common.h +0 -0
  232. package/node/third_party/libuv/src/uv-data-getter-setters.c +0 -0
  233. package/node/third_party/libuv/src/version.c +0 -0
  234. package/node/third_party/llhttp/LICENSE +0 -0
  235. package/node/third_party/llhttp/api.c +0 -0
  236. package/node/third_party/llhttp/http.c +0 -0
  237. package/node/third_party/llhttp/llhttp.c +0 -0
  238. package/node/third_party/llhttp/llhttp.h +0 -0
  239. package/node/third_party/nodejs/LICENSE +47 -0
  240. package/node/third_party/nodejs/README.md +5 -0
  241. package/node/third_party/parseargs/LICENSE +21 -0
  242. package/node/third_party/parseargs/README.md +5 -0
  243. package/node/third_party/punycode/LICENSE +20 -0
  244. package/node/third_party/punycode/README.md +5 -0
  245. package/node/third_party/zlib/LICENSE.chromium +27 -0
  246. package/package.json +1 -1
  247. package/prebuilt/darwin-arm64/boringssl-4a47438eaf7e73ba.a +0 -0
  248. package/prebuilt/darwin-arm64/brotli-7995bbdacc52e51c.a +0 -0
  249. package/prebuilt/darwin-arm64/uv-72ab666eae197cd8.a +0 -0
  250. package/prebuilt/darwin-arm64/zlib-4ce2317a4c3f5fb5.a +0 -0
  251. package/prebuilt/darwin-arm64/zstd-015315ac7c784c73.a +0 -0
  252. package/prebuilt/darwin-x64/boringssl-4a47438eaf7e73ba.a +0 -0
  253. package/prebuilt/darwin-x64/brotli-7995bbdacc52e51c.a +0 -0
  254. package/prebuilt/darwin-x64/uv-72ab666eae197cd8.a +0 -0
  255. package/prebuilt/darwin-x64/zlib-4ce2317a4c3f5fb5.a +0 -0
  256. package/prebuilt/darwin-x64/zstd-015315ac7c784c73.a +0 -0
  257. package/prebuilt/linux-arm64/boringssl-4a47438eaf7e73ba.a +0 -0
  258. package/prebuilt/linux-arm64/brotli-65481ff838ce9def.a +0 -0
  259. package/prebuilt/linux-arm64/uv-f1353f50ff983f3c.a +0 -0
  260. package/prebuilt/linux-arm64/zlib-4ce2317a4c3f5fb5.a +0 -0
  261. package/prebuilt/linux-arm64/zstd-015315ac7c784c73.a +0 -0
  262. package/prebuilt/linux-arm64-musl/boringssl-4a47438eaf7e73ba.a +0 -0
  263. package/prebuilt/linux-arm64-musl/brotli-65481ff838ce9def.a +0 -0
  264. package/prebuilt/linux-arm64-musl/uv-f1353f50ff983f3c.a +0 -0
  265. package/prebuilt/linux-arm64-musl/zlib-4ce2317a4c3f5fb5.a +0 -0
  266. package/prebuilt/linux-arm64-musl/zstd-015315ac7c784c73.a +0 -0
  267. package/prebuilt/linux-x64/boringssl-4a47438eaf7e73ba.a +0 -0
  268. package/prebuilt/linux-x64/brotli-65481ff838ce9def.a +0 -0
  269. package/prebuilt/linux-x64/uv-f1353f50ff983f3c.a +0 -0
  270. package/prebuilt/linux-x64/zlib-4ce2317a4c3f5fb5.a +0 -0
  271. package/prebuilt/linux-x64/zstd-015315ac7c784c73.a +0 -0
  272. package/prebuilt/linux-x64-musl/boringssl-4a47438eaf7e73ba.a +0 -0
  273. package/prebuilt/linux-x64-musl/brotli-65481ff838ce9def.a +0 -0
  274. package/prebuilt/linux-x64-musl/uv-f1353f50ff983f3c.a +0 -0
  275. package/prebuilt/linux-x64-musl/zlib-4ce2317a4c3f5fb5.a +0 -0
  276. package/prebuilt/linux-x64-musl/zstd-015315ac7c784c73.a +0 -0
  277. package/prebuilt/win32-x64/boringssl-ce573858472b7fc9.a +0 -0
  278. package/prebuilt/win32-x64/brotli-20d86a61f30baeb3.a +0 -0
  279. package/prebuilt/win32-x64/uv-b11bae65d7fced82.a +0 -0
  280. package/prebuilt/win32-x64/zlib-4ce2317a4c3f5fb5.a +0 -0
  281. package/prebuilt/win32-x64/zstd-015315ac7c784c73.a +0 -0
  282. package/runtime/include/js_atoms.gen.h +0 -0
  283. package/runtime/include/js_atoms.h +1 -1
  284. package/runtime/include/js_bigint.h +1 -1
  285. package/runtime/include/js_buffer.h +4 -4
  286. package/runtime/include/js_builtins.h +41 -3
  287. package/runtime/include/js_console.h +9 -4
  288. package/runtime/include/js_convert.h +1 -1
  289. package/runtime/include/js_core.def +5 -4
  290. package/runtime/include/js_crypto.h +1 -1
  291. package/runtime/include/js_error.h +1 -1
  292. package/runtime/include/js_exception.h +21 -1
  293. package/runtime/include/js_function.h +33 -9
  294. package/runtime/include/js_gc.h +172 -30
  295. package/runtime/include/js_generator.h +2 -2
  296. package/runtime/include/js_host.h +19 -1
  297. package/runtime/include/js_jobs.h +5 -5
  298. package/runtime/include/js_module.h +1 -1
  299. package/runtime/include/js_object.h +142 -15
  300. package/runtime/include/js_ops.h +107 -5
  301. package/runtime/include/js_promise.h +3 -3
  302. package/runtime/include/js_regexp.h +1 -1
  303. package/runtime/include/js_runtime.h +0 -0
  304. package/runtime/include/js_symbol.h +1 -1
  305. package/runtime/include/js_web.h +2 -1
  306. package/runtime/include/jscell.h +22 -15
  307. package/runtime/include/jscontext.h +74 -39
  308. package/runtime/include/jsnum.h +1 -1
  309. package/runtime/include/jsstring.h +19 -6
  310. package/runtime/include/jsvalue.h +7 -3
  311. package/runtime/src/arguments.c +2 -2
  312. package/runtime/src/array.c +4 -1
  313. package/runtime/src/arraybuffer.c +19 -7
  314. package/runtime/src/async_iter.c +4 -3
  315. package/runtime/src/atoms.c +1 -1
  316. package/runtime/src/base64.c +2 -2
  317. package/runtime/src/bigint.c +1 -1
  318. package/runtime/src/blob.c +22 -9
  319. package/runtime/src/boringssl_support.cc +1 -1
  320. package/runtime/src/buffer.c +299 -91
  321. package/runtime/src/builtin_table.c +1 -1
  322. package/runtime/src/builtins.c +30 -4
  323. package/runtime/src/builtins_util.h +0 -0
  324. package/runtime/src/collections.c +18 -3
  325. package/runtime/src/components.c +1 -1
  326. package/runtime/src/console.c +14 -7
  327. package/runtime/src/convert.c +0 -0
  328. package/runtime/src/core_all.c +1 -1
  329. package/runtime/src/crypto.c +1 -1
  330. package/runtime/src/crypto_asym.c +1 -1
  331. package/runtime/src/crypto_bn.c +1 -1
  332. package/runtime/src/crypto_cipher.c +10 -3
  333. package/runtime/src/crypto_hash.c +1 -1
  334. package/runtime/src/crypto_host.c +1 -1
  335. package/runtime/src/crypto_internal.h +1 -1
  336. package/runtime/src/crypto_kdf.c +1 -1
  337. package/runtime/src/crypto_key.c +14 -1
  338. package/runtime/src/crypto_pkey.c +1 -1
  339. package/runtime/src/crypto_subtle.c +142 -58
  340. package/runtime/src/crypto_tls.c +1 -1
  341. package/runtime/src/date.c +5 -2
  342. package/runtime/src/domexception.c +2 -2
  343. package/runtime/src/elements.c +56 -17
  344. package/runtime/src/elements.h +7 -2
  345. package/runtime/src/encoding.c +1 -1
  346. package/runtime/src/error.c +4 -4
  347. package/runtime/src/events.c +23 -14
  348. package/runtime/src/exception.c +1 -1
  349. package/runtime/src/fetch.c +241 -17
  350. package/runtime/src/function.c +31 -19
  351. package/runtime/src/gc.c +1716 -207
  352. package/runtime/src/gc_visit.h +87 -0
  353. package/runtime/src/generator.c +5 -3
  354. package/runtime/src/global.c +14 -6
  355. package/runtime/src/headers.c +10 -10
  356. package/runtime/src/inspect.c +76 -17
  357. package/runtime/src/internal.h +5 -2
  358. package/runtime/src/iterate.c +94 -2
  359. package/runtime/src/iterator.c +1 -1
  360. package/runtime/src/jobs.c +11 -5
  361. package/runtime/src/jsnum.c +2 -2
  362. package/runtime/src/json.c +1 -1
  363. package/runtime/src/math.c +9 -1
  364. package/runtime/src/module.c +3 -3
  365. package/runtime/src/number.c +0 -0
  366. package/runtime/src/object.c +107 -74
  367. package/runtime/src/ops.c +21 -3
  368. package/runtime/src/os.c +192 -1
  369. package/runtime/src/os.h +33 -2
  370. package/runtime/src/process.c +73 -8
  371. package/runtime/src/promise.c +4 -4
  372. package/runtime/src/proxy.c +1 -1
  373. package/runtime/src/reflect.c +1 -1
  374. package/runtime/src/regexp.c +134 -2
  375. package/runtime/src/regexp_anchor.h +1 -1
  376. package/runtime/src/regexp_message.h +1 -1
  377. package/runtime/src/shape.c +10 -19
  378. package/runtime/src/shape.h +0 -0
  379. package/runtime/src/streams.c +22 -8
  380. package/runtime/src/streams.h +0 -0
  381. package/runtime/src/string.c +64 -25
  382. package/runtime/src/string_builtins.c +7 -7
  383. package/runtime/src/symbol.c +2 -7
  384. package/runtime/src/test_host.c +3 -3
  385. package/runtime/src/tls_roots.gen.h +102 -620
  386. package/runtime/src/typedarray.c +8 -3
  387. package/runtime/src/tznames.gen.h +2 -1
  388. package/runtime/src/uri.c +1 -1
  389. package/runtime/src/url.c +42 -39
  390. package/runtime/src/weak.c +15 -12
  391. package/runtime/src/web.c +21 -3
  392. package/runtime/src/wrapper.c +0 -0
  393. package/runtime/src/writable.c +7 -6
  394. package/runtime/third_party/ada-idna/LICENSE-MIT +0 -0
  395. package/runtime/third_party/ada-idna/README.md +7 -7
  396. package/runtime/third_party/ada-idna/convert.mjs +89 -27
  397. package/runtime/third_party/ada-idna/idna.c +30 -31
  398. package/runtime/third_party/ada-idna/idna.h +0 -0
  399. package/runtime/third_party/ada-idna/idna_tables.h +2272 -1952
  400. package/runtime/third_party/boringssl/third_party/fiat/LICENSE +15 -0
  401. package/runtime/third_party/mozilla-ca/LICENSE +373 -0
  402. package/runtime/third_party/mozilla-ca/README.md +9 -0
  403. package/runtime/third_party/nodejs/LICENSE +47 -0
  404. package/runtime/third_party/nodejs/README.md +7 -0
  405. package/runtime/third_party/quickjs-dtoa/LICENSE +0 -0
  406. package/runtime/third_party/quickjs-dtoa/README.md +1 -1
  407. package/runtime/third_party/quickjs-dtoa/dtoa.c +0 -0
  408. package/runtime/third_party/quickjs-dtoa/dtoa.h +0 -0
  409. package/runtime/third_party/quickjs-dtoa/dtoa_compat.h +0 -0
  410. package/runtime/third_party/quickjs-regexp/LICENSE +0 -0
  411. package/runtime/third_party/quickjs-regexp/README.md +2 -2
  412. package/runtime/third_party/quickjs-regexp/cutils.c +0 -0
  413. package/runtime/third_party/quickjs-regexp/cutils.h +0 -0
  414. package/runtime/third_party/quickjs-regexp/libregexp-opcode.h +0 -0
  415. package/runtime/third_party/quickjs-regexp/libregexp.c +0 -0
  416. package/runtime/third_party/quickjs-regexp/libregexp.h +0 -0
  417. package/runtime/third_party/quickjs-regexp/libunicode-table.h +0 -0
  418. package/runtime/third_party/quickjs-regexp/libunicode.c +0 -0
  419. package/runtime/third_party/quickjs-regexp/libunicode.h +0 -0
  420. package/runtime/third_party/unicode/LICENSE +39 -0
  421. package/runtime/third_party/unicode/README.md +9 -0
  422. package/runtime/third_party/v8-ieee754/LICENSE +0 -0
  423. package/runtime/third_party/v8-ieee754/LICENSE.fdlibm +10 -0
  424. package/runtime/third_party/v8-ieee754/README.md +3 -2
  425. package/runtime/third_party/v8-ieee754/convert.py +0 -0
  426. package/runtime/third_party/v8-ieee754/ieee754.c +0 -0
  427. package/runtime/third_party/v8-ieee754/ieee754.h +0 -0
  428. package/runtime/tools/regexp_compile.c +2 -2
@@ -0,0 +1,48 @@
1
+ import * as __internal_validators from "./validators.js";
2
+ import * as __internal_errors from "./errors.js";
3
+
4
+ const { validateInteger } = __internal_validators;
5
+
6
+ const { ERR_INVALID_ARG_VALUE } = __internal_errors.codes;
7
+
8
+ // TODO (fix): For some reason Windows CI fails with bigger hwm.
9
+ let defaultHighWaterMarkBytes = process.platform === 'win32' ? 16 * 1024 : 64 * 1024;
10
+ let defaultHighWaterMarkObjectMode = 16;
11
+
12
+ function highWaterMarkFrom(options, isDuplex, duplexKey) {
13
+ return options.highWaterMark != null ? options.highWaterMark :
14
+ isDuplex ? options[duplexKey] : null;
15
+ }
16
+
17
+ function getDefaultHighWaterMark(objectMode) {
18
+ return objectMode ? defaultHighWaterMarkObjectMode : defaultHighWaterMarkBytes;
19
+ }
20
+
21
+ function setDefaultHighWaterMark(objectMode, value) {
22
+ validateInteger(value, 'value', 0);
23
+ if (objectMode) {
24
+ defaultHighWaterMarkObjectMode = value;
25
+ } else {
26
+ defaultHighWaterMarkBytes = value;
27
+ }
28
+ }
29
+
30
+ function getHighWaterMark(state, options, duplexKey, isDuplex) {
31
+ const hwm = highWaterMarkFrom(options, isDuplex, duplexKey);
32
+ if (hwm != null) {
33
+ if (!Number.isInteger(hwm) || hwm < 0) {
34
+ const name = isDuplex ? `options.${duplexKey}` : 'options.highWaterMark';
35
+ throw new ERR_INVALID_ARG_VALUE(name, hwm);
36
+ }
37
+ return Math.floor(hwm);
38
+ }
39
+
40
+ // Default value
41
+ return getDefaultHighWaterMark(state.objectMode);
42
+ }
43
+
44
+ export {
45
+ getHighWaterMark,
46
+ getDefaultHighWaterMark,
47
+ setDefaultHighWaterMark,
48
+ };
@@ -0,0 +1,203 @@
1
+ import * as __internal_errors from "./errors.js";
2
+ import * as __internal_streams_duplex from "./duplex.js";
3
+ import * as __internal_streams_state from "./state.js";
4
+
5
+ // Copyright Joyent, Inc. and other Node contributors.
6
+ //
7
+ // Permission is hereby granted, free of charge, to any person obtaining a
8
+ // copy of this software and associated documentation files (the
9
+ // "Software"), to deal in the Software without restriction, including
10
+ // without limitation the rights to use, copy, modify, merge, publish,
11
+ // distribute, sublicense, and/or sell copies of the Software, and to permit
12
+ // persons to whom the Software is furnished to do so, subject to the
13
+ // following conditions:
14
+ //
15
+ // The above copyright notice and this permission notice shall be included
16
+ // in all copies or substantial portions of the Software.
17
+ //
18
+ // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
19
+ // OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
20
+ // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
21
+ // NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
22
+ // DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
23
+ // OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
24
+ // USE OR OTHER DEALINGS IN THE SOFTWARE.
25
+
26
+ // a transform stream is a readable/writable stream where you do
27
+ // something with the data. Sometimes it's called a "filter",
28
+ // but that's not a great name for it, since that implies a thing where
29
+ // some bits pass through, and others are simply ignored. (That would
30
+ // be a valid example of a transform, of course.)
31
+ //
32
+ // While the output is causally related to the input, it's not a
33
+ // necessarily symmetric or synchronous transformation. For example,
34
+ // a zlib stream might take multiple plain-text writes(), and then
35
+ // emit a single compressed chunk some time in the future.
36
+ //
37
+ // Here's how this works:
38
+ //
39
+ // The Transform stream has all the aspects of the readable and writable
40
+ // stream classes. When you write(chunk), that calls _write(chunk,cb)
41
+ // internally, and returns false if there's a lot of pending writes
42
+ // buffered up. When you call read(), that calls _read(n) until
43
+ // there's enough pending readable data buffered up.
44
+ //
45
+ // In a transform stream, the written data is placed in a buffer. When
46
+ // _read(n) is called, it transforms the queued up data, calling the
47
+ // buffered _write cb's as it consumes chunks. If consuming a single
48
+ // written chunk would result in multiple output chunks, then the first
49
+ // outputted bit calls the readcb, and subsequent chunks just go into
50
+ // the read buffer, and will cause it to emit 'readable' if necessary.
51
+ //
52
+ // This way, back-pressure is actually determined by the reading side,
53
+ // since _read has to be called to start processing a new chunk. However,
54
+ // a pathological inflate type of transform can cause excessive buffering
55
+ // here. For example, imagine a stream where every byte of input is
56
+ // interpreted as an integer from 0-255, and then results in that many
57
+ // bytes of output. Writing the 4 bytes {ff,ff,ff,ff} would result in
58
+ // 1kb of data being output. In this case, you could write a very small
59
+ // amount of input, and end up with a very large amount of output. In
60
+ // such a pathological inflating mechanism, there'd be no way to tell
61
+ // the system to stop doing the transform. A single 4MB write could
62
+ // cause the system to run out of memory.
63
+ //
64
+ // However, even in such a pathological case, only a single written chunk
65
+ // would be consumed, and then the rest would wait (un-transformed) until
66
+ // the results of the previous transformed chunk were consumed.
67
+
68
+ 'use strict';
69
+
70
+ export { Transform, Transform as default };
71
+ const {
72
+ ERR_METHOD_NOT_IMPLEMENTED,
73
+ } = __internal_errors.codes;
74
+ const Duplex = __internal_streams_duplex.default;
75
+ const { getHighWaterMark } = __internal_streams_state;
76
+ Object.setPrototypeOf(Transform.prototype, Duplex.prototype);
77
+ Object.setPrototypeOf(Transform, Duplex);
78
+
79
+ const kCallback = Symbol('kCallback');
80
+
81
+ function Transform(options) {
82
+ if (!(this instanceof Transform))
83
+ return new Transform(options);
84
+
85
+ // TODO (ronag): This should preferably always be
86
+ // applied but would be semver-major. Or even better;
87
+ // make Transform a Readable with the Writable interface.
88
+ const readableHighWaterMark = options ? getHighWaterMark(this, options, 'readableHighWaterMark', true) : null;
89
+ if (readableHighWaterMark === 0) {
90
+ // A Duplex will buffer both on the writable and readable side while
91
+ // a Transform just wants to buffer hwm number of elements. To avoid
92
+ // buffering twice we disable buffering on the writable side.
93
+ options = {
94
+ ...options,
95
+ highWaterMark: null,
96
+ readableHighWaterMark,
97
+ writableHighWaterMark: options.writableHighWaterMark || 0,
98
+ };
99
+ }
100
+
101
+ Duplex.call(this, options);
102
+
103
+ // We have implemented the _read method, and done the other things
104
+ // that Readable wants before the first _read call, so unset the
105
+ // sync guard flag.
106
+ this._readableState.sync = false;
107
+
108
+ this[kCallback] = null;
109
+
110
+ if (options) {
111
+ if (typeof options.transform === 'function')
112
+ this._transform = options.transform;
113
+
114
+ if (typeof options.flush === 'function')
115
+ this._flush = options.flush;
116
+ }
117
+
118
+ // When the writable side finishes, then flush out anything remaining.
119
+ // Backwards compat. Some Transform streams incorrectly implement _final
120
+ // instead of or in addition to _flush. By using 'prefinish' instead of
121
+ // implementing _final we continue supporting this unfortunate use case.
122
+ this.on('prefinish', prefinish);
123
+ }
124
+
125
+ function final(cb) {
126
+ if (typeof this._flush === 'function' && !this.destroyed) {
127
+ this._flush((er, data) => {
128
+ if (er) {
129
+ if (cb) {
130
+ cb(er);
131
+ } else {
132
+ this.destroy(er);
133
+ }
134
+ return;
135
+ }
136
+
137
+ if (data != null) {
138
+ this.push(data);
139
+ }
140
+ this.push(null);
141
+ if (cb) {
142
+ cb();
143
+ }
144
+ });
145
+ } else {
146
+ this.push(null);
147
+ if (cb) {
148
+ cb();
149
+ }
150
+ }
151
+ }
152
+
153
+ function prefinish() {
154
+ if (this._final !== final) {
155
+ final.call(this);
156
+ }
157
+ }
158
+
159
+ Transform.prototype._final = final;
160
+
161
+ Transform.prototype._transform = function(chunk, encoding, callback) {
162
+ throw new ERR_METHOD_NOT_IMPLEMENTED('_transform()');
163
+ };
164
+
165
+ Transform.prototype._write = function(chunk, encoding, callback) {
166
+ const rState = this._readableState;
167
+ const wState = this._writableState;
168
+ const length = rState.length;
169
+
170
+ this._transform(chunk, encoding, (err, val) => {
171
+ if (err) {
172
+ callback(err);
173
+ return;
174
+ }
175
+
176
+ if (val != null) {
177
+ this.push(val);
178
+ }
179
+
180
+ if (rState.ended) {
181
+ // If user has called this.push(null) we have to
182
+ // delay the callback to properly propagate the new
183
+ // state.
184
+ process.nextTick(callback);
185
+ } else if (
186
+ wState.ended || // Backwards compat.
187
+ length === rState.length || // Backwards compat.
188
+ rState.length < rState.highWaterMark
189
+ ) {
190
+ callback();
191
+ } else {
192
+ this[kCallback] = callback;
193
+ }
194
+ });
195
+ };
196
+
197
+ Transform.prototype._read = function() {
198
+ if (this[kCallback]) {
199
+ const callback = this[kCallback];
200
+ this[kCallback] = null;
201
+ callback();
202
+ }
203
+ };
@@ -0,0 +1,355 @@
1
+
2
+
3
+ // We need to use Symbol.for to make these globally available
4
+ // for interoperability with readable-stream, i.e. readable-stream
5
+ // and node core needs to be able to read/write private state
6
+ // from each other for proper interoperability.
7
+ const kIsDestroyed = Symbol.for('nodejs.stream.destroyed');
8
+ const kIsErrored = Symbol.for('nodejs.stream.errored');
9
+ const kIsReadable = Symbol.for('nodejs.stream.readable');
10
+ const kIsWritable = Symbol.for('nodejs.stream.writable');
11
+ const kIsDisturbed = Symbol.for('nodejs.stream.disturbed');
12
+
13
+ const kOnConstructed = Symbol('kOnConstructed');
14
+
15
+ const kIsClosedPromise = Symbol.for('nodejs.webstream.isClosedPromise');
16
+ const kControllerErrorFunction = Symbol.for('nodejs.webstream.controllerErrorFunction');
17
+
18
+ const kState = Symbol('kState');
19
+ const kObjectMode = 1 << 0;
20
+ const kErrorEmitted = 1 << 1;
21
+ const kAutoDestroy = 1 << 2;
22
+ const kEmitClose = 1 << 3;
23
+ const kDestroyed = 1 << 4;
24
+ const kClosed = 1 << 5;
25
+ const kCloseEmitted = 1 << 6;
26
+ const kErrored = 1 << 7;
27
+ const kConstructed = 1 << 8;
28
+
29
+ function isReadableNodeStream(obj, strict = false) {
30
+ return !!(
31
+ obj &&
32
+ typeof obj.pipe === 'function' &&
33
+ typeof obj.on === 'function' &&
34
+ (
35
+ !strict ||
36
+ (typeof obj.pause === 'function' && typeof obj.resume === 'function')
37
+ ) &&
38
+ (!obj._writableState || obj._readableState?.readable !== false) && // Duplex
39
+ (!obj._writableState || obj._readableState) // Writable has .pipe.
40
+ );
41
+ }
42
+
43
+ function isWritableNodeStream(obj) {
44
+ return !!(
45
+ obj &&
46
+ typeof obj.write === 'function' &&
47
+ typeof obj.on === 'function' &&
48
+ (!obj._readableState || obj._writableState?.writable !== false) // Duplex
49
+ );
50
+ }
51
+
52
+ function isDuplexNodeStream(obj) {
53
+ return !!(
54
+ obj &&
55
+ (typeof obj.pipe === 'function' && obj._readableState) &&
56
+ typeof obj.on === 'function' &&
57
+ typeof obj.write === 'function'
58
+ );
59
+ }
60
+
61
+ function isNodeStream(obj) {
62
+ return (
63
+ obj &&
64
+ (
65
+ obj._readableState ||
66
+ obj._writableState ||
67
+ (typeof obj.write === 'function' && typeof obj.on === 'function') ||
68
+ (typeof obj.pipe === 'function' && typeof obj.on === 'function')
69
+ )
70
+ );
71
+ }
72
+
73
+ function isReadableStream(obj) {
74
+ return !!(
75
+ obj &&
76
+ !isNodeStream(obj) &&
77
+ typeof obj.pipeThrough === 'function' &&
78
+ typeof obj.getReader === 'function' &&
79
+ typeof obj.cancel === 'function'
80
+ );
81
+ }
82
+
83
+ function isWritableStream(obj) {
84
+ return !!(
85
+ obj &&
86
+ !isNodeStream(obj) &&
87
+ typeof obj.getWriter === 'function' &&
88
+ typeof obj.abort === 'function'
89
+ );
90
+ }
91
+
92
+ function isTransformStream(obj) {
93
+ return !!(
94
+ obj &&
95
+ !isNodeStream(obj) &&
96
+ typeof obj.readable === 'object' &&
97
+ typeof obj.writable === 'object'
98
+ );
99
+ }
100
+
101
+ function isWebStream(obj) {
102
+ return isReadableStream(obj) || isWritableStream(obj) || isTransformStream(obj);
103
+ }
104
+
105
+ function isIterable(obj, isAsync) {
106
+ if (obj == null) return false;
107
+ if (isAsync === true) return typeof obj[Symbol.asyncIterator] === 'function';
108
+ if (isAsync === false) return typeof obj[Symbol.iterator] === 'function';
109
+ return typeof obj[Symbol.asyncIterator] === 'function' ||
110
+ typeof obj[Symbol.iterator] === 'function';
111
+ }
112
+
113
+ function isDestroyed(stream) {
114
+ if (!isNodeStream(stream)) return null;
115
+ const wState = stream._writableState;
116
+ const rState = stream._readableState;
117
+ const state = wState || rState;
118
+ return !!(stream.destroyed || stream[kIsDestroyed] || state?.destroyed);
119
+ }
120
+
121
+ // Have been end():d.
122
+ function isWritableEnded(stream) {
123
+ if (!isWritableNodeStream(stream)) return null;
124
+ if (stream.writableEnded === true) return true;
125
+ const wState = stream._writableState;
126
+ if (wState?.errored) return false;
127
+ if (typeof wState?.ended !== 'boolean') return null;
128
+ return wState.ended;
129
+ }
130
+
131
+ // Have emitted 'finish'.
132
+ function isWritableFinished(stream, strict) {
133
+ if (!isWritableNodeStream(stream)) return null;
134
+ if (stream.writableFinished === true) return true;
135
+ const wState = stream._writableState;
136
+ if (wState?.errored) return false;
137
+ if (typeof wState?.finished !== 'boolean') return null;
138
+ return !!(
139
+ wState.finished ||
140
+ (strict === false && wState.ended === true && wState.length === 0)
141
+ );
142
+ }
143
+
144
+ // Have been push(null):d.
145
+ function isReadableEnded(stream) {
146
+ if (!isReadableNodeStream(stream)) return null;
147
+ if (stream.readableEnded === true) return true;
148
+ const rState = stream._readableState;
149
+ if (!rState || rState.errored) return false;
150
+ if (typeof rState?.ended !== 'boolean') return null;
151
+ return rState.ended;
152
+ }
153
+
154
+ // Have emitted 'end'.
155
+ function isReadableFinished(stream, strict) {
156
+ if (!isReadableNodeStream(stream)) return null;
157
+ const rState = stream._readableState;
158
+ if (rState?.errored) return false;
159
+ if (typeof rState?.endEmitted !== 'boolean') return null;
160
+ return !!(
161
+ rState.endEmitted ||
162
+ (strict === false && rState.ended === true && rState.length === 0)
163
+ );
164
+ }
165
+
166
+ function isReadable(stream) {
167
+ if (stream && stream[kIsReadable] != null) return stream[kIsReadable];
168
+ if (typeof stream?.readable !== 'boolean') return null;
169
+ if (isDestroyed(stream)) return false;
170
+ return isReadableNodeStream(stream) &&
171
+ stream.readable &&
172
+ !isReadableFinished(stream);
173
+ }
174
+
175
+ function isWritable(stream) {
176
+ if (stream && stream[kIsWritable] != null) return stream[kIsWritable];
177
+ if (typeof stream?.writable !== 'boolean') return null;
178
+ if (isDestroyed(stream)) return false;
179
+ return isWritableNodeStream(stream) &&
180
+ stream.writable &&
181
+ !isWritableEnded(stream);
182
+ }
183
+
184
+ function isFinished(stream, opts) {
185
+ if (!isNodeStream(stream)) {
186
+ return null;
187
+ }
188
+
189
+ if (isDestroyed(stream)) {
190
+ return true;
191
+ }
192
+
193
+ if (opts?.readable !== false && isReadable(stream)) {
194
+ return false;
195
+ }
196
+
197
+ if (opts?.writable !== false && isWritable(stream)) {
198
+ return false;
199
+ }
200
+
201
+ return true;
202
+ }
203
+
204
+ function isWritableErrored(stream) {
205
+ if (!isNodeStream(stream)) {
206
+ return null;
207
+ }
208
+
209
+ if (stream.writableErrored) {
210
+ return stream.writableErrored;
211
+ }
212
+
213
+ return stream._writableState?.errored ?? null;
214
+ }
215
+
216
+ function isReadableErrored(stream) {
217
+ if (!isNodeStream(stream)) {
218
+ return null;
219
+ }
220
+
221
+ if (stream.readableErrored) {
222
+ return stream.readableErrored;
223
+ }
224
+
225
+ return stream._readableState?.errored ?? null;
226
+ }
227
+
228
+ function isClosed(stream) {
229
+ if (!isNodeStream(stream)) {
230
+ return null;
231
+ }
232
+
233
+ if (typeof stream.closed === 'boolean') {
234
+ return stream.closed;
235
+ }
236
+
237
+ const wState = stream._writableState;
238
+ const rState = stream._readableState;
239
+
240
+ if (
241
+ typeof wState?.closed === 'boolean' ||
242
+ typeof rState?.closed === 'boolean'
243
+ ) {
244
+ return wState?.closed || rState?.closed;
245
+ }
246
+
247
+ if (typeof stream._closed === 'boolean' && isOutgoingMessage(stream)) {
248
+ return stream._closed;
249
+ }
250
+
251
+ return null;
252
+ }
253
+
254
+ function isOutgoingMessage(stream) {
255
+ return (
256
+ typeof stream._closed === 'boolean' &&
257
+ typeof stream._defaultKeepAlive === 'boolean' &&
258
+ typeof stream._removedConnection === 'boolean' &&
259
+ typeof stream._removedContLen === 'boolean'
260
+ );
261
+ }
262
+
263
+ function isServerResponse(stream) {
264
+ return (
265
+ typeof stream._sent100 === 'boolean' &&
266
+ isOutgoingMessage(stream)
267
+ );
268
+ }
269
+
270
+ function isServerRequest(stream) {
271
+ return (
272
+ typeof stream._consuming === 'boolean' &&
273
+ typeof stream._dumped === 'boolean' &&
274
+ stream.req?.upgradeOrConnect === undefined
275
+ );
276
+ }
277
+
278
+ function willEmitClose(stream) {
279
+ if (!isNodeStream(stream)) return null;
280
+
281
+ const wState = stream._writableState;
282
+ const rState = stream._readableState;
283
+ const state = wState || rState;
284
+
285
+ return (!state && isServerResponse(stream)) || !!(
286
+ state?.autoDestroy &&
287
+ state.emitClose &&
288
+ state.closed === false
289
+ );
290
+ }
291
+
292
+ function isDisturbed(stream) {
293
+ return !!(stream && (
294
+ stream[kIsDisturbed] ??
295
+ (stream.readableDidRead || stream.readableAborted)
296
+ ));
297
+ }
298
+
299
+ function isErrored(stream) {
300
+ return !!(stream && (
301
+ stream[kIsErrored] ??
302
+ stream.readableErrored ??
303
+ stream.writableErrored ??
304
+ stream._readableState?.errorEmitted ??
305
+ stream._writableState?.errorEmitted ??
306
+ stream._readableState?.errored ??
307
+ stream._writableState?.errored
308
+ ));
309
+ }
310
+
311
+ export {
312
+ kOnConstructed,
313
+ isDestroyed,
314
+ kIsDestroyed,
315
+ isDisturbed,
316
+ kIsDisturbed,
317
+ isErrored,
318
+ kIsErrored,
319
+ isReadable,
320
+ kIsReadable,
321
+ kIsClosedPromise,
322
+ kControllerErrorFunction,
323
+ kIsWritable,
324
+ isClosed,
325
+ isDuplexNodeStream,
326
+ isFinished,
327
+ isIterable,
328
+ isReadableNodeStream,
329
+ isReadableStream,
330
+ isReadableEnded,
331
+ isReadableFinished,
332
+ isReadableErrored,
333
+ isNodeStream,
334
+ isWebStream,
335
+ isWritable,
336
+ isWritableNodeStream,
337
+ isWritableStream,
338
+ isWritableEnded,
339
+ isWritableFinished,
340
+ isWritableErrored,
341
+ isServerRequest,
342
+ isServerResponse,
343
+ willEmitClose,
344
+ isTransformStream,
345
+ kState,
346
+ kObjectMode,
347
+ kErrorEmitted,
348
+ kAutoDestroy,
349
+ kEmitClose,
350
+ kDestroyed,
351
+ kClosed,
352
+ kCloseEmitted,
353
+ kErrored,
354
+ kConstructed,
355
+ };