typenative 0.6.2 → 0.7.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 (1002) hide show
  1. package/CHANGELOG.md +388 -0
  2. package/README.md +1 -1
  3. package/bin/cli.js +18 -8
  4. package/bin/go/overrides.js +21 -1
  5. package/bin/index.js +48 -25
  6. package/bin/main.js +2 -1
  7. package/bin/node/assert.js +54 -15
  8. package/bin/node/async_hooks.js +69 -10
  9. package/bin/node/buffer.js +321 -7
  10. package/bin/node/child_process.js +154 -8
  11. package/bin/node/cluster.js +436 -32
  12. package/bin/node/crypto.js +814 -5
  13. package/bin/node/crypto_curves.js +142 -0
  14. package/bin/node/crypto_keys.js +1147 -48
  15. package/bin/node/crypto_pem.js +313 -0
  16. package/bin/node/crypto_pkcs12.js +17 -0
  17. package/bin/node/dgram.js +161 -10
  18. package/bin/node/diagnostics_channel.js +5 -1
  19. package/bin/node/events.js +358 -8
  20. package/bin/node/ffi.js +933 -0
  21. package/bin/node/fs.js +334 -6
  22. package/bin/node/http.js +630 -55
  23. package/bin/node/http2.js +1141 -88
  24. package/bin/node/intl.js +4576 -0
  25. package/bin/node/intl_data.js +65412 -0
  26. package/bin/node/module_v8.js +155 -16
  27. package/bin/node/net.js +59 -10
  28. package/bin/node/path.js +5 -1
  29. package/bin/node/process.js +342 -3
  30. package/bin/node/readline.js +558 -8
  31. package/bin/node/registry.js +2 -0
  32. package/bin/node/sqlite.js +51 -2
  33. package/bin/node/stream.js +370 -32
  34. package/bin/node/stream_web.js +422 -15
  35. package/bin/node/system_extra.js +154 -1
  36. package/bin/node/temporal.js +96 -0
  37. package/bin/node/temporal_runtime.js +5075 -0
  38. package/bin/node/temporal_zones.js +460 -0
  39. package/bin/node/test.js +153 -8
  40. package/bin/node/test_coverage.js +58 -0
  41. package/bin/node/test_report.js +3 -3
  42. package/bin/node/test_run.js +7 -1
  43. package/bin/node/timers.js +123 -0
  44. package/bin/node/tls.js +346 -12
  45. package/bin/node/tls_roots.js +122 -0
  46. package/bin/node/typed_arrays.js +867 -93
  47. package/bin/node/url.js +657 -0
  48. package/bin/node/util.js +441 -2
  49. package/bin/node/util_extra.js +6 -0
  50. package/bin/node/wasi.js +214 -0
  51. package/bin/node/webassembly.js +1122 -0
  52. package/bin/node/websocket.js +763 -0
  53. package/bin/node/worker_threads.js +434 -52
  54. package/bin/node/zlib.js +338 -9
  55. package/bin/node/zlib_zip.js +2392 -0
  56. package/bin/transpiler.js +2057 -253
  57. package/bin/typecheck-node.js +49 -17
  58. package/bin/version.js +1 -1
  59. package/conformance.md +160 -113
  60. package/examples/README.md +21 -20
  61. package/examples/angular-templates/README.md +12 -12
  62. package/examples/desktop-notes/README.md +7 -7
  63. package/examples/dupe-finder/README.md +4 -4
  64. package/examples/fibonacci/README.md +6 -6
  65. package/examples/hello-world/README.md +4 -4
  66. package/examples/json-server/README.md +13 -12
  67. package/examples/mandelbrot-png/README.md +4 -4
  68. package/examples/marked-cli/README.md +16 -17
  69. package/examples/openai-chat/README.md +5 -5
  70. package/examples/react-compiler/README.md +10 -10
  71. package/examples/todo-cli/README.md +8 -8
  72. package/examples/yaml-cli/README.md +10 -10
  73. package/govendor/github.com/cloudflare/circl/.golangci.yaml +64 -0
  74. package/govendor/github.com/cloudflare/circl/.semgrepignore +1 -0
  75. package/govendor/github.com/cloudflare/circl/AGENTS.md +91 -0
  76. package/govendor/github.com/cloudflare/circl/CITATION.cff +30 -0
  77. package/govendor/github.com/cloudflare/circl/LICENSE +57 -0
  78. package/govendor/github.com/cloudflare/circl/Makefile +70 -0
  79. package/govendor/github.com/cloudflare/circl/README.md +206 -0
  80. package/govendor/github.com/cloudflare/circl/REVIEW.md +83 -0
  81. package/govendor/github.com/cloudflare/circl/codecov.yml +21 -0
  82. package/govendor/github.com/cloudflare/circl/dh/x448/curve.go +104 -0
  83. package/govendor/github.com/cloudflare/circl/dh/x448/curve_amd64.go +30 -0
  84. package/govendor/github.com/cloudflare/circl/dh/x448/curve_amd64.h +111 -0
  85. package/govendor/github.com/cloudflare/circl/dh/x448/curve_amd64.s +194 -0
  86. package/govendor/github.com/cloudflare/circl/dh/x448/curve_generic.go +100 -0
  87. package/govendor/github.com/cloudflare/circl/dh/x448/curve_noasm.go +11 -0
  88. package/govendor/github.com/cloudflare/circl/dh/x448/doc.go +19 -0
  89. package/govendor/github.com/cloudflare/circl/dh/x448/key.go +46 -0
  90. package/govendor/github.com/cloudflare/circl/dh/x448/table.go +460 -0
  91. package/govendor/github.com/cloudflare/circl/doc.go +8 -0
  92. package/govendor/github.com/cloudflare/circl/ecc/goldilocks/constants.go +71 -0
  93. package/govendor/github.com/cloudflare/circl/ecc/goldilocks/curve.go +90 -0
  94. package/govendor/github.com/cloudflare/circl/ecc/goldilocks/isogeny.go +52 -0
  95. package/govendor/github.com/cloudflare/circl/ecc/goldilocks/point.go +181 -0
  96. package/govendor/github.com/cloudflare/circl/ecc/goldilocks/scalar.go +203 -0
  97. package/govendor/github.com/cloudflare/circl/ecc/goldilocks/twist.go +138 -0
  98. package/govendor/github.com/cloudflare/circl/ecc/goldilocks/twistPoint.go +135 -0
  99. package/govendor/github.com/cloudflare/circl/ecc/goldilocks/twistTables.go +216 -0
  100. package/govendor/github.com/cloudflare/circl/ecc/goldilocks/twist_basemult.go +62 -0
  101. package/govendor/github.com/cloudflare/circl/go.mod +3 -0
  102. package/govendor/github.com/cloudflare/circl/internal/conv/conv.go +173 -0
  103. package/govendor/github.com/cloudflare/circl/internal/sha3/doc.go +62 -0
  104. package/govendor/github.com/cloudflare/circl/internal/sha3/hashes.go +69 -0
  105. package/govendor/github.com/cloudflare/circl/internal/sha3/keccakf.go +391 -0
  106. package/govendor/github.com/cloudflare/circl/internal/sha3/rc.go +29 -0
  107. package/govendor/github.com/cloudflare/circl/internal/sha3/sha3.go +200 -0
  108. package/govendor/github.com/cloudflare/circl/internal/sha3/sha3_s390x.s +33 -0
  109. package/govendor/github.com/cloudflare/circl/internal/sha3/shake.go +119 -0
  110. package/govendor/github.com/cloudflare/circl/internal/sha3/xor.go +15 -0
  111. package/govendor/github.com/cloudflare/circl/internal/sha3/xor_generic.go +33 -0
  112. package/govendor/github.com/cloudflare/circl/internal/sha3/xor_unaligned.go +61 -0
  113. package/govendor/github.com/cloudflare/circl/math/fp448/fp.go +164 -0
  114. package/govendor/github.com/cloudflare/circl/math/fp448/fp_amd64.go +43 -0
  115. package/govendor/github.com/cloudflare/circl/math/fp448/fp_amd64.h +591 -0
  116. package/govendor/github.com/cloudflare/circl/math/fp448/fp_amd64.s +75 -0
  117. package/govendor/github.com/cloudflare/circl/math/fp448/fp_generic.go +339 -0
  118. package/govendor/github.com/cloudflare/circl/math/fp448/fp_noasm.go +12 -0
  119. package/govendor/github.com/cloudflare/circl/math/fp448/fuzzer.go +75 -0
  120. package/govendor/github.com/cloudflare/circl/math/integer.go +16 -0
  121. package/govendor/github.com/cloudflare/circl/math/mlsbset/mlsbset.go +145 -0
  122. package/govendor/github.com/cloudflare/circl/math/mlsbset/power.go +64 -0
  123. package/govendor/github.com/cloudflare/circl/math/primes.go +34 -0
  124. package/govendor/github.com/cloudflare/circl/math/wnaf.go +84 -0
  125. package/govendor/github.com/cloudflare/circl/sign/ed448/ed448.go +417 -0
  126. package/govendor/github.com/cloudflare/circl/sign/ed448/signapi.go +89 -0
  127. package/govendor/github.com/cloudflare/circl/sign/sign.go +119 -0
  128. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/LICENSE +17 -0
  129. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/README.md +72 -0
  130. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/compressedbytepoints.go +18 -0
  131. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/curve.go +1310 -0
  132. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/curve_embedded.go +14 -0
  133. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/curve_precompute.go +14 -0
  134. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/doc.go +59 -0
  135. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/ecdh.go +21 -0
  136. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa/README.md +52 -0
  137. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa/doc.go +42 -0
  138. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa/error.go +134 -0
  139. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/ecdsa/signature.go +1001 -0
  140. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/ellipticadaptor.go +296 -0
  141. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/error.go +67 -0
  142. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/field.go +1696 -0
  143. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/go.mod +3 -0
  144. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/loadprecomputed.go +91 -0
  145. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/modnscalar.go +1105 -0
  146. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/nonce.go +263 -0
  147. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/privkey.go +111 -0
  148. package/govendor/github.com/decred/dcrd/dcrec/secp256k1/v4/pubkey.go +236 -0
  149. package/govendor/github.com/ebitengine/purego/LICENSE +201 -0
  150. package/govendor/github.com/ebitengine/purego/README.md +124 -0
  151. package/govendor/github.com/ebitengine/purego/abi_amd64.h +99 -0
  152. package/govendor/github.com/ebitengine/purego/abi_arm64.h +39 -0
  153. package/govendor/github.com/ebitengine/purego/abi_loong64.h +60 -0
  154. package/govendor/github.com/ebitengine/purego/cdecl.go +11 -0
  155. package/govendor/github.com/ebitengine/purego/cgo.go +19 -0
  156. package/govendor/github.com/ebitengine/purego/dlerror.go +17 -0
  157. package/govendor/github.com/ebitengine/purego/dlfcn.go +99 -0
  158. package/govendor/github.com/ebitengine/purego/dlfcn_android.go +34 -0
  159. package/govendor/github.com/ebitengine/purego/dlfcn_darwin.go +20 -0
  160. package/govendor/github.com/ebitengine/purego/dlfcn_freebsd.go +14 -0
  161. package/govendor/github.com/ebitengine/purego/dlfcn_linux.go +16 -0
  162. package/govendor/github.com/ebitengine/purego/dlfcn_netbsd.go +15 -0
  163. package/govendor/github.com/ebitengine/purego/dlfcn_nocgo_freebsd.go +11 -0
  164. package/govendor/github.com/ebitengine/purego/dlfcn_nocgo_linux.go +19 -0
  165. package/govendor/github.com/ebitengine/purego/dlfcn_nocgo_netbsd.go +11 -0
  166. package/govendor/github.com/ebitengine/purego/dlfcn_playground.go +24 -0
  167. package/govendor/github.com/ebitengine/purego/dlfcn_stubs.s +22 -0
  168. package/govendor/github.com/ebitengine/purego/func.go +780 -0
  169. package/govendor/github.com/ebitengine/purego/gen.go +6 -0
  170. package/govendor/github.com/ebitengine/purego/go.mod +3 -0
  171. package/govendor/github.com/ebitengine/purego/go_runtime.go +19 -0
  172. package/govendor/github.com/ebitengine/purego/internal/cgo/dlfcn_cgo_unix.go +56 -0
  173. package/govendor/github.com/ebitengine/purego/internal/cgo/empty.go +6 -0
  174. package/govendor/github.com/ebitengine/purego/internal/cgo/syscall_cgo_unix.go +49 -0
  175. package/govendor/github.com/ebitengine/purego/internal/fakecgo/abi_amd64.h +99 -0
  176. package/govendor/github.com/ebitengine/purego/internal/fakecgo/abi_arm64.h +39 -0
  177. package/govendor/github.com/ebitengine/purego/internal/fakecgo/abi_loong64.h +60 -0
  178. package/govendor/github.com/ebitengine/purego/internal/fakecgo/abi_ppc64x.h +195 -0
  179. package/govendor/github.com/ebitengine/purego/internal/fakecgo/abi_riscv64.h +72 -0
  180. package/govendor/github.com/ebitengine/purego/internal/fakecgo/asm_386.s +29 -0
  181. package/govendor/github.com/ebitengine/purego/internal/fakecgo/asm_amd64.s +39 -0
  182. package/govendor/github.com/ebitengine/purego/internal/fakecgo/asm_arm.s +58 -0
  183. package/govendor/github.com/ebitengine/purego/internal/fakecgo/asm_arm64.s +35 -0
  184. package/govendor/github.com/ebitengine/purego/internal/fakecgo/asm_loong64.s +38 -0
  185. package/govendor/github.com/ebitengine/purego/internal/fakecgo/asm_ppc64le.s +79 -0
  186. package/govendor/github.com/ebitengine/purego/internal/fakecgo/asm_riscv64.s +36 -0
  187. package/govendor/github.com/ebitengine/purego/internal/fakecgo/asm_s390x.s +52 -0
  188. package/govendor/github.com/ebitengine/purego/internal/fakecgo/callbacks.go +93 -0
  189. package/govendor/github.com/ebitengine/purego/internal/fakecgo/doc.go +32 -0
  190. package/govendor/github.com/ebitengine/purego/internal/fakecgo/fakecgo.go +14 -0
  191. package/govendor/github.com/ebitengine/purego/internal/fakecgo/freebsd.go +27 -0
  192. package/govendor/github.com/ebitengine/purego/internal/fakecgo/go_darwin.go +86 -0
  193. package/govendor/github.com/ebitengine/purego/internal/fakecgo/go_freebsd.go +77 -0
  194. package/govendor/github.com/ebitengine/purego/internal/fakecgo/go_libinit.go +72 -0
  195. package/govendor/github.com/ebitengine/purego/internal/fakecgo/go_linux.go +77 -0
  196. package/govendor/github.com/ebitengine/purego/internal/fakecgo/go_netbsd.go +83 -0
  197. package/govendor/github.com/ebitengine/purego/internal/fakecgo/go_setenv.go +18 -0
  198. package/govendor/github.com/ebitengine/purego/internal/fakecgo/go_util.go +38 -0
  199. package/govendor/github.com/ebitengine/purego/internal/fakecgo/iscgo.go +19 -0
  200. package/govendor/github.com/ebitengine/purego/internal/fakecgo/libcgo.go +37 -0
  201. package/govendor/github.com/ebitengine/purego/internal/fakecgo/libcgo_darwin.go +37 -0
  202. package/govendor/github.com/ebitengine/purego/internal/fakecgo/libcgo_freebsd.go +27 -0
  203. package/govendor/github.com/ebitengine/purego/internal/fakecgo/libcgo_linux.go +27 -0
  204. package/govendor/github.com/ebitengine/purego/internal/fakecgo/libcgo_netbsd.go +36 -0
  205. package/govendor/github.com/ebitengine/purego/internal/fakecgo/linux.go +189 -0
  206. package/govendor/github.com/ebitengine/purego/internal/fakecgo/netbsd.go +23 -0
  207. package/govendor/github.com/ebitengine/purego/internal/fakecgo/setenv.go +19 -0
  208. package/govendor/github.com/ebitengine/purego/internal/fakecgo/threadentry_amd64.go +15 -0
  209. package/govendor/github.com/ebitengine/purego/internal/fakecgo/threadentry_noasm.go +24 -0
  210. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_386.s +130 -0
  211. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_amd64.s +124 -0
  212. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_arm.s +131 -0
  213. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_arm64.s +81 -0
  214. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_linux_386.s +78 -0
  215. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_linux_amd64.s +69 -0
  216. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_linux_arm.s +69 -0
  217. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_linux_arm64.s +60 -0
  218. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_linux_loong64.s +60 -0
  219. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_linux_ppc64le.s +69 -0
  220. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_linux_riscv64.s +60 -0
  221. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_linux_s390x.s +51 -0
  222. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_loong64.s +78 -0
  223. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_ppc64le.s +132 -0
  224. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_riscv64.s +76 -0
  225. package/govendor/github.com/ebitengine/purego/internal/fakecgo/trampolines_s390x.s +158 -0
  226. package/govendor/github.com/ebitengine/purego/internal/fakecgo/zsymbols.go +165 -0
  227. package/govendor/github.com/ebitengine/purego/internal/fakecgo/zsymbols_darwin.go +59 -0
  228. package/govendor/github.com/ebitengine/purego/internal/fakecgo/zsymbols_freebsd.go +48 -0
  229. package/govendor/github.com/ebitengine/purego/internal/fakecgo/zsymbols_linux.go +158 -0
  230. package/govendor/github.com/ebitengine/purego/internal/fakecgo/zsymbols_netbsd.go +59 -0
  231. package/govendor/github.com/ebitengine/purego/internal/fakecgo/ztrampolines_darwin.s +19 -0
  232. package/govendor/github.com/ebitengine/purego/internal/fakecgo/ztrampolines_freebsd.s +16 -0
  233. package/govendor/github.com/ebitengine/purego/internal/fakecgo/ztrampolines_linux.s +46 -0
  234. package/govendor/github.com/ebitengine/purego/internal/fakecgo/ztrampolines_netbsd.s +19 -0
  235. package/govendor/github.com/ebitengine/purego/internal/fakecgo/ztrampolines_stubs.s +55 -0
  236. package/govendor/github.com/ebitengine/purego/internal/strings/strings.go +40 -0
  237. package/govendor/github.com/ebitengine/purego/is_ios.go +13 -0
  238. package/govendor/github.com/ebitengine/purego/nocgo.go +25 -0
  239. package/govendor/github.com/ebitengine/purego/struct_amd64.go +518 -0
  240. package/govendor/github.com/ebitengine/purego/struct_arm.go +100 -0
  241. package/govendor/github.com/ebitengine/purego/struct_arm64.go +757 -0
  242. package/govendor/github.com/ebitengine/purego/struct_loong64.go +244 -0
  243. package/govendor/github.com/ebitengine/purego/struct_other.go +54 -0
  244. package/govendor/github.com/ebitengine/purego/struct_ppc64le.go +180 -0
  245. package/govendor/github.com/ebitengine/purego/struct_riscv64.go +158 -0
  246. package/govendor/github.com/ebitengine/purego/struct_s390x.go +158 -0
  247. package/govendor/github.com/ebitengine/purego/sys_386.s +153 -0
  248. package/govendor/github.com/ebitengine/purego/sys_amd64.s +206 -0
  249. package/govendor/github.com/ebitengine/purego/sys_arm.s +153 -0
  250. package/govendor/github.com/ebitengine/purego/sys_arm64.s +133 -0
  251. package/govendor/github.com/ebitengine/purego/sys_loong64.s +131 -0
  252. package/govendor/github.com/ebitengine/purego/sys_ppc64le.s +126 -0
  253. package/govendor/github.com/ebitengine/purego/sys_riscv64.s +135 -0
  254. package/govendor/github.com/ebitengine/purego/sys_s390x.s +148 -0
  255. package/govendor/github.com/ebitengine/purego/sys_unix_386.s +234 -0
  256. package/govendor/github.com/ebitengine/purego/sys_unix_arm.s +99 -0
  257. package/govendor/github.com/ebitengine/purego/sys_unix_arm64.s +75 -0
  258. package/govendor/github.com/ebitengine/purego/sys_unix_loong64.s +79 -0
  259. package/govendor/github.com/ebitengine/purego/sys_unix_ppc64le.s +114 -0
  260. package/govendor/github.com/ebitengine/purego/sys_unix_riscv64.s +79 -0
  261. package/govendor/github.com/ebitengine/purego/sys_unix_s390x.s +111 -0
  262. package/govendor/github.com/ebitengine/purego/syscall.go +95 -0
  263. package/govendor/github.com/ebitengine/purego/syscall_32bit.go +97 -0
  264. package/govendor/github.com/ebitengine/purego/syscall_cgo_linux.go +20 -0
  265. package/govendor/github.com/ebitengine/purego/syscall_notstackargs.go +55 -0
  266. package/govendor/github.com/ebitengine/purego/syscall_ppc64le.go +73 -0
  267. package/govendor/github.com/ebitengine/purego/syscall_stackargs_ppc64le.go +38 -0
  268. package/govendor/github.com/ebitengine/purego/syscall_stackargs_s390x.go +38 -0
  269. package/govendor/github.com/ebitengine/purego/syscall_unix.go +392 -0
  270. package/govendor/github.com/ebitengine/purego/syscall_windows.go +54 -0
  271. package/govendor/github.com/ebitengine/purego/zcallback_386.s +4014 -0
  272. package/govendor/github.com/ebitengine/purego/zcallback_amd64.s +2014 -0
  273. package/govendor/github.com/ebitengine/purego/zcallback_arm.s +4014 -0
  274. package/govendor/github.com/ebitengine/purego/zcallback_arm64.s +4014 -0
  275. package/govendor/github.com/ebitengine/purego/zcallback_loong64.s +4014 -0
  276. package/govendor/github.com/ebitengine/purego/zcallback_ppc64le.s +4014 -0
  277. package/govendor/github.com/ebitengine/purego/zcallback_riscv64.s +4051 -0
  278. package/govendor/github.com/ebitengine/purego/zcallback_s390x.s +4015 -0
  279. package/govendor/github.com/klauspost/compress/.gitattributes +3 -0
  280. package/govendor/github.com/klauspost/compress/.goreleaser.yml +132 -0
  281. package/govendor/github.com/klauspost/compress/AGENTS.md +106 -0
  282. package/govendor/github.com/klauspost/compress/LICENSE +304 -0
  283. package/govendor/github.com/klauspost/compress/README.md +766 -0
  284. package/govendor/github.com/klauspost/compress/SECURITY.md +25 -0
  285. package/govendor/github.com/klauspost/compress/compressible.go +85 -0
  286. package/govendor/github.com/klauspost/compress/fse/README.md +79 -0
  287. package/govendor/github.com/klauspost/compress/fse/bitreader.go +122 -0
  288. package/govendor/github.com/klauspost/compress/fse/bitwriter.go +167 -0
  289. package/govendor/github.com/klauspost/compress/fse/bytereader.go +47 -0
  290. package/govendor/github.com/klauspost/compress/fse/compress.go +685 -0
  291. package/govendor/github.com/klauspost/compress/fse/decompress.go +383 -0
  292. package/govendor/github.com/klauspost/compress/fse/fse.go +150 -0
  293. package/govendor/github.com/klauspost/compress/gen.sh +4 -0
  294. package/govendor/github.com/klauspost/compress/go.mod +3 -0
  295. package/govendor/github.com/klauspost/compress/huff0/README.md +89 -0
  296. package/govendor/github.com/klauspost/compress/huff0/bitreader.go +323 -0
  297. package/govendor/github.com/klauspost/compress/huff0/bitwriter.go +97 -0
  298. package/govendor/github.com/klauspost/compress/huff0/build_table.go +168 -0
  299. package/govendor/github.com/klauspost/compress/huff0/compress.go +747 -0
  300. package/govendor/github.com/klauspost/compress/huff0/decompress.go +1188 -0
  301. package/govendor/github.com/klauspost/compress/huff0/decompress_amd64.go +128 -0
  302. package/govendor/github.com/klauspost/compress/huff0/decompress_amd64.s +3476 -0
  303. package/govendor/github.com/klauspost/compress/huff0/decompress_arm64.go +72 -0
  304. package/govendor/github.com/klauspost/compress/huff0/decompress_arm64.s +1648 -0
  305. package/govendor/github.com/klauspost/compress/huff0/decompress_asm.go +252 -0
  306. package/govendor/github.com/klauspost/compress/huff0/decompress_generic.go +278 -0
  307. package/govendor/github.com/klauspost/compress/huff0/huff0.go +337 -0
  308. package/govendor/github.com/klauspost/compress/internal/cpuinfo/cpuinfo.go +34 -0
  309. package/govendor/github.com/klauspost/compress/internal/cpuinfo/cpuinfo_amd64.go +10 -0
  310. package/govendor/github.com/klauspost/compress/internal/cpuinfo/cpuinfo_amd64.s +34 -0
  311. package/govendor/github.com/klauspost/compress/internal/le/le.go +5 -0
  312. package/govendor/github.com/klauspost/compress/internal/le/unsafe_disabled.go +42 -0
  313. package/govendor/github.com/klauspost/compress/internal/le/unsafe_enabled.go +52 -0
  314. package/govendor/github.com/klauspost/compress/internal/regmask/regmask.go +50 -0
  315. package/govendor/github.com/klauspost/compress/internal/regmask/regmask_386.go +39 -0
  316. package/govendor/github.com/klauspost/compress/internal/snapref/LICENSE +27 -0
  317. package/govendor/github.com/klauspost/compress/internal/snapref/decode.go +264 -0
  318. package/govendor/github.com/klauspost/compress/internal/snapref/decode_other.go +113 -0
  319. package/govendor/github.com/klauspost/compress/internal/snapref/encode.go +291 -0
  320. package/govendor/github.com/klauspost/compress/internal/snapref/encode_other.go +250 -0
  321. package/govendor/github.com/klauspost/compress/internal/snapref/snappy.go +98 -0
  322. package/govendor/github.com/klauspost/compress/s2sx.mod +3 -0
  323. package/govendor/github.com/klauspost/compress/s2sx.sum +0 -0
  324. package/govendor/github.com/klauspost/compress/zstd/README.md +487 -0
  325. package/govendor/github.com/klauspost/compress/zstd/bitreader.go +176 -0
  326. package/govendor/github.com/klauspost/compress/zstd/bitwriter.go +151 -0
  327. package/govendor/github.com/klauspost/compress/zstd/blockdec.go +728 -0
  328. package/govendor/github.com/klauspost/compress/zstd/blockenc.go +923 -0
  329. package/govendor/github.com/klauspost/compress/zstd/blocktype_string.go +85 -0
  330. package/govendor/github.com/klauspost/compress/zstd/bytebuf.go +131 -0
  331. package/govendor/github.com/klauspost/compress/zstd/bytereader.go +82 -0
  332. package/govendor/github.com/klauspost/compress/zstd/decodeheader.go +261 -0
  333. package/govendor/github.com/klauspost/compress/zstd/decoder.go +995 -0
  334. package/govendor/github.com/klauspost/compress/zstd/decoder_options.go +213 -0
  335. package/govendor/github.com/klauspost/compress/zstd/dict.go +605 -0
  336. package/govendor/github.com/klauspost/compress/zstd/enc_base.go +200 -0
  337. package/govendor/github.com/klauspost/compress/zstd/enc_best.go +572 -0
  338. package/govendor/github.com/klauspost/compress/zstd/enc_better.go +1262 -0
  339. package/govendor/github.com/klauspost/compress/zstd/enc_dfast.go +1136 -0
  340. package/govendor/github.com/klauspost/compress/zstd/enc_fast.go +892 -0
  341. package/govendor/github.com/klauspost/compress/zstd/enc_jobs.go +352 -0
  342. package/govendor/github.com/klauspost/compress/zstd/encoder.go +881 -0
  343. package/govendor/github.com/klauspost/compress/zstd/encoder_options.go +422 -0
  344. package/govendor/github.com/klauspost/compress/zstd/framedec.go +404 -0
  345. package/govendor/github.com/klauspost/compress/zstd/frameenc.go +137 -0
  346. package/govendor/github.com/klauspost/compress/zstd/fse_decoder.go +333 -0
  347. package/govendor/github.com/klauspost/compress/zstd/fse_decoder_amd64.s +132 -0
  348. package/govendor/github.com/klauspost/compress/zstd/fse_decoder_arm64.s +148 -0
  349. package/govendor/github.com/klauspost/compress/zstd/fse_decoder_asm.go +70 -0
  350. package/govendor/github.com/klauspost/compress/zstd/fse_decoder_generic.go +71 -0
  351. package/govendor/github.com/klauspost/compress/zstd/fse_encoder.go +701 -0
  352. package/govendor/github.com/klauspost/compress/zstd/fse_predefined.go +168 -0
  353. package/govendor/github.com/klauspost/compress/zstd/hash.go +57 -0
  354. package/govendor/github.com/klauspost/compress/zstd/history.go +119 -0
  355. package/govendor/github.com/klauspost/compress/zstd/internal/xxhash/LICENSE.txt +22 -0
  356. package/govendor/github.com/klauspost/compress/zstd/internal/xxhash/README.md +71 -0
  357. package/govendor/github.com/klauspost/compress/zstd/internal/xxhash/xxhash.go +242 -0
  358. package/govendor/github.com/klauspost/compress/zstd/internal/xxhash/xxhash_amd64.s +210 -0
  359. package/govendor/github.com/klauspost/compress/zstd/internal/xxhash/xxhash_arm64.s +184 -0
  360. package/govendor/github.com/klauspost/compress/zstd/internal/xxhash/xxhash_asm.go +11 -0
  361. package/govendor/github.com/klauspost/compress/zstd/internal/xxhash/xxhash_other.go +75 -0
  362. package/govendor/github.com/klauspost/compress/zstd/internal/xxhash/xxhash_safe.go +11 -0
  363. package/govendor/github.com/klauspost/compress/zstd/matchlen_amd64.go +15 -0
  364. package/govendor/github.com/klauspost/compress/zstd/matchlen_amd64.s +66 -0
  365. package/govendor/github.com/klauspost/compress/zstd/matchlen_generic.go +37 -0
  366. package/govendor/github.com/klauspost/compress/zstd/seqdec.go +620 -0
  367. package/govendor/github.com/klauspost/compress/zstd/seqdec_amd64.go +115 -0
  368. package/govendor/github.com/klauspost/compress/zstd/seqdec_amd64.s +4762 -0
  369. package/govendor/github.com/klauspost/compress/zstd/seqdec_arm64.go +81 -0
  370. package/govendor/github.com/klauspost/compress/zstd/seqdec_arm64.s +2919 -0
  371. package/govendor/github.com/klauspost/compress/zstd/seqdec_asm.go +327 -0
  372. package/govendor/github.com/klauspost/compress/zstd/seqdec_generic.go +258 -0
  373. package/govendor/github.com/klauspost/compress/zstd/seqenc.go +159 -0
  374. package/govendor/github.com/klauspost/compress/zstd/simple.go +54 -0
  375. package/govendor/github.com/klauspost/compress/zstd/snappy.go +447 -0
  376. package/govendor/github.com/klauspost/compress/zstd/zip.go +141 -0
  377. package/govendor/github.com/klauspost/compress/zstd/zstd.go +126 -0
  378. package/govendor/github.com/tetratelabs/wazero/.editorconfig +7 -0
  379. package/govendor/github.com/tetratelabs/wazero/.gitattributes +2 -0
  380. package/govendor/github.com/tetratelabs/wazero/.gitmodules +3 -0
  381. package/govendor/github.com/tetratelabs/wazero/CONTRIBUTING.md +75 -0
  382. package/govendor/github.com/tetratelabs/wazero/LICENSE +201 -0
  383. package/govendor/github.com/tetratelabs/wazero/Makefile +385 -0
  384. package/govendor/github.com/tetratelabs/wazero/NOTICE +2 -0
  385. package/govendor/github.com/tetratelabs/wazero/RATIONALE.md +1577 -0
  386. package/govendor/github.com/tetratelabs/wazero/README.md +135 -0
  387. package/govendor/github.com/tetratelabs/wazero/api/features.go +228 -0
  388. package/govendor/github.com/tetratelabs/wazero/api/wasm.go +766 -0
  389. package/govendor/github.com/tetratelabs/wazero/builder.go +367 -0
  390. package/govendor/github.com/tetratelabs/wazero/cache.go +123 -0
  391. package/govendor/github.com/tetratelabs/wazero/codecov.yml +9 -0
  392. package/govendor/github.com/tetratelabs/wazero/config.go +899 -0
  393. package/govendor/github.com/tetratelabs/wazero/experimental/checkpoint.go +35 -0
  394. package/govendor/github.com/tetratelabs/wazero/experimental/close.go +63 -0
  395. package/govendor/github.com/tetratelabs/wazero/experimental/compilationworkers.go +19 -0
  396. package/govendor/github.com/tetratelabs/wazero/experimental/experimental.go +41 -0
  397. package/govendor/github.com/tetratelabs/wazero/experimental/features.go +39 -0
  398. package/govendor/github.com/tetratelabs/wazero/experimental/importresolver.go +19 -0
  399. package/govendor/github.com/tetratelabs/wazero/experimental/listener.go +324 -0
  400. package/govendor/github.com/tetratelabs/wazero/experimental/memory.go +52 -0
  401. package/govendor/github.com/tetratelabs/wazero/experimental/sys/dir.go +92 -0
  402. package/govendor/github.com/tetratelabs/wazero/experimental/sys/errno.go +98 -0
  403. package/govendor/github.com/tetratelabs/wazero/experimental/sys/error.go +45 -0
  404. package/govendor/github.com/tetratelabs/wazero/experimental/sys/file.go +356 -0
  405. package/govendor/github.com/tetratelabs/wazero/experimental/sys/fs.go +292 -0
  406. package/govendor/github.com/tetratelabs/wazero/experimental/sys/oflag.go +70 -0
  407. package/govendor/github.com/tetratelabs/wazero/experimental/sys/poll.go +48 -0
  408. package/govendor/github.com/tetratelabs/wazero/experimental/sys/syscall_errno.go +106 -0
  409. package/govendor/github.com/tetratelabs/wazero/experimental/sys/syscall_errno_notwindows.go +13 -0
  410. package/govendor/github.com/tetratelabs/wazero/experimental/sys/syscall_errno_unsupported.go +7 -0
  411. package/govendor/github.com/tetratelabs/wazero/experimental/sys/syscall_errno_windows.go +37 -0
  412. package/govendor/github.com/tetratelabs/wazero/experimental/sys/time.go +10 -0
  413. package/govendor/github.com/tetratelabs/wazero/experimental/sys/unimplemented.go +160 -0
  414. package/govendor/github.com/tetratelabs/wazero/fsconfig.go +213 -0
  415. package/govendor/github.com/tetratelabs/wazero/go.mod +3 -0
  416. package/govendor/github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1/args.go +97 -0
  417. package/govendor/github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1/clock.go +116 -0
  418. package/govendor/github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1/environ.go +100 -0
  419. package/govendor/github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1/fs.go +2015 -0
  420. package/govendor/github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1/poll.go +247 -0
  421. package/govendor/github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1/proc.go +44 -0
  422. package/govendor/github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1/random.go +55 -0
  423. package/govendor/github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1/sched.go +22 -0
  424. package/govendor/github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1/sock.go +188 -0
  425. package/govendor/github.com/tetratelabs/wazero/imports/wasi_snapshot_preview1/wasi.go +314 -0
  426. package/govendor/github.com/tetratelabs/wazero/internal/descriptor/table.go +149 -0
  427. package/govendor/github.com/tetratelabs/wazero/internal/engine/interpreter/compiler.go +3884 -0
  428. package/govendor/github.com/tetratelabs/wazero/internal/engine/interpreter/format.go +22 -0
  429. package/govendor/github.com/tetratelabs/wazero/internal/engine/interpreter/interpreter.go +4963 -0
  430. package/govendor/github.com/tetratelabs/wazero/internal/engine/interpreter/operations.go +2978 -0
  431. package/govendor/github.com/tetratelabs/wazero/internal/engine/interpreter/signature.go +825 -0
  432. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/abi.go +170 -0
  433. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/backend.go +3 -0
  434. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/compiler.go +402 -0
  435. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/compiler_lower.go +226 -0
  436. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/go_call.go +33 -0
  437. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/abi.go +186 -0
  438. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/abi_entry_amd64.go +9 -0
  439. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/abi_entry_amd64.s +29 -0
  440. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/abi_entry_preamble.go +248 -0
  441. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/abi_go_call.go +440 -0
  442. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/cond.go +168 -0
  443. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/ext.go +35 -0
  444. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/instr.go +2495 -0
  445. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/instr_encoding.go +1714 -0
  446. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/lower_constant.go +71 -0
  447. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/lower_mem.go +187 -0
  448. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/machine.go +3782 -0
  449. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/machine_pro_epi_logue.go +334 -0
  450. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/machine_regalloc.go +352 -0
  451. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/machine_vec.go +992 -0
  452. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/operands.go +336 -0
  453. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/reg.go +181 -0
  454. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/amd64/stack.go +130 -0
  455. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/abi.go +376 -0
  456. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/abi_entry_arm64.go +9 -0
  457. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/abi_entry_arm64.s +29 -0
  458. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/abi_entry_preamble.go +233 -0
  459. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/abi_go_call.go +430 -0
  460. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/cond.go +215 -0
  461. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/instr.go +2562 -0
  462. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/instr_encoding.go +2357 -0
  463. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/lower_constant.go +301 -0
  464. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/lower_instr.go +2227 -0
  465. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/lower_instr_operands.go +340 -0
  466. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/lower_mem.go +451 -0
  467. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/machine.go +631 -0
  468. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/machine_pro_epi_logue.go +486 -0
  469. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/machine_regalloc.go +351 -0
  470. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/machine_relocation.go +128 -0
  471. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/reg.go +397 -0
  472. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/isa/arm64/unwind_stack.go +84 -0
  473. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/machine.go +119 -0
  474. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc/api.go +124 -0
  475. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc/reg.go +123 -0
  476. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc/regalloc.go +1189 -0
  477. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/regalloc/regset.go +96 -0
  478. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/backend/vdef.go +19 -0
  479. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/call_engine.go +884 -0
  480. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/engine.go +1008 -0
  481. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/engine_cache.go +347 -0
  482. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/entrypoint_amd64.go +13 -0
  483. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/entrypoint_arm64.go +13 -0
  484. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/entrypoint_other.go +15 -0
  485. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/frontend/frontend.go +663 -0
  486. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/frontend/lower.go +5045 -0
  487. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/frontend/misc.go +10 -0
  488. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/frontend/sort_id.go +13 -0
  489. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/hostmodule.go +88 -0
  490. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/isa_amd64.go +30 -0
  491. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/isa_arm64.go +32 -0
  492. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/isa_other.go +29 -0
  493. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/memmove.go +11 -0
  494. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/module_engine.go +403 -0
  495. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/basic_block.go +381 -0
  496. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/basic_block_sort.go +32 -0
  497. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/builder.go +790 -0
  498. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/cmp.go +107 -0
  499. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/funcref.go +12 -0
  500. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/instructions.go +3024 -0
  501. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/pass.go +393 -0
  502. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/pass_blk_layouts.go +334 -0
  503. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/pass_cfg.go +313 -0
  504. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/signature.go +49 -0
  505. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/ssa.go +14 -0
  506. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/type.go +115 -0
  507. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/ssa/vs.go +114 -0
  508. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi/debug_options.go +189 -0
  509. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi/exitcode.go +150 -0
  510. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi/offsetdata.go +248 -0
  511. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi/perfmap.go +96 -0
  512. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi/perfmap_disabled.go +5 -0
  513. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi/perfmap_enabled.go +5 -0
  514. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi/pool.go +215 -0
  515. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi/ptr.go +15 -0
  516. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi/queue.go +26 -0
  517. package/govendor/github.com/tetratelabs/wazero/internal/engine/wazevo/wazevoapi/resetmap.go +11 -0
  518. package/govendor/github.com/tetratelabs/wazero/internal/expctxkeys/checkpoint.go +10 -0
  519. package/govendor/github.com/tetratelabs/wazero/internal/expctxkeys/close.go +5 -0
  520. package/govendor/github.com/tetratelabs/wazero/internal/expctxkeys/compilationworkers.go +6 -0
  521. package/govendor/github.com/tetratelabs/wazero/internal/expctxkeys/expctxkeys.go +2 -0
  522. package/govendor/github.com/tetratelabs/wazero/internal/expctxkeys/importresolver.go +6 -0
  523. package/govendor/github.com/tetratelabs/wazero/internal/expctxkeys/listener.go +7 -0
  524. package/govendor/github.com/tetratelabs/wazero/internal/expctxkeys/memory.go +4 -0
  525. package/govendor/github.com/tetratelabs/wazero/internal/filecache/compilationcache.go +42 -0
  526. package/govendor/github.com/tetratelabs/wazero/internal/filecache/file_cache.go +76 -0
  527. package/govendor/github.com/tetratelabs/wazero/internal/ieee754/ieee754.go +29 -0
  528. package/govendor/github.com/tetratelabs/wazero/internal/internalapi/internal.go +9 -0
  529. package/govendor/github.com/tetratelabs/wazero/internal/leb128/leb128.go +285 -0
  530. package/govendor/github.com/tetratelabs/wazero/internal/moremath/moremath.go +271 -0
  531. package/govendor/github.com/tetratelabs/wazero/internal/platform/cpuid.go +26 -0
  532. package/govendor/github.com/tetratelabs/wazero/internal/platform/cpuid_amd64.go +22 -0
  533. package/govendor/github.com/tetratelabs/wazero/internal/platform/cpuid_arm64.go +13 -0
  534. package/govendor/github.com/tetratelabs/wazero/internal/platform/cpuid_unsupported.go +5 -0
  535. package/govendor/github.com/tetratelabs/wazero/internal/platform/crypto.go +17 -0
  536. package/govendor/github.com/tetratelabs/wazero/internal/platform/mmap_linux.go +72 -0
  537. package/govendor/github.com/tetratelabs/wazero/internal/platform/mmap_other.go +19 -0
  538. package/govendor/github.com/tetratelabs/wazero/internal/platform/mmap_unix.go +14 -0
  539. package/govendor/github.com/tetratelabs/wazero/internal/platform/mmap_unsupported.go +22 -0
  540. package/govendor/github.com/tetratelabs/wazero/internal/platform/mmap_windows.go +31 -0
  541. package/govendor/github.com/tetratelabs/wazero/internal/platform/path.go +6 -0
  542. package/govendor/github.com/tetratelabs/wazero/internal/platform/path_windows.go +17 -0
  543. package/govendor/github.com/tetratelabs/wazero/internal/platform/platform.go +71 -0
  544. package/govendor/github.com/tetratelabs/wazero/internal/platform/time.go +76 -0
  545. package/govendor/github.com/tetratelabs/wazero/internal/platform/time_notwindows.go +11 -0
  546. package/govendor/github.com/tetratelabs/wazero/internal/platform/time_windows.go +40 -0
  547. package/govendor/github.com/tetratelabs/wazero/internal/sock/sock.go +89 -0
  548. package/govendor/github.com/tetratelabs/wazero/internal/sock/sock_supported.go +11 -0
  549. package/govendor/github.com/tetratelabs/wazero/internal/sock/sock_unsupported.go +10 -0
  550. package/govendor/github.com/tetratelabs/wazero/internal/sys/fs.go +458 -0
  551. package/govendor/github.com/tetratelabs/wazero/internal/sys/lazy.go +135 -0
  552. package/govendor/github.com/tetratelabs/wazero/internal/sys/stdio.go +125 -0
  553. package/govendor/github.com/tetratelabs/wazero/internal/sys/sys.go +228 -0
  554. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/adapter.go +105 -0
  555. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/datasync_linux.go +12 -0
  556. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/datasync_unsupported.go +14 -0
  557. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/dir.go +24 -0
  558. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/dirfs.go +137 -0
  559. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/file.go +576 -0
  560. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/file_unix.go +39 -0
  561. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/file_unsupported.go +28 -0
  562. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/file_windows.go +133 -0
  563. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/futimens.go +29 -0
  564. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/futimens_darwin.go +42 -0
  565. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/futimens_darwin.s +8 -0
  566. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/futimens_linux.go +38 -0
  567. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/futimens_unsupported.go +18 -0
  568. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/futimens_windows.go +42 -0
  569. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/ino_unix.go +22 -0
  570. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/ino_unsupported.go +17 -0
  571. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/ino_windows.go +28 -0
  572. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/nonblock_unix.go +17 -0
  573. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/nonblock_unsupported.go +13 -0
  574. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/nonblock_windows.go +23 -0
  575. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/oflag.go +38 -0
  576. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/open_file_bsd.go +26 -0
  577. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/open_file_darwin.go +26 -0
  578. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/open_file_supported.go +30 -0
  579. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/open_file_unix.go +20 -0
  580. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/open_file_unsupported.go +16 -0
  581. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/open_file_windows.go +163 -0
  582. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/osfile.go +318 -0
  583. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/poll.go +17 -0
  584. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/poll_darwin.go +55 -0
  585. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/poll_darwin.s +8 -0
  586. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/poll_linux.go +57 -0
  587. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/poll_unsupported.go +12 -0
  588. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/poll_windows.go +224 -0
  589. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/readfs.go +117 -0
  590. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/rename_unix.go +16 -0
  591. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/rename_unsupported.go +16 -0
  592. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/rename_windows.go +55 -0
  593. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/sock.go +186 -0
  594. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/sock_supported.go +76 -0
  595. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/sock_unix.go +48 -0
  596. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/sock_unsupported.go +79 -0
  597. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/sock_windows.go +80 -0
  598. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/stat.go +16 -0
  599. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/stat_supported.go +40 -0
  600. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/stat_unsupported.go +40 -0
  601. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/stat_windows.go +118 -0
  602. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/sync.go +13 -0
  603. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/sync_windows.go +20 -0
  604. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/syscall6_darwin.go +13 -0
  605. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/sysfs.go +6 -0
  606. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/unlink_unix.go +17 -0
  607. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/unlink_unsupported.go +14 -0
  608. package/govendor/github.com/tetratelabs/wazero/internal/sysfs/unlink_windows.go +25 -0
  609. package/govendor/github.com/tetratelabs/wazero/internal/u32/u32.go +11 -0
  610. package/govendor/github.com/tetratelabs/wazero/internal/u64/u64.go +15 -0
  611. package/govendor/github.com/tetratelabs/wazero/internal/version/version.go +52 -0
  612. package/govendor/github.com/tetratelabs/wazero/internal/wasip1/args.go +6 -0
  613. package/govendor/github.com/tetratelabs/wazero/internal/wasip1/clock.go +16 -0
  614. package/govendor/github.com/tetratelabs/wazero/internal/wasip1/environ.go +6 -0
  615. package/govendor/github.com/tetratelabs/wazero/internal/wasip1/errno.go +314 -0
  616. package/govendor/github.com/tetratelabs/wazero/internal/wasip1/fs.go +164 -0
  617. package/govendor/github.com/tetratelabs/wazero/internal/wasip1/poll.go +15 -0
  618. package/govendor/github.com/tetratelabs/wazero/internal/wasip1/proc.go +6 -0
  619. package/govendor/github.com/tetratelabs/wazero/internal/wasip1/random.go +3 -0
  620. package/govendor/github.com/tetratelabs/wazero/internal/wasip1/rights.go +148 -0
  621. package/govendor/github.com/tetratelabs/wazero/internal/wasip1/sched.go +3 -0
  622. package/govendor/github.com/tetratelabs/wazero/internal/wasip1/sock.go +71 -0
  623. package/govendor/github.com/tetratelabs/wazero/internal/wasip1/wasi.go +26 -0
  624. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/code.go +124 -0
  625. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/const_expr.go +116 -0
  626. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/custom.go +22 -0
  627. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/data.go +79 -0
  628. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/decoder.go +235 -0
  629. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/element.go +250 -0
  630. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/errors.go +11 -0
  631. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/export.go +32 -0
  632. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/function.go +56 -0
  633. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/global.go +50 -0
  634. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/header.go +9 -0
  635. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/import.go +68 -0
  636. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/limits.go +47 -0
  637. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/memory.go +42 -0
  638. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/names.go +151 -0
  639. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/section.go +309 -0
  640. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/table.go +79 -0
  641. package/govendor/github.com/tetratelabs/wazero/internal/wasm/binary/value.go +97 -0
  642. package/govendor/github.com/tetratelabs/wazero/internal/wasm/const_expr.go +259 -0
  643. package/govendor/github.com/tetratelabs/wazero/internal/wasm/counts.go +53 -0
  644. package/govendor/github.com/tetratelabs/wazero/internal/wasm/engine.go +76 -0
  645. package/govendor/github.com/tetratelabs/wazero/internal/wasm/exception.go +9 -0
  646. package/govendor/github.com/tetratelabs/wazero/internal/wasm/func_validation.go +2804 -0
  647. package/govendor/github.com/tetratelabs/wazero/internal/wasm/function_definition.go +210 -0
  648. package/govendor/github.com/tetratelabs/wazero/internal/wasm/global.go +55 -0
  649. package/govendor/github.com/tetratelabs/wazero/internal/wasm/gofunc.go +279 -0
  650. package/govendor/github.com/tetratelabs/wazero/internal/wasm/host.go +179 -0
  651. package/govendor/github.com/tetratelabs/wazero/internal/wasm/instruction.go +1962 -0
  652. package/govendor/github.com/tetratelabs/wazero/internal/wasm/memory.go +475 -0
  653. package/govendor/github.com/tetratelabs/wazero/internal/wasm/memory_definition.go +128 -0
  654. package/govendor/github.com/tetratelabs/wazero/internal/wasm/module.go +1359 -0
  655. package/govendor/github.com/tetratelabs/wazero/internal/wasm/module_instance.go +251 -0
  656. package/govendor/github.com/tetratelabs/wazero/internal/wasm/module_instance_lookup.go +73 -0
  657. package/govendor/github.com/tetratelabs/wazero/internal/wasm/store.go +726 -0
  658. package/govendor/github.com/tetratelabs/wazero/internal/wasm/store_module_list.go +95 -0
  659. package/govendor/github.com/tetratelabs/wazero/internal/wasm/table.go +321 -0
  660. package/govendor/github.com/tetratelabs/wazero/internal/wasmdebug/debug.go +170 -0
  661. package/govendor/github.com/tetratelabs/wazero/internal/wasmdebug/dwarf.go +225 -0
  662. package/govendor/github.com/tetratelabs/wazero/internal/wasmruntime/errors.go +54 -0
  663. package/govendor/github.com/tetratelabs/wazero/netlify.toml +15 -0
  664. package/govendor/github.com/tetratelabs/wazero/runtime.go +399 -0
  665. package/govendor/github.com/tetratelabs/wazero/sys/clock.go +26 -0
  666. package/govendor/github.com/tetratelabs/wazero/sys/error.go +83 -0
  667. package/govendor/github.com/tetratelabs/wazero/sys/stat.go +105 -0
  668. package/govendor/github.com/tetratelabs/wazero/sys/stat_bsd.go +29 -0
  669. package/govendor/github.com/tetratelabs/wazero/sys/stat_posix.go +29 -0
  670. package/govendor/github.com/tetratelabs/wazero/sys/stat_unsupported.go +14 -0
  671. package/govendor/github.com/tetratelabs/wazero/sys/stat_windows.go +24 -0
  672. package/govendor/golang.org/x/crypto/LICENSE +27 -0
  673. package/govendor/golang.org/x/crypto/PATENTS +22 -0
  674. package/govendor/golang.org/x/crypto/cryptobyte/asn1/asn1.go +46 -0
  675. package/govendor/golang.org/x/crypto/cryptobyte/asn1.go +825 -0
  676. package/govendor/golang.org/x/crypto/cryptobyte/builder.go +350 -0
  677. package/govendor/golang.org/x/crypto/cryptobyte/string.go +183 -0
  678. package/govendor/golang.org/x/crypto/go.mod +3 -0
  679. package/govendor/golang.org/x/crypto/pbkdf2/pbkdf2.go +30 -0
  680. package/govendor/golang.org/x/net/LICENSE +27 -0
  681. package/govendor/golang.org/x/net/PATENTS +22 -0
  682. package/govendor/golang.org/x/net/dns/dnsmessage/message.go +2733 -0
  683. package/govendor/golang.org/x/net/dns/dnsmessage/svcb.go +333 -0
  684. package/govendor/golang.org/x/net/go.mod +3 -0
  685. package/govendor/golang.org/x/net/http/httpguts/guts.go +50 -0
  686. package/govendor/golang.org/x/net/http/httpguts/httplex.go +347 -0
  687. package/govendor/golang.org/x/net/http2/README.md +19 -0
  688. package/govendor/golang.org/x/net/http2/ascii.go +65 -0
  689. package/govendor/golang.org/x/net/http2/ciphers.go +641 -0
  690. package/govendor/golang.org/x/net/http2/client_conn_pool.go +301 -0
  691. package/govendor/golang.org/x/net/http2/client_priority_go126.go +20 -0
  692. package/govendor/golang.org/x/net/http2/client_priority_go127.go +13 -0
  693. package/govendor/golang.org/x/net/http2/clientconn.go +57 -0
  694. package/govendor/golang.org/x/net/http2/config.go +171 -0
  695. package/govendor/golang.org/x/net/http2/config_go125.go +15 -0
  696. package/govendor/golang.org/x/net/http2/config_go126.go +15 -0
  697. package/govendor/golang.org/x/net/http2/databuffer.go +146 -0
  698. package/govendor/golang.org/x/net/http2/errors.go +145 -0
  699. package/govendor/golang.org/x/net/http2/flow.go +175 -0
  700. package/govendor/golang.org/x/net/http2/frame.go +1887 -0
  701. package/govendor/golang.org/x/net/http2/gotrack.go +181 -0
  702. package/govendor/golang.org/x/net/http2/hpack/encode.go +244 -0
  703. package/govendor/golang.org/x/net/http2/hpack/hpack.go +522 -0
  704. package/govendor/golang.org/x/net/http2/hpack/huffman.go +226 -0
  705. package/govendor/golang.org/x/net/http2/hpack/static_table.go +188 -0
  706. package/govendor/golang.org/x/net/http2/hpack/tables.go +426 -0
  707. package/govendor/golang.org/x/net/http2/http2.go +415 -0
  708. package/govendor/golang.org/x/net/http2/pipe.go +184 -0
  709. package/govendor/golang.org/x/net/http2/server.go +3239 -0
  710. package/govendor/golang.org/x/net/http2/server_common.go +268 -0
  711. package/govendor/golang.org/x/net/http2/server_wrap.go +217 -0
  712. package/govendor/golang.org/x/net/http2/transport.go +3084 -0
  713. package/govendor/golang.org/x/net/http2/transport_common.go +516 -0
  714. package/govendor/golang.org/x/net/http2/transport_wrap.go +583 -0
  715. package/govendor/golang.org/x/net/http2/unencrypted.go +32 -0
  716. package/govendor/golang.org/x/net/http2/write.go +381 -0
  717. package/govendor/golang.org/x/net/http2/writesched.go +253 -0
  718. package/govendor/golang.org/x/net/http2/writesched_common.go +90 -0
  719. package/govendor/golang.org/x/net/http2/writesched_priority_rfc7540.go +420 -0
  720. package/govendor/golang.org/x/net/http2/writesched_priority_rfc9218.go +226 -0
  721. package/govendor/golang.org/x/net/http2/writesched_random.go +81 -0
  722. package/govendor/golang.org/x/net/http2/writesched_roundrobin.go +121 -0
  723. package/govendor/golang.org/x/net/idna/idna.go +884 -0
  724. package/govendor/golang.org/x/net/idna/punycode.go +220 -0
  725. package/govendor/golang.org/x/net/idna/tables15.0.0.go +5144 -0
  726. package/govendor/golang.org/x/net/idna/tables17.0.0.go +5302 -0
  727. package/govendor/golang.org/x/net/idna/trie.go +51 -0
  728. package/govendor/golang.org/x/net/idna/trieval.go +119 -0
  729. package/govendor/golang.org/x/net/internal/httpcommon/README.md +7 -0
  730. package/govendor/golang.org/x/net/internal/httpcommon/ascii.go +53 -0
  731. package/govendor/golang.org/x/net/internal/httpcommon/gzip.go +132 -0
  732. package/govendor/golang.org/x/net/internal/httpcommon/headermap.go +115 -0
  733. package/govendor/golang.org/x/net/internal/httpcommon/request.go +503 -0
  734. package/govendor/golang.org/x/net/internal/httpsfv/httpsfv.go +665 -0
  735. package/govendor/golang.org/x/sys/cpu/asm_aix_ppc64.s +17 -0
  736. package/govendor/golang.org/x/sys/cpu/asm_darwin_arm64_gc.s +12 -0
  737. package/govendor/golang.org/x/sys/cpu/asm_darwin_x86_gc.s +17 -0
  738. package/govendor/golang.org/x/sys/cpu/byteorder.go +66 -0
  739. package/govendor/golang.org/x/sys/cpu/cpu.go +357 -0
  740. package/govendor/golang.org/x/sys/cpu/cpu_aix.go +33 -0
  741. package/govendor/golang.org/x/sys/cpu/cpu_arm.go +73 -0
  742. package/govendor/golang.org/x/sys/cpu/cpu_arm64.go +191 -0
  743. package/govendor/golang.org/x/sys/cpu/cpu_arm64.s +35 -0
  744. package/govendor/golang.org/x/sys/cpu/cpu_darwin_arm64.go +67 -0
  745. package/govendor/golang.org/x/sys/cpu/cpu_darwin_arm64_other.go +31 -0
  746. package/govendor/golang.org/x/sys/cpu/cpu_darwin_x86.go +61 -0
  747. package/govendor/golang.org/x/sys/cpu/cpu_gc_arm64.go +12 -0
  748. package/govendor/golang.org/x/sys/cpu/cpu_gc_riscv64.go +11 -0
  749. package/govendor/golang.org/x/sys/cpu/cpu_gc_s390x.go +21 -0
  750. package/govendor/golang.org/x/sys/cpu/cpu_gc_x86.go +15 -0
  751. package/govendor/golang.org/x/sys/cpu/cpu_gc_x86.s +26 -0
  752. package/govendor/golang.org/x/sys/cpu/cpu_gccgo_arm64.go +12 -0
  753. package/govendor/golang.org/x/sys/cpu/cpu_gccgo_s390x.go +22 -0
  754. package/govendor/golang.org/x/sys/cpu/cpu_gccgo_x86.c +37 -0
  755. package/govendor/golang.org/x/sys/cpu/cpu_gccgo_x86.go +25 -0
  756. package/govendor/golang.org/x/sys/cpu/cpu_linux.go +15 -0
  757. package/govendor/golang.org/x/sys/cpu/cpu_linux_arm.go +39 -0
  758. package/govendor/golang.org/x/sys/cpu/cpu_linux_arm64.go +120 -0
  759. package/govendor/golang.org/x/sys/cpu/cpu_linux_loong64.go +22 -0
  760. package/govendor/golang.org/x/sys/cpu/cpu_linux_mips64x.go +22 -0
  761. package/govendor/golang.org/x/sys/cpu/cpu_linux_noinit.go +9 -0
  762. package/govendor/golang.org/x/sys/cpu/cpu_linux_ppc64x.go +34 -0
  763. package/govendor/golang.org/x/sys/cpu/cpu_linux_riscv64.go +173 -0
  764. package/govendor/golang.org/x/sys/cpu/cpu_linux_s390x.go +40 -0
  765. package/govendor/golang.org/x/sys/cpu/cpu_loong64.go +62 -0
  766. package/govendor/golang.org/x/sys/cpu/cpu_loong64.s +13 -0
  767. package/govendor/golang.org/x/sys/cpu/cpu_mips64x.go +15 -0
  768. package/govendor/golang.org/x/sys/cpu/cpu_mipsx.go +11 -0
  769. package/govendor/golang.org/x/sys/cpu/cpu_netbsd_amd64.go +47 -0
  770. package/govendor/golang.org/x/sys/cpu/cpu_netbsd_arm64.go +173 -0
  771. package/govendor/golang.org/x/sys/cpu/cpu_openbsd_arm64.go +65 -0
  772. package/govendor/golang.org/x/sys/cpu/cpu_openbsd_arm64.s +11 -0
  773. package/govendor/golang.org/x/sys/cpu/cpu_other_arm.go +9 -0
  774. package/govendor/golang.org/x/sys/cpu/cpu_other_arm64.go +11 -0
  775. package/govendor/golang.org/x/sys/cpu/cpu_other_mips64x.go +11 -0
  776. package/govendor/golang.org/x/sys/cpu/cpu_other_ppc64x.go +12 -0
  777. package/govendor/golang.org/x/sys/cpu/cpu_other_riscv64.go +11 -0
  778. package/govendor/golang.org/x/sys/cpu/cpu_other_x86.go +11 -0
  779. package/govendor/golang.org/x/sys/cpu/cpu_ppc64x.go +16 -0
  780. package/govendor/golang.org/x/sys/cpu/cpu_riscv64.go +33 -0
  781. package/govendor/golang.org/x/sys/cpu/cpu_riscv64.s +17 -0
  782. package/govendor/golang.org/x/sys/cpu/cpu_s390x.go +172 -0
  783. package/govendor/golang.org/x/sys/cpu/cpu_s390x.s +57 -0
  784. package/govendor/golang.org/x/sys/cpu/cpu_sparc64.go +12 -0
  785. package/govendor/golang.org/x/sys/cpu/cpu_wasm.go +17 -0
  786. package/govendor/golang.org/x/sys/cpu/cpu_windows.go +26 -0
  787. package/govendor/golang.org/x/sys/cpu/cpu_windows_arm64.go +38 -0
  788. package/govendor/golang.org/x/sys/cpu/cpu_x86.go +259 -0
  789. package/govendor/golang.org/x/sys/cpu/cpu_zos.go +10 -0
  790. package/govendor/golang.org/x/sys/cpu/cpu_zos_s390x.go +25 -0
  791. package/govendor/golang.org/x/sys/cpu/endian_big.go +10 -0
  792. package/govendor/golang.org/x/sys/cpu/endian_little.go +10 -0
  793. package/govendor/golang.org/x/sys/cpu/hwcap_linux.go +71 -0
  794. package/govendor/golang.org/x/sys/cpu/parse.go +55 -0
  795. package/govendor/golang.org/x/sys/cpu/proc_cpuinfo_linux.go +53 -0
  796. package/govendor/golang.org/x/sys/cpu/runtime_auxv.go +16 -0
  797. package/govendor/golang.org/x/sys/cpu/runtime_auxv_go121.go +18 -0
  798. package/govendor/golang.org/x/sys/cpu/syscall_aix_gccgo.go +26 -0
  799. package/govendor/golang.org/x/sys/cpu/syscall_aix_ppc64_gc.go +35 -0
  800. package/govendor/golang.org/x/sys/cpu/syscall_darwin_arm64_gc.go +54 -0
  801. package/govendor/golang.org/x/sys/cpu/syscall_darwin_x86_gc.go +98 -0
  802. package/govendor/golang.org/x/sys/cpu/zcpu_windows.go +48 -0
  803. package/govendor/golang.org/x/sys/unix/asm_linux_ppc64x.s +20 -0
  804. package/govendor/golang.org/x/sys/unix/asm_linux_sparc64.s +48 -0
  805. package/govendor/golang.org/x/sys/unix/asm_zos_s390x.s +4 -186
  806. package/govendor/golang.org/x/sys/unix/bpxsvc_zos.s +9 -9
  807. package/govendor/golang.org/x/sys/unix/fcntl_darwin.go +2 -2
  808. package/govendor/golang.org/x/sys/unix/mkerrors.sh +1 -1
  809. package/govendor/golang.org/x/sys/unix/ptrace_zos.go +537 -0
  810. package/govendor/golang.org/x/sys/unix/ptrace_zos_singlestep.go +425 -0
  811. package/govendor/golang.org/x/sys/unix/syscall_darwin.go +1 -0
  812. package/govendor/golang.org/x/sys/unix/syscall_freebsd.go +9 -0
  813. package/govendor/golang.org/x/sys/unix/syscall_linux.go +20 -1
  814. package/govendor/golang.org/x/sys/unix/syscall_linux_sparc64.go +3 -3
  815. package/govendor/golang.org/x/sys/unix/syscall_netbsd.go +9 -0
  816. package/govendor/golang.org/x/sys/unix/syscall_unix_gc.go +1 -1
  817. package/govendor/golang.org/x/sys/unix/syscall_zos_s390x.go +0 -4
  818. package/govendor/golang.org/x/sys/unix/xattr_bsd.go +12 -12
  819. package/govendor/golang.org/x/sys/unix/zerrors_darwin_amd64.go +6 -0
  820. package/govendor/golang.org/x/sys/unix/zerrors_darwin_arm64.go +6 -0
  821. package/govendor/golang.org/x/sys/unix/zerrors_linux.go +32 -0
  822. package/govendor/golang.org/x/sys/unix/zerrors_linux_386.go +2 -0
  823. package/govendor/golang.org/x/sys/unix/zerrors_linux_amd64.go +2 -0
  824. package/govendor/golang.org/x/sys/unix/zerrors_linux_arm.go +2 -0
  825. package/govendor/golang.org/x/sys/unix/zerrors_linux_arm64.go +2 -0
  826. package/govendor/golang.org/x/sys/unix/zerrors_linux_loong64.go +2 -0
  827. package/govendor/golang.org/x/sys/unix/zerrors_linux_mips.go +2 -0
  828. package/govendor/golang.org/x/sys/unix/zerrors_linux_mips64.go +2 -0
  829. package/govendor/golang.org/x/sys/unix/zerrors_linux_mips64le.go +2 -0
  830. package/govendor/golang.org/x/sys/unix/zerrors_linux_mipsle.go +2 -0
  831. package/govendor/golang.org/x/sys/unix/zerrors_linux_ppc.go +2 -0
  832. package/govendor/golang.org/x/sys/unix/zerrors_linux_ppc64.go +2 -0
  833. package/govendor/golang.org/x/sys/unix/zerrors_linux_ppc64le.go +2 -0
  834. package/govendor/golang.org/x/sys/unix/zerrors_linux_riscv64.go +2 -0
  835. package/govendor/golang.org/x/sys/unix/zerrors_linux_s390x.go +2 -0
  836. package/govendor/golang.org/x/sys/unix/zerrors_linux_sparc64.go +2 -0
  837. package/govendor/golang.org/x/sys/unix/zsyscall_darwin_amd64.go +11 -0
  838. package/govendor/golang.org/x/sys/unix/zsyscall_darwin_arm64.go +11 -0
  839. package/govendor/golang.org/x/sys/unix/zsyscall_freebsd_386.go +159 -0
  840. package/govendor/golang.org/x/sys/unix/zsyscall_freebsd_amd64.go +159 -0
  841. package/govendor/golang.org/x/sys/unix/zsyscall_freebsd_arm.go +159 -0
  842. package/govendor/golang.org/x/sys/unix/zsyscall_freebsd_arm64.go +159 -0
  843. package/govendor/golang.org/x/sys/unix/zsyscall_freebsd_riscv64.go +159 -0
  844. package/govendor/golang.org/x/sys/unix/zsyscall_linux.go +28 -1
  845. package/govendor/golang.org/x/sys/unix/zsyscall_linux_sparc64.go +3 -3
  846. package/govendor/golang.org/x/sys/unix/zsyscall_netbsd_386.go +159 -0
  847. package/govendor/golang.org/x/sys/unix/zsyscall_netbsd_amd64.go +159 -0
  848. package/govendor/golang.org/x/sys/unix/zsyscall_netbsd_arm.go +159 -0
  849. package/govendor/golang.org/x/sys/unix/zsyscall_netbsd_arm64.go +159 -0
  850. package/govendor/golang.org/x/sys/unix/zsysnum_zos_s390x.go +13 -0
  851. package/govendor/golang.org/x/sys/unix/ztypes_linux.go +65 -36
  852. package/govendor/golang.org/x/sys/unix/ztypes_linux_386.go +6 -0
  853. package/govendor/golang.org/x/sys/unix/ztypes_linux_amd64.go +7 -0
  854. package/govendor/golang.org/x/sys/unix/ztypes_linux_arm.go +6 -0
  855. package/govendor/golang.org/x/sys/unix/ztypes_linux_arm64.go +7 -0
  856. package/govendor/golang.org/x/sys/unix/ztypes_linux_loong64.go +7 -0
  857. package/govendor/golang.org/x/sys/unix/ztypes_linux_mips.go +6 -0
  858. package/govendor/golang.org/x/sys/unix/ztypes_linux_mips64.go +7 -0
  859. package/govendor/golang.org/x/sys/unix/ztypes_linux_mips64le.go +7 -0
  860. package/govendor/golang.org/x/sys/unix/ztypes_linux_mipsle.go +6 -0
  861. package/govendor/golang.org/x/sys/unix/ztypes_linux_ppc.go +6 -0
  862. package/govendor/golang.org/x/sys/unix/ztypes_linux_ppc64.go +7 -0
  863. package/govendor/golang.org/x/sys/unix/ztypes_linux_ppc64le.go +7 -0
  864. package/govendor/golang.org/x/sys/unix/ztypes_linux_riscv64.go +7 -0
  865. package/govendor/golang.org/x/sys/unix/ztypes_linux_s390x.go +7 -0
  866. package/govendor/golang.org/x/sys/unix/ztypes_linux_sparc64.go +10 -5
  867. package/govendor/golang.org/x/sys/unix/ztypes_zos_s390x.go +78 -0
  868. package/govendor/golang.org/x/text/.gitattributes +10 -0
  869. package/govendor/golang.org/x/text/CONTRIBUTING.md +26 -0
  870. package/govendor/golang.org/x/text/LICENSE +27 -0
  871. package/govendor/golang.org/x/text/PATENTS +22 -0
  872. package/govendor/golang.org/x/text/README.md +81 -0
  873. package/govendor/golang.org/x/text/cases/cases.go +162 -0
  874. package/govendor/golang.org/x/text/cases/context.go +376 -0
  875. package/govendor/golang.org/x/text/cases/fold.go +34 -0
  876. package/govendor/golang.org/x/text/cases/icu.go +61 -0
  877. package/govendor/golang.org/x/text/cases/info.go +82 -0
  878. package/govendor/golang.org/x/text/cases/map.go +816 -0
  879. package/govendor/golang.org/x/text/cases/tables15.0.0.go +2527 -0
  880. package/govendor/golang.org/x/text/cases/tables17.0.0.go +2642 -0
  881. package/govendor/golang.org/x/text/cases/trieval.go +217 -0
  882. package/govendor/golang.org/x/text/codereview.cfg +1 -0
  883. package/govendor/golang.org/x/text/collate/collate.go +402 -0
  884. package/govendor/golang.org/x/text/collate/index.go +32 -0
  885. package/govendor/golang.org/x/text/collate/option.go +239 -0
  886. package/govendor/golang.org/x/text/collate/sort.go +81 -0
  887. package/govendor/golang.org/x/text/collate/tables.go +73789 -0
  888. package/govendor/golang.org/x/text/currency/common.go +67 -0
  889. package/govendor/golang.org/x/text/currency/currency.go +185 -0
  890. package/govendor/golang.org/x/text/currency/format.go +220 -0
  891. package/govendor/golang.org/x/text/currency/query.go +152 -0
  892. package/govendor/golang.org/x/text/currency/tables.go +2629 -0
  893. package/govendor/golang.org/x/text/doc.go +16 -0
  894. package/govendor/golang.org/x/text/feature/plural/common.go +70 -0
  895. package/govendor/golang.org/x/text/feature/plural/message.go +244 -0
  896. package/govendor/golang.org/x/text/feature/plural/plural.go +262 -0
  897. package/govendor/golang.org/x/text/feature/plural/tables.go +552 -0
  898. package/govendor/golang.org/x/text/go.mod +3 -0
  899. package/govendor/golang.org/x/text/internal/catmsg/catmsg.go +417 -0
  900. package/govendor/golang.org/x/text/internal/catmsg/codec.go +407 -0
  901. package/govendor/golang.org/x/text/internal/catmsg/varint.go +62 -0
  902. package/govendor/golang.org/x/text/internal/colltab/collelem.go +374 -0
  903. package/govendor/golang.org/x/text/internal/colltab/colltab.go +105 -0
  904. package/govendor/golang.org/x/text/internal/colltab/contract.go +145 -0
  905. package/govendor/golang.org/x/text/internal/colltab/iter.go +178 -0
  906. package/govendor/golang.org/x/text/internal/colltab/numeric.go +236 -0
  907. package/govendor/golang.org/x/text/internal/colltab/table.go +275 -0
  908. package/govendor/golang.org/x/text/internal/colltab/trie.go +159 -0
  909. package/govendor/golang.org/x/text/internal/colltab/weighter.go +31 -0
  910. package/govendor/golang.org/x/text/internal/format/format.go +41 -0
  911. package/govendor/golang.org/x/text/internal/format/parser.go +358 -0
  912. package/govendor/golang.org/x/text/internal/internal.go +49 -0
  913. package/govendor/golang.org/x/text/internal/language/common.go +16 -0
  914. package/govendor/golang.org/x/text/internal/language/compact/compact.go +61 -0
  915. package/govendor/golang.org/x/text/internal/language/compact/language.go +260 -0
  916. package/govendor/golang.org/x/text/internal/language/compact/parents.go +120 -0
  917. package/govendor/golang.org/x/text/internal/language/compact/tables.go +1015 -0
  918. package/govendor/golang.org/x/text/internal/language/compact/tags.go +91 -0
  919. package/govendor/golang.org/x/text/internal/language/compact.go +29 -0
  920. package/govendor/golang.org/x/text/internal/language/compose.go +167 -0
  921. package/govendor/golang.org/x/text/internal/language/coverage.go +28 -0
  922. package/govendor/golang.org/x/text/internal/language/language.go +627 -0
  923. package/govendor/golang.org/x/text/internal/language/lookup.go +412 -0
  924. package/govendor/golang.org/x/text/internal/language/match.go +226 -0
  925. package/govendor/golang.org/x/text/internal/language/parse.go +608 -0
  926. package/govendor/golang.org/x/text/internal/language/tables.go +3494 -0
  927. package/govendor/golang.org/x/text/internal/language/tags.go +48 -0
  928. package/govendor/golang.org/x/text/internal/match.go +67 -0
  929. package/govendor/golang.org/x/text/internal/number/common.go +55 -0
  930. package/govendor/golang.org/x/text/internal/number/decimal.go +500 -0
  931. package/govendor/golang.org/x/text/internal/number/format.go +533 -0
  932. package/govendor/golang.org/x/text/internal/number/number.go +152 -0
  933. package/govendor/golang.org/x/text/internal/number/pattern.go +485 -0
  934. package/govendor/golang.org/x/text/internal/number/roundingmode_string.go +30 -0
  935. package/govendor/golang.org/x/text/internal/number/tables.go +1219 -0
  936. package/govendor/golang.org/x/text/internal/stringset/set.go +86 -0
  937. package/govendor/golang.org/x/text/internal/tag/tag.go +100 -0
  938. package/govendor/golang.org/x/text/language/coverage.go +187 -0
  939. package/govendor/golang.org/x/text/language/display/dict.go +92 -0
  940. package/govendor/golang.org/x/text/language/display/display.go +420 -0
  941. package/govendor/golang.org/x/text/language/display/lookup.go +253 -0
  942. package/govendor/golang.org/x/text/language/display/tables.go +53114 -0
  943. package/govendor/golang.org/x/text/language/doc.go +98 -0
  944. package/govendor/golang.org/x/text/language/language.go +605 -0
  945. package/govendor/golang.org/x/text/language/match.go +735 -0
  946. package/govendor/golang.org/x/text/language/parse.go +258 -0
  947. package/govendor/golang.org/x/text/language/tables.go +298 -0
  948. package/govendor/golang.org/x/text/language/tags.go +145 -0
  949. package/govendor/golang.org/x/text/message/catalog/catalog.go +365 -0
  950. package/govendor/golang.org/x/text/message/catalog/dict.go +133 -0
  951. package/govendor/golang.org/x/text/secure/bidirule/bidirule.go +346 -0
  952. package/govendor/golang.org/x/text/transform/transform.go +709 -0
  953. package/govendor/golang.org/x/text/unicode/bidi/bidi.go +359 -0
  954. package/govendor/golang.org/x/text/unicode/bidi/bracket.go +335 -0
  955. package/govendor/golang.org/x/text/unicode/bidi/core.go +1050 -0
  956. package/govendor/golang.org/x/text/unicode/bidi/prop.go +206 -0
  957. package/govendor/golang.org/x/text/unicode/bidi/tables15.0.0.go +2042 -0
  958. package/govendor/golang.org/x/text/unicode/bidi/tables17.0.0.go +2135 -0
  959. package/govendor/golang.org/x/text/unicode/bidi/trieval.go +48 -0
  960. package/govendor/golang.org/x/text/unicode/norm/composition.go +524 -0
  961. package/govendor/golang.org/x/text/unicode/norm/forminfo.go +296 -0
  962. package/govendor/golang.org/x/text/unicode/norm/input.go +109 -0
  963. package/govendor/golang.org/x/text/unicode/norm/iter.go +454 -0
  964. package/govendor/golang.org/x/text/unicode/norm/normalize.go +613 -0
  965. package/govendor/golang.org/x/text/unicode/norm/readwriter.go +125 -0
  966. package/govendor/golang.org/x/text/unicode/norm/tables15.0.0.go +7907 -0
  967. package/govendor/golang.org/x/text/unicode/norm/tables17.0.0.go +8104 -0
  968. package/govendor/golang.org/x/text/unicode/norm/transform.go +89 -0
  969. package/govendor/golang.org/x/text/unicode/norm/trie.go +54 -0
  970. package/govendor/manifest.txt +11 -2
  971. package/package.json +2 -1
  972. package/performance/README.md +87 -35
  973. package/performance/arr-for-of.ts +29 -0
  974. package/performance/arr-push-local.ts +39 -0
  975. package/performance/arr-slice-concat.ts +24 -0
  976. package/performance/async-promise-all.ts +38 -0
  977. package/performance/bigint-arith.ts +36 -0
  978. package/performance/buf-encode.ts +29 -0
  979. package/performance/class-accessors.ts +48 -0
  980. package/performance/date-format.ts +18 -0
  981. package/performance/fn-rest-spread.ts +43 -0
  982. package/performance/gen-next.ts +32 -0
  983. package/performance/iter-helpers.ts +38 -0
  984. package/performance/json-any.ts +30 -0
  985. package/performance/map-iterate.ts +26 -0
  986. package/performance/map-number-keys.ts +37 -0
  987. package/performance/num-hash-imul.ts +36 -0
  988. package/performance/obj-keys-entries.ts +44 -0
  989. package/performance/obj-optional-chain.ts +42 -0
  990. package/performance/obj-record-dict.ts +24 -0
  991. package/performance/obj-spread-destructure.ts +40 -0
  992. package/performance/regex-replace-fn.ts +24 -0
  993. package/performance/str-methods.ts +24 -0
  994. package/performance/str-switch-compare.ts +50 -0
  995. package/performance/str-unicode.ts +25 -0
  996. package/performance/typed-array.ts +30 -0
  997. package/performance/union-typeof.ts +40 -0
  998. package/performance/wasm-call.ts +63 -0
  999. package/types/typenative-npm.d.ts +836 -69
  1000. package/types/typenative.d.ts +1224 -23
  1001. package/govendor/golang.org/x/sys/unix/syscall_unix_gc_ppc64x.go +0 -22
  1002. package/govendor/golang.org/x/sys/windows/types_windows_arm.go +0 -35
package/conformance.md CHANGED
@@ -14,9 +14,8 @@ self-hosted binary). The same run also type-checks and builds every program in
14
14
  | 🚫 | Will not be implemented: needs something a native Go binary doesn't have (a JavaScript engine, mutable prototypes, shared memory between isolates, cgo), or is deprecated upstream |
15
15
 
16
16
  User programs are type-checked against [types/](types/) only (`lib: []`), so an API that isn't
17
- declared there fails the type check before it reaches the transpiler. The
18
- [roadmap](#roadmap-known-limitations) lists the structural limitations and the order in which the
19
- ❌ rows are planned.
17
+ declared there fails the type check before it reaches the transpiler.
18
+ [Known limitations](#known-limitations-) lists the structural limits behind the 🚫 rows.
20
19
 
21
20
  ## Basic types
22
21
 
@@ -33,7 +32,7 @@ declared there fails the type check before it reaches the transpiler. The
33
32
  | `bigint` | ✅ | [syntax-bigint.ts](conformance/syntax-bigint.ts) | `2n` literals → `*big.Int`; `**` → `.Exp`, comparisons via `.Cmp` |
34
33
  | `bigint` bitwise / shift operators (`&`, `\|`, `^`, `~`, `<<`, `>>`, compound forms) | ✅ | [syntax-bigint-bitwise.ts](conformance/syntax-bigint-bitwise.ts) | `math/big`'s two's-complement `And` / `Or` / `Xor` / `Not`; shifts round toward -Infinity |
35
34
  | `BigInt()`, `BigInt.asIntN` / `asUintN` | ✅ | [lib-builtins-statics.ts](conformance/lib-builtins-statics.ts) | Integers, numeric strings and booleans; a fraction throws a `RangeError`, a bad string a `SyntaxError` |
36
- | bigint–number loose comparisons (`5n == 5`) | ❌ | — | `false` (no cross-type coercion) |
35
+ | bigint–number loose comparisons (`5n == 5`) | ✅ | [semantics-bigint-loose-ops.ts](conformance/semantics-bigint-loose-ops.ts) | `==` compares values (also with an integer string or a boolean); `===` is `false` — different types; the relational operators compare exactly (NaN is never ordered). A static `5n == 5` is a TS2367 type error, as in tsc — these go through dynamic (any) values |
37
36
  | `symbol` | ✅ | [syntax-symbols.ts](conformance/syntax-symbols.ts) | `Symbol()` → unique `*TnSymbol` pointers, usable as record keys |
38
37
  | `object` type | ✅ | [syntax-object-type.ts](conformance/syntax-object-type.ts) | `object` → `interface{}` |
39
38
  | `void` / `never` | ✅ | [syntax-void-never.ts](conformance/syntax-void-never.ts) | No return value in Go |
@@ -47,7 +46,7 @@ declared there fails the type check before it reaches the transpiler. The
47
46
  | Object destructuring | ✅ | [syntax-destructuring.ts](conformance/syntax-destructuring.ts) | Parenthesized initializers; elision and element/property reads; the initializer is evaluated once ([lib-node-worker-threads.ts](conformance/lib-node-worker-threads.ts)) |
48
47
  | Destructuring with defaults | ✅ | [syntax-destructuring-defaults.ts](conformance/syntax-destructuring-defaults.ts) | Missing elements/properties take defaults (nil- and bounds-checked) |
49
48
  | Array destructuring with a rest element (`const [a, ...rest] = arr`) | ✅ | [syntax-destructuring-rest.ts](conformance/syntax-destructuring-rest.ts) | `rest` is a copy of the remaining elements, empty past the end |
50
- | Array destructuring past the end without a default (`const [a] = []` gives `undefined`) | ❌ | — | The binding gets the element type's zero value (`''`, `0`) instead; give it a default |
49
+ | Array destructuring past the end without a default (`const [a] = []` gives `undefined`) | ✅ | [semantics-destructure-past-end.ts](conformance/semantics-destructure-past-end.ts) | The binding is `undefined`; a default fills a missing element |
51
50
  | Destructured parameters | ✅ | [syntax-destructuring-params.ts](conformance/syntax-destructuring-params.ts) | `function f({ a, b }: T)`, `([x, y]: number[])` |
52
51
  | Destructured callback parameters (`([k, v]) => …`, `({ a }) => …`), `[...map]`, `map.entries()`, `{ ...record, k: v }` | ✅ | [syntax-callback-destructuring.ts](conformance/syntax-callback-destructuring.ts) | Without annotations, in `map` / `filter` / `some` & co. over tuples, Map pairs and `Object.entries`; elements of mixed tuples are dynamic |
53
52
  | Object shorthand | ✅ | [lib-go-container-heap.ts](conformance/lib-go-container-heap.ts) | `{ name, priority }` takes the fields from same-named variables |
@@ -56,7 +55,7 @@ declared there fails the type check before it reaches the transpiler. The
56
55
  | `delete` operator | ✅ | [syntax-delete.ts](conformance/syntax-delete.ts) | `delete o.key` on records |
57
56
  | Computed keys | ✅ | [syntax-computed-keys.ts](conformance/syntax-computed-keys.ts) | Computed keys become map entries; `o.name` reads lower to `.Get("name")` |
58
57
  | Records / dictionaries | ✅ | [syntax-in-operator.ts](conformance/syntax-in-operator.ts) | `Record<K, V>` and objects indexed by key → Go maps; so are literals with keys that aren't identifiers (`{ 'Content-Type': … }`, [lib-node-http-server.ts](conformance/lib-node-http-server.ts)) |
59
- | Reading a missing key of a `Record` / `Map` of primitives (`rec[k] === undefined`) | ❌ | — | Gives the value type's zero value (`""`, `0`), so the comparison is `false`; test with `k in rec` / `map.has(k)` |
58
+ | Reading a missing key of a `Record` / `Map` of primitives (`rec[k] === undefined`) | ✅ | [semantics-record-missing-key.ts](conformance/semantics-record-missing-key.ts) | A missing key reads `undefined`, so the comparison is the key's presence (comma-ok); `k in rec` / `map.has(k)` unchanged |
60
59
  | Tuples | ✅ | [syntax-tuples.ts](conformance/syntax-tuples.ts) | `[string, number]` fixed-length arrays |
61
60
  | Top-level / module-scope variables | ✅ | [syntax-top-level-scope.ts](conformance/syntax-top-level-scope.ts) | Functions see main-file top-level variables |
62
61
  | Names that are Go keywords, builtins or types (`string`, `len`, `range`) as variables, parameters and members | ✅ | [syntax-go-reserved-names.ts](conformance/syntax-go-reserved-names.ts) | Variables and parameters are renamed; members keep their name (keywords get a trailing `_`) |
@@ -98,7 +97,7 @@ declared there fails the type check before it reaches the transpiler. The
98
97
  | `instanceof Map` / `Set` / `Date` / `Array`, subclass instances | ✅ | [syntax-instanceof-builtins.ts](conformance/syntax-instanceof-builtins.ts) | Maps and Sets made by `new Map()` / `new Set()` are tagged (records are not Maps); arrays exclude Buffers; `instanceof Parent` holds for subclass instances |
99
98
  | `#x in obj` (private brand checks) | ✅ | [syntax-instanceof-builtins.ts](conformance/syntax-instanceof-builtins.ts) | An instance of the class declaring `#x`, or of a subclass |
100
99
  | Optional calls on `any` values (`o?.m()`, `a?.b.c?.get(k)`) | ✅ | [syntax-optional-call-any.ts](conformance/syntax-optional-call-any.ts) | Nothing is called when the receiver is nullish; the result can initialize a typed variable |
101
- | `x?.m()` on an `any` value when `m` has a known primitive result (`s?.toUpperCase()`) | ❌ | — | A nullish `x` gives the type's zero value (`''`, `0`) instead of `undefined`, so `?? fallback` does not apply |
100
+ | `x?.m()` on an `any` value when `m` has a known primitive result (`s?.toUpperCase()`) | ✅ | [semantics-optional-any-call.ts](conformance/semantics-optional-any-call.ts) | A nullish `x` gives `undefined` (so `?? fallback` applies and `=== undefined` holds); a set receiver calls through |
102
101
  | Assignment as an expression (`while ((m = re.exec(s)))`, `a = b = c`, `x = (o[k] ??= v)`) | ✅ | [syntax-assignment-expressions.ts](conformance/syntax-assignment-expressions.ts) | Assigns, then reads the target back; `??=` on a map element tests for a missing key |
103
102
 
104
103
  ## Control flow
@@ -125,8 +124,8 @@ declared there fails the type check before it reaches the transpiler. The
125
124
  | Narrowing | ✅ | [syntax-typeof.ts](conformance/syntax-typeof.ts) | `T \| undefined` narrowed after `if (x)`, `x !== undefined`, early returns |
126
125
  | Exhaustive `switch` without `default`; statements after a `switch` | ✅ | [syntax-switch-exhaustive.ts](conformance/syntax-switch-exhaustive.ts) | A function that can end without a `return` returns its result type's zero value (JS: `undefined`) |
127
126
  | Labeled blocks and statements (`label: { … break label; }`) | ✅ | [syntax-labeled-blocks.ts](conformance/syntax-labeled-blocks.ts) | `break label` jumps past the statement (`goto`) |
128
- | Throwing non-`Error` values (`throw 'x'`, `throw { code: 1 }`) | ✅ | — | Caught as `interface{}`; properties read dynamically |
129
- | `debugger` | ✅ | — | Erased |
127
+ | Throwing non-`Error` values (`throw 'x'`, `throw { code: 1 }`) | ✅ | [semantics-throw-non-error.ts](conformance/semantics-throw-non-error.ts) | Caught as `interface{}`; properties read dynamically |
128
+ | `debugger` | ✅ | [syntax-debugger.ts](conformance/syntax-debugger.ts) | Erased |
130
129
  | `with` | 🚫 | — | Not allowed in strict mode (modules are strict) |
131
130
  | Assignments and compound assignments as values, comma expressions, `for (let x; …)` headers, several updates per iteration | ✅ | [syntax-loop-lowerings.ts](conformance/syntax-loop-lowerings.ts) | `(ch = s[i += 1])` in a condition, `a = b = 7`, `(k++, k * 10)`; Go-only statements are lowered to closures |
132
131
  | `continue` in `do…while`; `default` falling through to later cases; labeled `break` out of a `switch` | ✅ | [syntax-loop-lowerings.ts](conformance/syntax-loop-lowerings.ts) | `continue` re-tests the condition |
@@ -156,9 +155,9 @@ declared there fails the type check before it reaches the transpiler. The
156
155
  | Function overloads | ✅ | [syntax-function-overloads.ts](conformance/syntax-function-overloads.ts) | Signatures are erased; the implementation is emitted |
157
156
  | `this` parameter (`function f(this: T)`) | ✅ | [syntax-this-parameter.ts](conformance/syntax-this-parameter.ts) | Erased |
158
157
  | `arguments` object | ✅ | [syntax-arguments.ts](conformance/syntax-arguments.ts) | Functions reading it take extra arguments variadically (`[]interface{}`) |
159
- | Top-level `await` | ✅ | — | In modules (files with an `import` / `export`) |
158
+ | Top-level `await` | ✅ | [syntax-top-level-await.ts](conformance/syntax-top-level-await.ts) | In modules (files with an `import` / `export`) |
160
159
  | Generator `next()` | ✅ | [lib-iterator-helpers.ts](conformance/lib-iterator-helpers.ts) | `{ value, done }` |
161
- | Generator `next(value)` (sending a value in) / `return()` / `throw()` | ❌ | — | Generators are goroutines feeding a channel: values only flow out |
160
+ | Generator `next(value)` (sending a value in) / `return()` / `throw()` | ❌ | — | Generators are goroutines feeding a channel: values only flow out (capturing a yield's value, or `next(value)` / `return()` / `throw()`, isn't supported yet) |
162
161
  | `fn.call` / `fn.apply` / `fn.bind` | ✅ | [syntax-function-values.ts](conformance/syntax-function-values.ts) | Function declarations and function values; `apply` spreads the array over the parameters; `thisArg` is ignored (methods taken from an object are already bound in Go) |
163
162
  | `fn.name` / `fn.length` | ✅ | [syntax-function-values.ts](conformance/syntax-function-values.ts) | Known at compile time for declared functions, classes and function variables |
164
163
  | `eval` / `new Function(…)` | 🚫 | — | Compile and run JavaScript at runtime: needs a JavaScript engine |
@@ -169,7 +168,7 @@ declared there fails the type check before it reaches the transpiler. The
169
168
  | Function values: a static method in a variable, static and instance methods of one name, a variadic function expression where fixed parameters are expected, a `.catch` handler, an async IIFE, method identity | ✅ | [syntax-function-values-more.ts](conformance/syntax-function-values-more.ts) | `a.m === A.prototype.m` compares the methods |
170
169
  | `f.apply(thisArg, args)` / `f.call` on a function held as `any` or under another name (`const f: any = fn`) | ✅ | [syntax-nullable-primitive-fields.ts](conformance/syntax-nullable-primitive-fields.ts) | `thisArg` is dropped |
171
170
  | Functions with array parameters stored where a function type is expected (`Record<string, (xs: any[]) => R>`): declared functions, arrows, function expressions | ✅ | [syntax-function-values-more.ts](conformance/syntax-function-values-more.ts) | A function type's arrays are plain slices: a declared function is adapted |
172
- | An array passed through a function-typed value (a callback slot) is shared with the callee | ❌ | — | The callee gets a copy: its `push` doesn't reach the caller's array (a direct call shares it) |
171
+ | An array passed through a function-typed value (a callback slot) is shared with the callee | ❌ | — | The callee gets a copy: its `push` doesn't reach the caller's array (a direct call shares it; assigning the function to a slot compiles — an adapter passes the array's address — but the copy remains) |
173
172
  | A string method on an `any` value whose name an object literal's function also has (`spec.startsWith('.')`) | ✅ | [syntax-function-values-more.ts](conformance/syntax-function-values-more.ts) | A string runs the string method, any other value its own function |
174
173
 
175
174
  ## Classes & interfaces
@@ -196,15 +195,15 @@ declared there fails the type check before it reaches the transpiler. The
196
195
  | Index signatures (`[key: string]: T`) | ✅ | [syntax-index-signatures.ts](conformance/syntax-index-signatures.ts) | `{ [k: K]: V }` is `Record<K, V>` (an ordered Go map) |
197
196
  | Methods without a return-type annotation | ✅ | [syntax-method-return-inference.ts](conformance/syntax-method-return-inference.ts) | Inferred from the returns, as for functions (also returns nested in `if` / loops / `switch` / `try`); an inherited `return this` returns the subclass |
198
197
  | Field initializers reading parameter properties or parent fields | ✅ | [syntax-class-field-order.ts](conformance/syntax-class-field-order.ts) | `super()`, then parameter properties, then field initializers, then the constructor body (TS's ES2020 order) |
199
- | Arrow-function fields (`h = () => this.x`), fields reading earlier fields | ✅ | — | Run in the constructor; `this` is the instance |
198
+ | Arrow-function fields (`h = () => this.x`), fields reading earlier fields | ✅ | [syntax-class-arrow-fields.ts](conformance/syntax-class-arrow-fields.ts) | Run in the constructor; `this` is the instance (a field inherited by a subclass keeps the base instance, so it does not see writes the subclass makes afterwards) |
200
199
  | Private methods (`#m()`) | ✅ | [syntax-method-return-inference.ts](conformance/syntax-method-return-inference.ts) | |
201
200
  | A private and a public member with the same name (`#x` and `x`) | ✅ | [syntax-private-public-names.ts](conformance/syntax-private-public-names.ts) | `#x` is the Go field `__x` |
202
201
  | Private accessors (`get #x()`) / static private fields (`static #x`) | ✅ | [syntax-class-accessor-inheritance.ts](conformance/syntax-class-accessor-inheritance.ts), [syntax-class-static-inheritance.ts](conformance/syntax-class-static-inheritance.ts) | |
203
- | `accessor` fields | ✅ | — | Plain fields (decorating them is not supported) |
202
+ | `accessor` fields | ✅ | [syntax-class-accessor-fields.ts](conformance/syntax-class-accessor-fields.ts) | Plain fields (decorating them is not supported) |
204
203
  | Static inheritance (`Child.staticOfParent()`) | ✅ | [syntax-class-static-inheritance.ts](conformance/syntax-class-static-inheritance.ts) | Resolved to the declaring class's `Parent_member` at compile time |
205
204
  | Inherited getters / setters, `super.x` on accessors | ✅ | [syntax-class-accessor-inheritance.ts](conformance/syntax-class-accessor-inheritance.ts) | Accessors are copied onto subclasses like methods |
206
205
  | Object-literal setters (`set x(v) {}`) | ✅ | [syntax-object-setters.ts](conformance/syntax-object-setters.ts) | A `Set_x` closure field: `o.x = v` calls it |
207
- | Mixins (class factories, `return class extends Base {}`, `class extends f()`) | ❌ | — | `Unsupported syntax: ClassExpression` outside `const C = class {}` |
206
+ | Mixin class factories (`(superClass: typeof Base) => class extends superClass {…}`, arrow / function expression / function declaration) and a function returning a subclass of a known class | ✅ | [syntax-mixins.ts](conformance/syntax-mixins.ts) | The class becomes a top-level class; the factory makes its class over the argument (`TnMixinClass`). Not supported: a generic constraint (`<T extends new (…) => any>`) and `class extends f()` — only `typeof Base` establishes the base |
208
207
  | Polymorphic `this` return types (fluent chains) | ✅ | [syntax-polymorphic-this.ts](conformance/syntax-polymorphic-this.ts) | `this` is the class; methods inherited by a subclass return the subclass |
209
208
  | Dynamic keys on class instances and typed objects (`inst[key]`) | ✅ | [syntax-instance-keys.ts](conformance/syntax-instance-keys.ts) | A `switch` over the declared fields and getters (reads and writes); through `any`, reflection |
210
209
  | Declaration merging (interface + interface, enum + enum, class + interface) | ✅ | [syntax-declaration-merging.ts](conformance/syntax-declaration-merging.ts) | Merged within one scope; an interface adds its properties to a same-named class as fields; namespace + function merging works too |
@@ -270,7 +269,7 @@ declared there fails the type check before it reaches the transpiler. The
270
269
  | JSX / `.tsx` syntax | ✅ | [syntax-jsx.tsx](conformance/syntax-jsx.tsx) | Renders to HTML strings (text escaped); components are calls with props |
271
270
  | Ambient declarations (`declare`, `.d.ts`, `x!: T`) | ✅ | [syntax-ambient-declarations.ts](conformance/syntax-ambient-declarations.ts) | `declare` only types code; `declare const` is an unset variable |
272
271
  | `export =` / `import x = require()` | ✅ | [syntax-export-equals.ts](conformance/syntax-export-equals.ts) | `import x = require()` is a namespace import |
273
- | Recursive types (`type Tree = { children: Tree[] }`) | ✅ | — | Self-referencing structs |
272
+ | Recursive types (`type Tree = { children: Tree[] }`) | ✅ | [syntax-recursive-types.ts](conformance/syntax-recursive-types.ts) | Self-referencing structs |
274
273
  | `typeof` / `instanceof` narrowing of `unknown` values (`string`, `number`, `boolean`, `Date`, arrays, functions, objects) | ✅ | [syntax-typeof-narrowing.ts](conformance/syntax-typeof-narrowing.ts) | Inside the branch the value has the narrowed Go type and its methods |
275
274
  | Forced casts (`x as unknown as T[]`) where the value is not a `T[]` | ✅ | [syntax-forced-cast.ts](conformance/syntax-forced-cast.ts) | The value stays what it is; a method returning one returns any value |
276
275
  | `typeof f` of a declared function as a type | ✅ | [syntax-typeof-function-type.ts](conformance/syntax-typeof-function-type.ts) | Its Go func type: values of it (record fields, destructured parameters) are called directly |
@@ -319,7 +318,7 @@ declared there fails the type check before it reaches the transpiler. The
319
318
  | Async class methods (instance, static, inherited, unannotated); `return otherPromise()` | ✅ | [syntax-async-methods.ts](conformance/syntax-async-methods.ts) | Lowered like async functions; a returned promise is awaited |
320
319
  | `Promise.withResolvers` / `Promise.try` | ✅ | [lib-promise-extras.ts](conformance/lib-promise-extras.ts) | |
321
320
  | Async arrows kept as values (`const f = async () => …`) | ✅ | [lib-promise-extras.ts](conformance/lib-promise-extras.ts) | Return a promise like async functions (concise bodies too); async arrows passed straight to a call run inline (see above) |
322
- | `.then` on a `Promise.resolve(v)` held in a variable | ❌ | — | Go build error (`chan T` has no `then`); `await` it, or build it with `new Promise` |
321
+ | `.then` on a `Promise.resolve(v)` held in a variable | ❌ | — | Compiles now (a goroutine waits on the channel and runs the callback); but `await p` consumes the value, so a `.then` registered before it never fires — one consumer per channel. Skip the `await`, or build it with `new Promise` |
323
322
  | Microtask order: `await` inside an async function nobody awaits; `.then` callbacks before a later `setTimeout(…, 0)` | ❌ | — | The function resumes synchronously and `.then` callbacks may run after the timer; await the call to get JS's order |
324
323
 
325
324
  ## Semantics (JS behaviour preserved)
@@ -327,8 +326,9 @@ declared there fails the type check before it reaches the transpiler. The
327
326
  | Feature | Status | Probe | Notes |
328
327
  | --------------------------------------------------------------------------------------------------------- | :----: | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
329
328
  | Array reference semantics | ✅ | [semantics-array-reference.ts](conformance/semantics-array-reference.ts) | Array variables hold `*[]T` so aliases share the slice header |
330
- | `any[]` arrays mutated through a parameter (`function f(a: any[]) { a.push(x) }`) | ❌ | — | `any[]` arrays are plain `[]interface{}`, not shared references: a `push` inside the callee is lost to the caller (typed arrays share) |
331
- | Arrays held in a `Map` / `Record` / array, mutated in place (`m.get(k)!.push(x)`) | ❌ | — | Containers hold `[]T` by value: a `push` on the element doesn't compile, and a `push` through a local read of it (`const a = m.get(k)!`) is lost. Read, modify, then `set` it back |
329
+ | `??` on an array reference (a missed `exec`, a `T[] \| null` result) | ✅ | [lib-nullish-array-ref.ts](conformance/lib-nullish-array-ref.ts) | A null result stays a nil reference (`TnSlicePtr`), so the fallback applies; an empty match `[]` is not null, and `exec(s)?.[i]` of a miss is `undefined` |
330
+ | `any[]` arrays mutated through a parameter (`function f(a: any[]) { a.push(x) }`) | ✅ | [semantics-any-array-param.ts](conformance/semantics-any-array-param.ts) | An `any[]` is shared with the callee, so its `push` reaches the caller (a nested `any[]` element is still a copy) |
331
+ | Arrays held in a `Map` / `Record` / array, mutated in place (`m.get(k)!.push(x)`) | ✅ | [semantics-container-array-push.ts](conformance/semantics-container-array-push.ts) | The element is an array reference (`*[]T`): a push reaches the container, also through a local alias; `getOrInsert` / `getOrInsertComputed` results too |
332
332
  | Object reference semantics | ✅ | [semantics-object-reference.ts](conformance/semantics-object-reference.ts) | Aliased objects share state; [semantics-parameter-mutation.ts](conformance/semantics-parameter-mutation.ts) |
333
333
  | Object identity | ✅ | [semantics-object-identity.ts](conformance/semantics-object-identity.ts) | Equal literals are different references |
334
334
  | Object key order | ✅ | [semantics-object-key-order.ts](conformance/semantics-object-key-order.ts) | Insertion order preserved |
@@ -345,14 +345,14 @@ declared there fails the type check before it reaches the transpiler. The
345
345
  | Loop closures capture per-iteration `let` | ✅ | [semantics-loop-closures.ts](conformance/semantics-loop-closures.ts) | |
346
346
  | Functions stored in Records | ✅ | [semantics-record-functions.ts](conformance/semantics-record-functions.ts) | `rec.fn()` → `rec.Get("fn")()`, also for names like `get` / `sort` |
347
347
  | An array field passed to a function or returned from one is the same array | ✅ | [semantics-shared-arrays.ts](conformance/semantics-shared-arrays.ts) | Callees get a `*[]T` reference to the field; `return n.sep ?? n.items` returns the field itself |
348
- | A local alias of an array field (`const a = o.items; a.push(x)`) | ❌ | — | The variable holds its own slice: pushes and splices through it do not reach the field |
349
- | An array read from an `any` object into a variable, then pushed to | ❌ | — | `o.list.push(x)` reaches the object; `const l = o.list; l.push(x)` does not |
348
+ | A local alias of an array field (`const a = o.items; a.push(x)`) | ✅ | [semantics-container-array-push.ts](conformance/semantics-container-array-push.ts) | The alias holds the field's reference, so pushes and splices reach the field |
349
+ | An array read from an `any` object into a variable, then pushed to | ✅ | [semantics-any-array-alias.ts](conformance/semantics-any-array-alias.ts) | The read is the object's array: a push through the alias (`const l: any = o.list` or untyped) reaches the object, and the alias is the object's array. A typed-element alias (`o.list as number[]`) still holds a detached copy |
350
350
  | `null` in program data (`JSON.parse`, arrays and objects of `any`) is not `undefined` | ✅ | [semantics-json-null.ts](conformance/semantics-json-null.ts) | It prints, serializes and stringifies as `null`; `=== undefined` is false. A `null` stored in a typed slot is still Go `nil` |
351
351
  | Arrays are shared: an object field, a variable and a parameter holding one array see each other's changes | ✅ | [semantics-array-aliasing.ts](conformance/semantics-array-aliasing.ts) | An object type's array field is a reference (`*[]T`); a method returning its array argument returns that array |
352
352
  | Mutating array methods through `any` (`tok.tokens.unshift(…)`) reach the array's other holders | ✅ | [semantics-array-write-back.ts](conformance/semantics-array-write-back.ts) | Also `x?.[i]`, `x ?? []` and `x \|\| []` on an absent array, and a `Source[]` passed as `(Source \| Other)[]` (a converted copy) |
353
353
  | Object literals whose methods return the object (fluent builders), chained to any length | ✅ | [semantics-self-referencing-object.ts](conformance/semantics-self-referencing-object.ts) | Type inference is memoized per query, so long chains compile in linear time |
354
- | Key order of an `any`-typed object literal (`const o: any = { b: 1, a: 2 }`) | ❌ | — | It becomes a Go map, whose keys come out sorted (`a, b`); a typed (or inferred) literal keeps its order |
355
- | `arr?.length` on an absent array | ❌ | — | Reads `0` instead of `undefined`; test `arr` itself |
354
+ | Key order of an `any`-typed object literal (`const o: any = { b: 1, a: 2 }`) | ✅ | [semantics-any-literal-key-order.ts](conformance/semantics-any-literal-key-order.ts) | An ordered record: `Object.keys`, `for-in`, `Object.entries` and `JSON.stringify` keep the source order; a typed (or inferred) literal keeps its order too |
355
+ | `arr?.length` on an absent array | ✅ | [semantics-optional-array-length.ts](conformance/semantics-optional-array-length.ts) | Reads `undefined` (a nil array is not a zero-length array; a set-but-empty array reads `0`), so `?? fallback` applies |
356
356
 
357
357
  ## Sample apps
358
358
 
@@ -371,15 +371,20 @@ The programs in [examples/](examples/) show where a native binary beats Node.js,
371
371
  take arguments or keep running, so the suite type-checks and builds them as `example-<name>` without running
372
372
  them (`node scripts/conformance.mjs example`).
373
373
 
374
- | Example | Source | Covers |
375
- | ------------------------------------------ | -------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------ |
376
- | [hello-world](examples/hello-world/) | [main.ts](examples/hello-world/main.ts) | `process.argv`, template literals: process startup |
377
- | [fibonacci](examples/fibonacci/) | [main.ts](examples/fibonacci/main.ts) | Recursion, `perf_hooks`: CPU-bound compute |
378
- | [json-server](examples/json-server/) | [main.ts](examples/json-server/main.ts) | `node:http` GET / POST JSON routes, `URL`: HTTP throughput |
379
- | [todo-cli](examples/todo-cli/) | [main.ts](examples/todo-cli/main.ts) | `process.argv` destructuring with default and rest, `fs` atomic writes (`renameSync`), `os.homedir()`, `process.env`: per-command latency |
380
- | [dupe-finder](examples/dupe-finder/) | [main.ts](examples/dupe-finder/main.ts) | Recursive `readdirSync` with `withFileTypes`, `statSync`, SHA-256 `createHash`, `Map` grouping, JSON report to disk: disk scan + hashing |
381
- | [mandelbrot-png](examples/mandelbrot-png/) | [main.ts](examples/mandelbrot-png/main.ts) | Float loop, tuple returns, `Uint8Array` / `DataView`, a PNG encoder on `zlib.deflateSync` + `zlib.crc32`: image rendering with no deps |
382
- | [desktop-notes](examples/desktop-notes/) | [main.ts](examples/desktop-notes/main.ts), [ui.ts](examples/desktop-notes/ui.ts) | `node:http` REST routes, `fs` note files, UI compiled in from a `.ts` module, `@webviewjs/webview` window (own process under Node.js): launch time + memory |
374
+ | Example | Source | Covers |
375
+ | ------------------------------------------------ | -------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
376
+ | [hello-world](examples/hello-world/) | [main.ts](examples/hello-world/main.ts) | `process.argv`, template literals: process startup |
377
+ | [fibonacci](examples/fibonacci/) | [main.ts](examples/fibonacci/main.ts) | Recursion, `perf_hooks`: CPU-bound compute |
378
+ | [json-server](examples/json-server/) | [main.ts](examples/json-server/main.ts) | `node:http` GET / POST JSON routes, `URL`: HTTP throughput |
379
+ | [todo-cli](examples/todo-cli/) | [main.ts](examples/todo-cli/main.ts) | `process.argv` destructuring with default and rest, `fs` atomic writes (`renameSync`), `os.homedir()`, `process.env`: per-command latency |
380
+ | [dupe-finder](examples/dupe-finder/) | [main.ts](examples/dupe-finder/main.ts) | Recursive `readdirSync` with `withFileTypes`, `statSync`, SHA-256 `createHash`, `Map` grouping, JSON report to disk: disk scan + hashing |
381
+ | [mandelbrot-png](examples/mandelbrot-png/) | [main.ts](examples/mandelbrot-png/main.ts) | Float loop, tuple returns, `Uint8Array` / `DataView`, a PNG encoder on `zlib.deflateSync` + `zlib.crc32`: image rendering with no deps |
382
+ | [desktop-notes](examples/desktop-notes/) | [main.ts](examples/desktop-notes/main.ts), [ui.ts](examples/desktop-notes/ui.ts) | `node:http` REST routes, `fs` note files, UI compiled in from a `.ts` module, `@webviewjs/webview` window (own process under Node.js): launch time + memory |
383
+ | [yaml-cli](examples/yaml-cli/) | [main.ts](examples/yaml-cli/main.ts) | The `yaml` package's own CLI from its unmodified source: `Worker` threads, `PassThrough`, `fs/promises`, `process.stdin`: per-call latency + throughput |
384
+ | [marked-cli](examples/marked-cli/) | [main.ts](examples/marked-cli/main.ts) | The `marked` CLI from its unmodified source: `worker_threads`, `zlib` gzip / gunzip, `fs/promises`, `process.stdin`: per-call latency + throughput |
385
+ | [openai-chat](examples/openai-chat/) | [main.ts](examples/openai-chat/main.ts) | Streaming `fetch` with an SSE parser over `ReadableStream` / `TextDecoder`, `readline/promises` REPL, `AbortController`, `SIGINT`: time to answer |
386
+ | [angular-templates](examples/angular-templates/) | [main.ts](examples/angular-templates/main.ts) | `@angular/compiler` (233 vendored files) from its unmodified source: deep class hierarchies and `super`, generators, structural object types, `bigint`, `Map` / `Set`: per-template compile |
387
+ | [react-compiler](examples/react-compiler/) | [main.ts](examples/react-compiler/main.ts) | The React Compiler on Babel 7.29 + zod 4 (~470 vendored files), JSX / TS parsing, `child_process` workers: per-file compile |
383
388
 
384
389
  ## Standard library
385
390
 
@@ -419,9 +424,9 @@ unflagged.
419
424
  | `Math.trunc` / `sign` | ✅ | [lib-math-functions.ts](conformance/lib-math-functions.ts) | `math.Trunc` / inline sign check |
420
425
  | Constants (`Math.PI`, `Math.E`, …) | ✅ | [lib-math-constants.ts](conformance/lib-math-constants.ts) | `math.Pi`, `math.E`, `math.Sqrt2`, … |
421
426
  | `Math.asin` / `acos` / `atan` / `atan2` / `hypot` / `cbrt` / `exp` | ✅ | [lib-math-more.ts](conformance/lib-math-more.ts) | Corresponding `math` functions |
422
- | `Math.sinh` / `cosh` / `tanh` / `expm1` / `log1p` | ✅ | — | Corresponding `math` functions |
427
+ | `Math.sinh` / `cosh` / `tanh` / `expm1` / `log1p` | ✅ | [lib-math-hyperbolic.ts](conformance/lib-math-hyperbolic.ts) | Corresponding `math` functions |
423
428
  | `Math.fround` / `imul` / `clz32` / `asinh` / `acosh` / `atanh` / `sumPrecise` | ✅ | [lib-builtins-statics.ts](conformance/lib-builtins-statics.ts) | `sumPrecise` is a compensated (Neumaier) sum |
424
- | `Math.f16round` | ❌ | — | Not declared |
429
+ | `Math.f16round` | ✅ | [lib-es2025-statics.ts](conformance/lib-es2025-statics.ts) | Rounds to the nearest binary16 (ties to even) directly from float64 |
425
430
 
426
431
  ### `JSON`
427
432
 
@@ -475,8 +480,8 @@ unflagged.
475
480
  | `String.raw` | ✅ | [lib-string-raw.ts](conformance/lib-string-raw.ts) | Raw template text with values interpolated |
476
481
  | `normalize` | ✅ | [lib-string-normalize.ts](conformance/lib-string-normalize.ts) | `golang.org/x/text/unicode/norm`, copied from GOROOT's vendor tree (offline) |
477
482
  | `split(sep, limit)` / `lastIndexOf(s, fromIndex)` | ✅ | [lib-builtins-statics.ts](conformance/lib-builtins-statics.ts) | |
478
- | `localeCompare(s, locales, options)` | ❌ | — | Locales / options are not declared; the comparison is by code unit |
479
- | `codePointAt` / `String.fromCodePoint` / `substr` / `trimLeft` / `trimRight` / `isWellFormed` / `toWellFormed` / `toLocaleUpperCase` / `toLocaleLowerCase` | ✅ | [lib-builtins-statics.ts](conformance/lib-builtins-statics.ts) | `codePointAt` past the end is `NaN` (JS: `undefined`); the locale variants ignore the locale |
483
+ | `localeCompare(s, locales, options)` | ✅ | [lib-locale-compare-format.ts](conformance/lib-locale-compare-format.ts) | With a locale or options, `Intl.Collator` (CLDR collation via `golang.org/x/text/collate`: `sensitivity`, `numeric`, `caseFirst`, `ignorePunctuation`); a bare `a.localeCompare(b)` keeps a light root-collation approximation (spaces and punctuation, digits, letters; then accents, then case) so sorting programs don't link the tables |
484
+ | `codePointAt` / `String.fromCodePoint` / `substr` / `trimLeft` / `trimRight` / `isWellFormed` / `toWellFormed` / `toLocaleUpperCase` / `toLocaleLowerCase` | ✅ | [lib-builtins-statics.ts](conformance/lib-builtins-statics.ts) | `codePointAt` past the end is `NaN` (JS: `undefined`); the locale variants apply tr / az / lt casing ([lib-intl-to-locale-string.ts](conformance/lib-intl-to-locale-string.ts)) |
480
485
  | Positions in non-ASCII text (length, indexing, `indexOf`, `slice`, regex `index` / `lastIndex`) | ✅ | [lib-string-code-points.ts](conformance/lib-string-code-points.ts) | Every API counts the same units: one per character in the BMP (code points beyond it count once, not as two UTF-16 units) |
481
486
  | `replace` with a `string \| RegExp` pattern, a function value as the replacer, `undefined` groups, an offset parameter | ✅ | [lib-string-replace-forms.ts](conformance/lib-string-replace-forms.ts) | |
482
487
  | `toUpperCase` / `toLowerCase` as JS maps case | ✅ | [lib-string-case-mapping.ts](conformance/lib-string-case-mapping.ts) | `ß` → `SS`, `fi` → `FI`, `İ` → `i̇`, `ẞ` → `ß`, final `ς` |
@@ -514,10 +519,10 @@ unflagged.
514
519
  | `toSpliced` | ✅ | [lib-array-to-spliced.ts](conformance/lib-array-to-spliced.ts) | `slices.Concat` of the kept parts |
515
520
  | `Array.of` | ✅ | [lib-builtins-statics.ts](conformance/lib-builtins-statics.ts) | |
516
521
  | Iterator helpers on generators (`map` / `filter` / `flatMap` / `take` / `drop` / `toArray` / `forEach` / `some` / `every` / `find` / `reduce`), `Iterator.from(array)` | ✅ | [lib-iterator-helpers.ts](conformance/lib-iterator-helpers.ts) | Lazy (works on infinite generators): one goroutine per stage |
517
- | `Array.fromAsync` | ❌ | — | Not declared |
518
- | `Iterator.concat(...iterables)` | ❌ | — | **Node 26** (ES2026 iterator sequencing). Not declared; `Iterator.from` takes only arrays and generators today |
522
+ | `Array.fromAsync` | ✅ | [lib-array-from-async.ts](conformance/lib-array-from-async.ts) | Async iterables, arrays of promises or values, with a sync or async `mapFn` |
523
+ | `Iterator.concat(...iterables)` | ✅ | [lib-es2025-statics.ts](conformance/lib-es2025-statics.ts) | Arrays and generators, one after another |
519
524
  | `[...map.keys()]` / `[...map.values()]` | ✅ | [lib-group-by.ts](conformance/lib-group-by.ts) | |
520
- | `anyArray.concat([…])` with an array of another element type (`xs.concat(['x'])` on `any[]`) | ❌ | — | Go build error; spread instead (`[...xs, 'x']`) |
525
+ | `anyArray.concat([…])` with an array of another element type (`xs.concat(['x'])` on `any[]`) | ✅ | [lib-locale-compare-format.ts](conformance/lib-locale-compare-format.ts) | A typed array argument is spread element by element, on `any[]` and on `any` values |
521
526
 
522
527
  ### `Map` / `Set`
523
528
 
@@ -530,7 +535,7 @@ unflagged.
530
535
  | `Map.clear` / `Set.clear` | ✅ | [lib-map-clear.ts](conformance/lib-map-clear.ts) | `TnMap.Clear()` |
531
536
  | `WeakMap` / `WeakSet` | ✅ | [lib-weak-collections.ts](conformance/lib-weak-collections.ts) | Same as `Map` / `Set` (weakness is not observable) |
532
537
  | Set operations (`union` / `intersection` / `difference`) | ✅ | [lib-set-operations.ts](conformance/lib-set-operations.ts) | Plus `symmetricDifference` / `isSubsetOf` / `isSupersetOf` / `isDisjointFrom` |
533
- | `Map` / `WeakMap` `getOrInsert(key, value)` / `getOrInsertComputed(key, fn)` | ❌ | — | **Node 26** (ES2026 upsert). Not declared; one lookup, then a store when the key is missing |
538
+ | `Map` / `WeakMap` `getOrInsert(key, value)` / `getOrInsertComputed(key, fn)` | ✅ | [lib-map-upsert.ts](conformance/lib-map-upsert.ts) | One lookup, then a store when the key is missing; arrays and objects are returned by reference |
534
539
  | `new Map(iterable)` / `new Set(iterable)` from Maps, iterators, generators, `Object.entries`, strings, `null` | ✅ | [lib-collection-constructors.ts](conformance/lib-collection-constructors.ts) | A Map copy keeps the source's key and value types; plain objects and arrays as keys / members are compared by identity |
535
540
 
536
541
  ### `Number`
@@ -541,11 +546,11 @@ unflagged.
541
546
  | `toFixed` | ✅ | [lib-number-format.ts](conformance/lib-number-format.ts) | `n.toFixed(2)` via `strconv.FormatFloat` |
542
547
  | `parseInt` / `parseFloat` / `Number()` | ✅ | [lib-number-parse.ts](conformance/lib-number-parse.ts) | Mapped to Go's `strconv` package |
543
548
  | `Number.isInteger` / `isNaN` / `MAX_SAFE_INTEGER` | ✅ | [lib-number-checks.ts](conformance/lib-number-checks.ts) | Number predicates and constants |
544
- | `Number.MIN_SAFE_INTEGER` / `MAX_VALUE` | ✅ | — | |
549
+ | `Number.MIN_SAFE_INTEGER` / `MAX_VALUE` | ✅ | [lib-number-limits.ts](conformance/lib-number-limits.ts) | |
545
550
  | `Number.EPSILON` / `isFinite` / `toPrecision` | ✅ | [lib-number-misc.ts](conformance/lib-number-misc.ts) | `toPrecision` → `strconv.FormatFloat(x, 'g', n, 64)` |
546
551
  | `String()` / `Boolean()` conversions | ✅ | [lib-conversions.ts](conformance/lib-conversions.ts) | JS formatting / truthiness |
547
552
  | `toExponential` / `Number.isSafeInteger` / `parseInt` / `parseFloat` / `MIN_VALUE` / `NEGATIVE_INFINITY` | ✅ | [lib-builtins-statics.ts](conformance/lib-builtins-statics.ts) | |
548
- | Number `toLocaleString` | ❌ | — | Needs `Intl` |
553
+ | Number / BigInt `toLocaleString` | ✅ | [lib-intl-to-locale-string.ts](conformance/lib-intl-to-locale-string.ts) | Through `Intl.NumberFormat` (every option); without locales, the system locale, as in Node |
549
554
  | `toFixed` rounding ties away from zero, ≥ 1e21, on `any` values and in callbacks | ✅ | [lib-number-to-fixed.ts](conformance/lib-number-to-fixed.ts) | `(1.25).toFixed(1)` is `"1.3"` (Go's formatter rounds ties to even) |
550
555
 
551
556
  ### `Date`
@@ -559,7 +564,7 @@ unflagged.
559
564
  | `toString` / `toDateString` / `toTimeString` / `toUTCString`, `String(date)`, `` `${date}` `` | ✅ | [lib-date-parse-set.ts](conformance/lib-date-parse-set.ts) | Node's formats in the local zone; long zone names for common zones (`Coordinated Universal Time`, `Central European Standard Time`, …), `GMT±hh:mm` otherwise |
560
565
  | `new Date(string)` / `new Date(y, m, d, …)` / `new Date(date)` / `Date.parse` | ✅ | [lib-date-parse-set.ts](conformance/lib-date-parse-set.ts) | ISO strings (date-only UTC, date-times local unless offset) and the formats `toString` / `toUTCString` / common `Month D, YYYY` and `YYYY/MM/DD` forms produce; an unparsable string is an Invalid Date |
561
566
  | Setters (`setFullYear`, `setDate`, `setHours`, … and `setUTC*`), `setTime`, `getTimezoneOffset` | ✅ | [lib-date-parse-set.ts](conformance/lib-date-parse-set.ts) | Fields overflow like JS. Dates are values: a setter updates the variable or field it is called on, not other references to the same Date |
562
- | `toLocaleDateString` / `toLocaleTimeString` / `toLocaleString` | ✅ | [lib-date-parse-set.ts](conformance/lib-date-parse-set.ts) | `en-US` format; locales and options are ignored |
567
+ | `toLocaleDateString` / `toLocaleTimeString` / `toLocaleString` | ✅ | [lib-intl-to-locale-string.ts](conformance/lib-intl-to-locale-string.ts) | Through `Intl.DateTimeFormat` (locales, styles, fields, `timeZone`); without locales, the system locale and time zone, as in Node |
563
568
  | Date arithmetic and ordering (`b - a`, `+d`, `a < b`) | ✅ | [semantics-date-arithmetic.ts](conformance/semantics-date-arithmetic.ts) | The time value in milliseconds; `any` operands of `-` `*` `/` `%` convert with ToNumber |
564
569
 
565
570
  ### `RegExp`
@@ -578,11 +583,11 @@ unflagged.
578
583
  | Remaining flags (`s` / `u` / `y`) & `source` / `flags` | ✅ | [lib-regex-more-flags.ts](conformance/lib-regex-more-flags.ts) | Sticky matching, `\u{…}` escapes, `lastIndex` / `source` / `flags` / flag getters |
579
584
  | `split` with RegExp | ✅ | [lib-regex-split.ts](conformance/lib-regex-split.ts) | JS semantics: captures are included, `limit` counts items |
580
585
  | Match `.index` (`exec` / `match` / `matchAll`), `match` with `/g` | ✅ | [lib-regex-index-split.ts](conformance/lib-regex-index-split.ts) | Character index kept in a hidden slot of the match array; `search` counts characters |
581
- | Unicode property escapes (`\p{L}`) with `u` | ✅ | — | Only with `u` or `v`, as in JS |
586
+ | Unicode property escapes (`\p{L}`) with `u` | ✅ | [lib-regex-engine.ts](conformance/lib-regex-engine.ts), [lib-regex-escapes.ts](conformance/lib-regex-escapes.ts) | Only with `u` or `v`, as in JS |
582
587
  | Backtracking semantics (capture reset, empty loops, line terminators, `[]`) | ✅ | [lib-regex-engine.ts](conformance/lib-regex-engine.ts) | Expected values checked against Node; a pattern that explodes switches to RE2 when RE2 can run it |
583
588
  | Long strings: slices, indexes, `+=` | ✅ | [lib-string-long-slices.ts](conformance/lib-string-long-slices.ts) | Code-point offsets in long and non-ASCII strings; `+=` on a dynamic value keeps earlier values intact |
584
589
  | Fields of dynamic objects | ✅ | [semantics-dynamic-field-access.ts](conformance/semantics-dynamic-field-access.ts)| Reads stay copies across later writes; setters, `switch` tags, in-place `push`, `Object.assign` |
585
- | `d` flag `indices` / `hasIndices`; `RegExp.escape` | ❌ | — | `/x/d` compiles and matches (`flags` includes `d`); `indices`, `hasIndices` and `RegExp.escape` are not declared |
590
+ | `d` flag `indices` / `hasIndices`; `RegExp.escape` | ✅ | [lib-regexp-indices.ts](conformance/lib-regexp-indices.ts), [lib-es2025-statics.ts](conformance/lib-es2025-statics.ts) | `indices` gives each group's `[start, end]` in code points (`undefined` for a group that did not match); `indices.groups` is not set |
586
591
  | `v` flag (`unicodeSets`): class subtraction `--`, intersection `&&`, nested and negated classes, `\q{…}` strings, `i` folding each operand; `unicodeSets` property | ✅ | [lib-regex-unicode-sets.ts](conformance/lib-regex-unicode-sets.ts) | Strings are tried longest first, as in JS; properties of strings (`\p{RGI_Emoji}`) aren't supported |
587
592
  | Unmatched groups are `undefined`; sticky (`y`) regexes; lookaround captures; `$&` / `` $` `` / `$'` / `$<name>` / `$$` replacements; replacer offsets | ✅ | [lib-regex-groups-replace.ts](conformance/lib-regex-groups-replace.ts) | `new RegExp(src, 'g')` keeps its flags. An unmatched group still reads as `''` in string comparisons other than `=== undefined` |
588
593
  | JS escapes in every pattern, also those the backtracking engine runs (backreferences, lookaround): `\xHH`, `\uHHHH`, `\u{…}`, `\cJ`, `\p{…}` / `\P{…}`, `\k<name>`; `\s` as JS's Unicode whitespace | ✅ | [lib-regex-escapes.ts](conformance/lib-regex-escapes.ts) | Group numbers count opening parentheses, as in JS |
@@ -617,21 +622,24 @@ See [Async & timing](#async--timing): `Promise` (constructor, `.then` / `.catch`
617
622
  | `ReadableStream` / `WritableStream` / `TransformStream` & co., `TextEncoderStream` / `TextDecoderStream`, `CompressionStream` / `DecompressionStream` | ✅ | [lib-node-stream-web.ts](conformance/lib-node-stream-web.ts) | See [stream/web](#nodestreamweb) |
618
623
  | `Blob` / `File` / `FormData` | ✅ | [lib-node-blob.ts](conformance/lib-node-blob.ts) | See [buffer](#nodebuffer) and [fetch](#fetch) |
619
624
  | `MessageChannel` / `MessagePort` / `BroadcastChannel` | ✅ | [lib-node-worker-threads.ts](conformance/lib-node-worker-threads.ts) | See [worker_threads](#nodeworker_threads) |
620
- | `__filename` / `__dirname` | ✅ | — | The running executable (a native binary has no script file) |
625
+ | `__filename` / `__dirname` | ✅ | [lib-node-module-filename.ts](conformance/lib-node-module-filename.ts) | The running executable (a native binary has no script file) |
621
626
  | `globalThis` | ✅ | [lib-global-this.ts](conformance/lib-global-this.ts) | `globalThis.x` is the global `x`; `(globalThis as any)` is a dynamic object |
622
627
  | `err.stack` | ✅ | [lib-error-stack.ts](conformance/lib-error-stack.ts) | `Name: message` and an `at fn (file.ts:line)` line per TS frame (no columns), from `runtime.Callers` and the `//line` directives |
623
628
  | `AggregateError` (`errors`) | ✅ | [lib-error-stack.ts](conformance/lib-error-stack.ts) | |
624
- | `Error.captureStackTrace` / `Error.isError` / `DOMException` / `QuotaExceededError` | ❌ | — | Not declared. **Node 26** makes `QuotaExceededError` a global `DOMException` subclass |
629
+ | `Error.captureStackTrace` / `Error.isError` / `DOMException` / `QuotaExceededError` | ✅ | [lib-domexception.ts](conformance/lib-domexception.ts), [lib-es2025-statics.ts](conformance/lib-es2025-statics.ts) | `captureStackTrace` is accepted without effect; `DOMException` carries its legacy `code` (AbortSignal reasons are DOMExceptions) |
625
630
  | `Symbol.for` / `Symbol.keyFor` / `description` | ✅ | [lib-builtins-statics.ts](conformance/lib-builtins-statics.ts) | A global registry by key |
626
- | `[Symbol.asyncIterator]()` methods; `Symbol.toPrimitive` / `hasInstance` / `toStringTag` | ❌ | — | Only `Symbol()`, `Symbol.iterator` and `Symbol.dispose` are lowered |
631
+ | `[Symbol.asyncIterator]()` methods; `Symbol.toPrimitive` / `hasInstance` / `toStringTag` | ✅ | [lib-symbol-protocols.ts](conformance/lib-symbol-protocols.ts) | Class members: `async *[Symbol.asyncIterator]()` for `for await`, `[Symbol.toPrimitive](hint)` for `String(x)` / `+x` / templates, a `[Symbol.toStringTag]` getter, a static `[Symbol.hasInstance]` |
627
632
  | `WeakRef` / `FinalizationRegistry` | ✅ | [lib-weak-refs.ts](conformance/lib-weak-refs.ts) | Go's `weak` package and `runtime.AddCleanup`; cleanup callbacks run on the event loop. Targets must be objects (pointers) |
628
- | `Reflect` (`ownKeys` / `has` / `get` / `set` / …) | ❌ | — | Feasible over the existing dynamic property access |
633
+ | `Reflect` (`ownKeys` / `has` / `get` / `set` / `construct` / …) | ✅ | [lib-es2025-statics.ts](conformance/lib-es2025-statics.ts) | Over the dynamic property access helpers; `construct` builds through the class value |
629
634
  | `Proxy` | 🚫 | — | Intercepting every property access on static Go structs; a `Proxy` limited to dynamic (`any`) objects would be feasible |
630
- | `Intl` (`NumberFormat`, `DateTimeFormat`, `Collator`, `PluralRules`, `ListFormat`, `RelativeTimeFormat`, `Segmenter`), `toLocaleString` | ❌ | — | Needs locale data (vendored `golang.org/x/text`, or hand-written `en-US` first) |
631
- | `Temporal` | ❌ | — | **Node 26** makes it a global with no flag (`Temporal.Now`, `PlainDate`, `ZonedDateTime`, `Instant`, `Duration`, …). Feasible on Go's `time` and tzdata |
632
- | `WebSocket` / `navigator` / `CustomEvent` / `URLPattern` / `EventSource` / `reportError` / `ErrorEvent` | ❌ | — | Not declared. `ErrorEvent` is a global from **Node 25** |
633
- | `localStorage` / `sessionStorage` / `Storage` (`getItem` / `setItem` / `removeItem` / `clear` / `key` / `length`) | ❌ | — | **Node 25** turns Web Storage on by default. `sessionStorage` lives in memory; `localStorage` persists to `--localstorage-file` and, from **Node 26**, is `undefined` without it |
634
- | `WebAssembly` | ❌ | — | Needs a Wasm runtime: vendoring wazero (pure Go, no cgo) would provide one (see [wasi](#nodewasi)) |
635
+ | `Intl` (`NumberFormat`, `DateTimeFormat`, `Collator`, `PluralRules`, `ListFormat`, `RelativeTimeFormat`, `Segmenter`, `DisplayNames`, `Locale`, `getCanonicalLocales`, `supportedValuesOf`), `toLocaleString` | ✅ | [lib-intl-number-format.ts](conformance/lib-intl-number-format.ts), [lib-intl-date-time-format.ts](conformance/lib-intl-date-time-format.ts), [lib-intl-collator.ts](conformance/lib-intl-collator.ts), [lib-intl-plural-list-relative.ts](conformance/lib-intl-plural-list-relative.ts), [lib-intl-segmenter.ts](conformance/lib-intl-segmenter.ts), [lib-intl-display-names-locale.ts](conformance/lib-intl-display-names-locale.ts), [lib-intl-to-locale-string.ts](conformance/lib-intl-to-locale-string.ts) | Output captured from Node's ICU (`npm run gen:intl`) for 32 locales; other regions use their language's data (`resolvedOptions().locale` still names them), unknown languages the default locale's. Plural rules, collation and case mapping on `golang.org/x/text`. Gaps: the gregorian calendar only; date patterns for uncommon field combinations are composed from the nearest ones; zone names in English; `Segmenter` has no dictionaries (each ideograph is a word); a bare `localeCompare` keeps a light root collation |
636
+ | `Temporal` (`Instant`, `ZonedDateTime`, `PlainDate`, `PlainTime`, `PlainDateTime`, `PlainYearMonth`, `PlainMonthDay`, `Duration`, `Now`) | ✅ | [lib-temporal-plain.ts](conformance/lib-temporal-plain.ts), [lib-temporal-duration.ts](conformance/lib-temporal-duration.ts), [lib-temporal-zoned.ts](conformance/lib-temporal-zoned.ts) | The ISO 8601 calendar on Go's `time` and embedded tzdata (`time/tzdata`, linked only into programs that use it): parsing, `with`, `add` / `subtract`, `until` / `since`, `round` / `total` with every rounding mode, `relativeTo`, DST disambiguation, `getTimeZoneTransition` and the `toString` options. Non-ISO calendars throw a `RangeError` (they need ICU); `toLocaleString` returns a fixed en-US format (no `Intl` calendar names); `Duration.round` keeps the larger calendar unit when a smaller calendar unit cannot hold a whole number of it (Node adds a spurious day in a few such cases, e.g. `P2W` rounded to days) |
637
+ | `navigator` (`hardwareConcurrency`, `language(s)`, `platform`, `userAgent`), `CustomEvent`, `ErrorEvent` | ✅ | [lib-web-globals-node26.ts](conformance/lib-web-globals-node26.ts) | `navigator.language` comes from `LANG` / `LC_ALL` (Node asks ICU); both events are `Event`s with their extra fields |
638
+ | `URLPattern` (string / init inputs, named groups, wildcards, custom regexps, `ignoreCase`) | ✅ | [lib-url-pattern.ts](conformance/lib-url-pattern.ts) | Components compile to anchored Go regexps; `exec` fills each component's `groups`; protocol / search / hash canonicalized as Node does |
639
+ | `WebSocket` (client) | ✅ | [lib-node-websocket.ts](conformance/lib-node-websocket.ts) | An RFC 6455 client over `net` / `tls` (the server side's upgrade exists): the handshake, subprotocols and custom headers, echoes as `string` / `Blob` / `ArrayBuffer`, pings, `bufferedAmount`, the close handshake (client- and server-initiated, 1005 without a code), and undici's constructor / `send` / `close` errors |
640
+ | `EventSource`, `reportError` | 🚫 | — | Not globals in Node 26.13 (`EventSource` is behind `--experimental-eventsource`) |
641
+ | `localStorage` / `sessionStorage` / `Storage` (`getItem` / `setItem` / `removeItem` / `clear` / `key` / `length`) | ✅ | [lib-web-globals-node26.ts](conformance/lib-web-globals-node26.ts) | `sessionStorage` lives in memory; `localStorage` persists to the file `TN_LOCALSTORAGE_FILE` names (as JSON, not Node's SQLite file) and is `undefined` without one, as in Node 26 |
642
+ | `WebAssembly` (`Module`, `Instance`, `Memory`, `Global`, `compile` / `instantiate` / `validate`, `CompileError` / `LinkError` / `RuntimeError`) | ✅ | [lib-webassembly-basic.ts](conformance/lib-webassembly-basic.ts) | Runs on wazero (pure Go, no cgo); `Table` partial. See [wasi](#nodewasi) |
635
643
  | `Function` as a value (`const Type = Function`), `x instanceof Function` | ✅ | [syntax-error-subclass-idiom.ts](conformance/syntax-error-subclass-idiom.ts) | An opaque sentinel; `instanceof Function` checks for a function value |
636
644
 
637
645
  ### Node builtins (`node:*`)
@@ -658,7 +666,7 @@ async function runs synchronously until its first `await`.
658
666
  | `node:dns` / `node:dns/promises` | ✅ | [dns](#nodedns) |
659
667
  | `node:domain` | 🚫 | [domain](#nodedomain) |
660
668
  | `node:events` (+ `EventTarget`, `AbortController`) | ✅ | [events](#nodeevents) |
661
- | `node:ffi` | ❌ | [ffi](#nodeffi) |
669
+ | `node:ffi` | ✅ | [ffi](#nodeffi) |
662
670
  | `node:fs` / `node:fs/promises` | ✅ | [fs](#nodefs) |
663
671
  | `node:http` / `node:https` | ✅ | [http / https](#nodehttp--nodehttps) |
664
672
  | `node:http2` | ✅ | [http2](#nodehttp2) |
@@ -689,7 +697,7 @@ async function runs synchronously until its first `await`.
689
697
  | `node:util` / `node:util/types` | ✅ | [util](#nodeutil) |
690
698
  | `node:v8` | ✅ | [v8](#nodev8) |
691
699
  | `node:vm` | 🚫 | [vm](#nodevm) |
692
- | `node:wasi` | ❌ | [wasi](#nodewasi) |
700
+ | `node:wasi` | ✅ | [wasi](#nodewasi) |
693
701
  | `node:worker_threads` (+ globals `MessageChannel`, `MessagePort`, `BroadcastChannel`) | ✅ | [worker_threads](#nodeworker_threads) |
694
702
  | `node:zlib` | ✅ | [zlib](#nodezlib) |
695
703
  | Global `fetch` (+ `Headers`, `Request`, `Response`, `FormData`) | ✅ | [fetch](#fetch) |
@@ -714,12 +722,13 @@ async function runs synchronously until its first `await`.
714
722
  | `read*` / `write*` (U)Int8/16/32 LE/BE, Float, Double | ✅ | [lib-node-buffer-binary.ts](conformance/lib-node-buffer-binary.ts) | Out-of-range offsets throw `ERR_OUT_OF_RANGE` |
715
723
  | `Blob` / `File` (`size`, `type`, `name`, `lastModified`, `text()` / `bytes()` / `arrayBuffer()`, `slice`, `stream()`); parts of strings, Buffers and Blobs | ✅ | [lib-node-blob.ts](conformance/lib-node-blob.ts) | Also globals; bytes held in memory |
716
724
  | `read/writeBigInt64LE/BE`, `read/writeBigUInt64LE/BE`, `swap16/32/64`; `isUtf8` / `isAscii` / `transcode` / `kMaxLength` | ✅ | [lib-node-buffer-bigint.ts](conformance/lib-node-buffer-bigint.ts) | bigints are `*big.Int` |
717
- | Typed arrays (`Int8Array`, `Uint8ClampedArray`, `Int16Array`, `Uint16Array`, `Int32Array`, `Uint32Array`, `Float32Array`, `Float64Array`): indexing, `length` / `byteLength` / `buffer`, `from` / `of`, `fill` / `set` / `subarray` / `slice` / `copyWithin`, `map` / `filter` / `reduce` / `forEach` & co., `sort` / `toSorted`, `join`, `for…of`, spread; `ArrayBuffer` (`slice`, `isView`); `DataView` (all getters / setters incl. BigInt64) | ✅ | [lib-typed-arrays.ts](conformance/lib-typed-arrays.ts) | One Go slice per element type; views on an `ArrayBuffer` share its memory. Writes convert like JS (wrapping, clamping). A view's `.buffer` is its own bytes (`byteOffset` 0). Out-of-range reads give `0`, not `undefined`. |
718
- | `BigInt64Array` / `BigUint64Array` | ❌ | — | `DataView` already has the BigInt64 accessors |
725
+ | Typed arrays (`Int8Array`, `Uint8ClampedArray`, `Int16Array`, `Uint16Array`, `Int32Array`, `Uint32Array`, `Float32Array`, `Float64Array`): indexing, `length` / `byteLength` / `buffer`, `from` / `of`, `fill` / `set` / `subarray` / `slice` / `copyWithin`, `map` / `filter` / `reduce` / `forEach` & co., `sort` / `toSorted`, `join`, `for…of`, spread; `ArrayBuffer` (`slice`, `isView`); `DataView` (all getters / setters incl. BigInt64) | ✅ | [lib-typed-arrays.ts](conformance/lib-typed-arrays.ts) | One Go slice per element type; views on an `ArrayBuffer` share its memory. Writes convert like JS (wrapping, clamping). A view's `.buffer` is the `ArrayBuffer` it views, with its real `byteOffset` (an array that owns its elements gives its own bytes, `byteOffset` 0). Out-of-range reads give `0`, not `undefined`. |
726
+ | `BigInt64Array` / `BigUint64Array` | ✅ | [lib-typed-array-float16-bigint.ts](conformance/lib-typed-array-float16-bigint.ts) | Elements read and write as bigints (writes wrap modulo 2^64); views over an `ArrayBuffer` share its memory |
719
727
  | `Uint8Array.fromBase64` / `u8.toBase64()` | ✅ | [lib-uint8array-base64.ts](conformance/lib-uint8array-base64.ts) | Standard alphabet with padding; no options (`alphabet`, `omitPadding`, `lastChunkHandling`) |
720
- | `Float16Array`, resizable `ArrayBuffer` (`resize`, `transfer`), `Uint8Array` `toHex` / `fromHex` | ❌ | — | Not declared |
721
- | `Uint8Array` `setFromBase64` / `setFromHex`; `toBase64` / `fromBase64` options (`alphabet`, `omitPadding`, `lastChunkHandling`) | ❌ | — | **Node 25** (V8 14.1) ships the whole ES2026 base64 / hex API |
722
- | `Buffer.stringLength(input, encoding)`, `buffer.isLatin1`, `blob.textStream()`, `end` argument of `buf.indexOf` / `lastIndexOf` / `includes`, `alignment` argument of `Buffer.allocUnsafe(Slow)`, `Buffer.poolSize` | ❌ | — | **Node 26**: `end` (26.1), `textStream` (26.5), `alignment` (26.8), `stringLength` / `isLatin1` (26.11); `poolSize` now defaults to 64 KiB (26.3). `lastIndexOf` isn't declared at all |
728
+ | `Float16Array`, `DataView` `getFloat16` / `setFloat16`, `ArrayBuffer` `transfer` / `transferToFixedLength`, `Uint8Array` `toHex` / `fromHex` | ✅ | [lib-typed-array-float16-bigint.ts](conformance/lib-typed-array-float16-bigint.ts), [lib-uint8array-hex-base64.ts](conformance/lib-uint8array-hex-base64.ts) | `Float16Array` stores binary16 bits; `transfer` copies the bytes and detaches the source |
729
+ | Resizable `ArrayBuffer` (`new ArrayBuffer(n, { maxByteLength })`, `resize`, `resizable`, `maxByteLength`), `detached`, growable `SharedArrayBuffer` (`grow`, `growable`) | ✅ | [lib-arraybuffer-resizable.ts](conformance/lib-arraybuffer-resizable.ts) | The buffer stays a Go `[]byte`; its length and detached state live beside it, keyed by its address. Typed arrays and DataViews track it (length-tracking views follow `resize`, fixed-length ones go out of bounds and throw `TypeError` from their methods), but a `Uint8Array` is a plain `[]byte` and keeps the length it was made with. `transfer` copies, then detaches the source. Growing past the first allocation moves the bytes. `structuredClone` / `postMessage` transfer lists don't detach, and `WebAssembly.Memory#grow` doesn't detach the old `buffer` |
730
+ | `Uint8Array` `setFromBase64` / `setFromHex`; `toBase64` / `fromBase64` options (`alphabet`, `omitPadding`, `lastChunkHandling`) | ✅ | [lib-uint8array-hex-base64.ts](conformance/lib-uint8array-hex-base64.ts) | Strict decoding as the spec has it (a `SyntaxError` on bad input; `{ read, written }`) |
731
+ | `Buffer.stringLength(input, encoding)`, `buffer.isLatin1`, `blob.textStream()`, `end` argument of `buf.indexOf` / `lastIndexOf` / `includes`, `alignment` argument of `Buffer.allocUnsafe(Slow)`, `Buffer.poolSize` | ✅ | [lib-buffer-node26.ts](conformance/lib-buffer-node26.ts) | `lastIndexOf` takes its `byteOffset` too; `alignment` is accepted (Go allocations are already aligned) |
723
732
  | `JSON.stringify(buffer)`, `buf.toJSON()` | ✅ | [lib-buffer-json.ts](conformance/lib-buffer-json.ts) | `{"type":"Buffer","data":[…]}`, keys in that order |
724
733
 
725
734
  #### `node:fs`
@@ -734,11 +743,14 @@ async function runs synchronously until its first `await`.
734
743
  | Callback API (`readFile(path, enc, (err, data) => …)` & co.) | ✅ | [lib-node-fs-callbacks.ts](conformance/lib-node-fs-callbacks.ts) | Work runs on a goroutine; callbacks run on the event loop |
735
744
  | `fs/promises` / `fs.promises` (incl. `FileHandle` from `open`) | ✅ | [lib-node-fs-promises.ts](conformance/lib-node-fs-promises.ts) | Rejections carry the error code |
736
745
  | `createReadStream` / `createWriteStream` | ✅ | [lib-node-fs-streams.ts](conformance/lib-node-fs-streams.ts) | `encoding`, `start` / `end`, `highWaterMark`, `flags` |
737
- | `chmodSync` / `utimesSync` / `symlinkSync` / `readlinkSync` / `linkSync` | ✅ | — | Implemented, not probed (symlinks need privileges on Windows) |
746
+ | `chmodSync` / `utimesSync` / `symlinkSync` / `readlinkSync` / `linkSync` | ✅ | [lib-node-fs-permissions.ts](conformance/lib-node-fs-permissions.ts), [lib-node-fs-symlinks.ts](conformance/lib-node-fs-symlinks.ts) | Symlinks need a privilege on Windows, so their probe skips `win32`; `chmod` there only maps the write bit |
738
747
  | `watch` (`recursive`, `persistent`, `signal`, `ref` / `unref`, `'change'` / `'error'` / `'close'`) / `watchFile` / `unwatchFile`; `fs/promises` `watch` | ✅ | [lib-node-fs-watch.ts](conformance/lib-node-fs-watch.ts) | `watch` uses the OS's notifications through the vendored `fsnotify` (only linked into programs that call it); recursive watches add subdirectories as they appear. `watchFile` polls `stat()` |
739
- | Removed in Node 25: `fs.F_OK` / `R_OK` / `W_OK` / `X_OK` (use `fs.constants`), the `recursive` option of `rmdir` / `rmdirSync` / `fs/promises` `rmdir` | ❌ | — | **Node 25**. TypeNative still declares and compiles them; they should leave the types so programs fail the type check, as they fail in Node |
740
- | `openAsBlobSync` / `openAsBlob`, `statfs` / `statfsSync` (with `frsize`), the `buffer` option of `readFile`, `signal` on `stat` / `lstat` / `fstat`, `Temporal.Instant` fields on `Stats` (`atimeInstant` …), the `windowsHandle` stream option; `FileHandle` `pull` / `pullSync` / `writer` | ❌ | — | **Node 25 / 26**: `FileHandle` iteration (25.9), `frsize` and `stat` `signal` (26.1), `Instant` fields (26.2), `readFile` `buffer` (26.4), `openAsBlobSync` (26.10) |
741
- | `glob` / `globSync` / `fs/promises` `glob` (`cwd`, `exclude`, `withFileTypes`, `followSymlinks`, `maxDepth`) | ❌ | — | **Node 26** adds `followSymlinks` (26.1) and `maxDepth` (26.9). `path.matchesGlob` already compiles the patterns |
748
+ | Removed in Node 25: `fs.F_OK` / `R_OK` / `W_OK` / `X_OK` (use `fs.constants`), the `recursive` option of `rmdir` / `rmdirSync` / `fs/promises` `rmdir` | ✅ | [lib-node-fs-node26.ts](conformance/lib-node-fs-node26.ts) | Gone from the types (a type error, as Node fails at run time); `fs.constants.F_OK` & co. stay |
749
+ | `openAsBlobSync` / `openAsBlob`, `statfs` / `statfsSync` (with `frsize`), the `buffer` option of `readFile`, `signal` on `stat` / `lstat` / `fstat`, callback `fstat` | ✅ | [lib-node-fs-node26.ts](conformance/lib-node-fs-node26.ts) | `statfs` uses `statfs(2)` on Unix and `GetDiskFreeSpace` on Windows (`files` / `ffree` / `type` are 0 there) |
750
+ | `Temporal.Instant` fields on `Stats` (`atimeInstant` / `mtimeInstant` / `ctimeInstant` / `birthtimeInstant`) | ✅ | [lib-node-fs-node26.ts](conformance/lib-node-fs-node26.ts) | Built from the existing `time.Time` fields; reading one pulls in the Temporal helper (programs that never read them stay without tzdata) |
751
+ | The `windowsHandle` stream option of `createReadStream` / `createWriteStream` | ✅ | [lib-node-fs-windows-handle.ts](conformance/lib-node-fs-windows-handle.ts) | A Windows HANDLE (bigint) the stream reads or writes through, converted into a file at construction as Node's `_open_osfhandle` does. A real HANDLE cannot be obtained from pure JS, so the probe exercises the errors, which are Node's: a non-bigint is a `TypeError`, an unusable handle `EBADF`, both thrown before the path is opened |
752
+ | `FileHandle` `pull` / `pullSync` / `writer` | ❌ | — | Not in Node 26.13 yet |
753
+ | `glob` / `globSync` / `fs/promises` `glob` (`cwd`, `exclude`, `withFileTypes`, `followSymlinks`, `maxDepth`) | ✅ | [lib-node-fs-node26.ts](conformance/lib-node-fs-node26.ts) | A directory walk matched with `path.matchesGlob`'s patterns; `fs/promises` `glob` is an async iterable |
742
754
 
743
755
  #### `node:os`
744
756
 
@@ -758,12 +770,13 @@ async function runs synchronously until its first `await`.
758
770
  | `process.on('exit' \| 'SIGINT' \| 'SIGTERM' \| 'SIGHUP')` / `once` / `off` / `emit` | ✅ | [lib-node-process-events.ts](conformance/lib-node-process-events.ts) | `'exit'` runs after the event loop with the exit code; signals arrive on the loop |
759
771
  | `process.stdin` / `stdout` / `stderr` as streams | ✅ | [lib-node-child-process-async.ts](conformance/lib-node-child-process-async.ts) | `stdin` keeps the process alive only while flowing |
760
772
  | `stdout.write(data, callback)` / `stderr.write(data, callback)` | ✅ | [lib-process-write-callback.ts](conformance/lib-process-write-callback.ts) | The callback runs after the current code once the data is written; output is flushed before exit |
761
- | `kill` / `emitWarning` / `getuid` / `getgid` | ✅ | — | Implemented, not probed |
773
+ | `kill` / `emitWarning` / `getuid` / `getgid` | ✅ | [lib-node-process-signals.ts](conformance/lib-node-process-signals.ts) | `getuid` / `getgid` are Go's `os` values (`-1` on Windows, where Node omits them) |
762
774
  | `on('uncaughtException')` / `'uncaughtExceptionMonitor'` / `'unhandledRejection'` / `'beforeExit'` (per drain, can schedule more work); `cpuUsage` / `resourceUsage` / `availableMemory` / `loadEnvFile` | ✅ | [lib-node-process-uncaught.ts](conformance/lib-node-process-uncaught.ts), [lib-node-os-mem.ts](conformance/lib-node-os-mem.ts) | Throws in the top-level code, loop callbacks and detached async calls reach the handlers; CPU times from `/proc` (Linux) or Go's runtime metrics |
763
775
  | `stdout.columns` / `rows` / `getWindowSize()` (and `stderr`), `stdin.setRawMode` / `isRaw`, `umask` | ✅ | [lib-node-process-tty.ts](conformance/lib-node-process-tty.ts) | A per-OS helper: `TIOCGWINSZ` and termios ioctls (Linux, macOS, FreeBSD), the console API (Windows). `columns` / `rows` are `0`, not `undefined`, when not a terminal (`columns \|\| 80` still works); raw mode is libuv's and is undone at exit; `setRawMode` throws when stdin isn't a terminal. No raw mode on Linux PowerPC / MIPS, no `umask` on Windows (`0`, as in Node); no `'resize'` event |
764
776
  | `emitWarning(warning, type)` | ✅ | [lib-process-emit-warning.ts](conformance/lib-process-emit-warning.ts) | `(node:PID) <type>: <message>` on stderr, and Node's `--trace-warnings` hint after the first one |
765
- | `process.version` / `versions.node` reporting Node 26 | ❌ | — | Both still report `v24.0.0` / `24.0.0` ([src/node/process.ts](src/node/process.ts)) |
766
- | `process.ref(x)` / `process.unref(x)`, `addUncaughtExceptionCaptureCallback`, `execve`, `process.permission` (`has`, `drop`) | ❌ | — | **Node 25 / 26**: `addUncaughtExceptionCaptureCallback` (25.9), `execve` throws on failure instead of aborting (26.1), `permission.drop` (26.3), `ref` / `unref` stable (26.11) |
777
+ | `process.version` / `versions.node` reporting Node 26 | ✅ | [lib-node-process-node26.ts](conformance/lib-node-process-node26.ts) | `v26.0.0` |
778
+ | `process.ref(x)` / `process.unref(x)`, `set` / `add` / `hasUncaughtExceptionCaptureCallback`, `execve` | ✅ | [lib-node-process-node26.ts](conformance/lib-node-process-node26.ts) | `execve` is `execve(2)` on Unix and throws `ERR_FEATURE_UNAVAILABLE_ON_PLATFORM` on Windows, as in Node |
779
+ | `process.permission` (`has`, `drop`) under `--permission` | ✅ | [lib-node-process-permission.ts](conformance/lib-node-process-permission.ts) | `undefined` without the flag, as in Node. A compiled program has no node flags, so the model reads `NODE_OPTIONS` (Node's quoting rules): `--permission`, `--allow-fs-read[=path]`, `--allow-fs-write[=path]`, `--allow-child-process`, `--allow-worker`, `--allow-net`, `--allow-addons`, `--allow-wasi`. Paths are resolved and matched at directory boundaries (a trailing `*` matches a prefix); `drop(scope, path)` removes the grants at or under `path`. `ERR_ACCESS_DENIED` (with `permission` / `resource`) from the sync, callback and promise fs calls, `process.chdir`, child processes, workers, `net` `listen` (throws) / `connect` and dgram `bind` (`'error'`), as in Node. `fs.watch` and `createReadStream` / `createWriteStream` are not gated yet |
767
780
 
768
781
  #### `node:console`
769
782
 
@@ -781,11 +794,12 @@ async function runs synchronously until its first `await`.
781
794
  | `isDeepStrictEqual` / `types.*` (`node:util/types`) / `deprecate` / `stripVTControlCharacters` / `styleText` | ✅ | [lib-node-util-misc.ts](conformance/lib-node-util-misc.ts) | `styleText` colours only TTYs unless `validateStream: false` |
782
795
  | `promisify` / `callbackify` | ✅ | [lib-node-util-promisify.ts](conformance/lib-node-util-promisify.ts) | Node functions map to their promise versions at compile time (`fs.readFile`, `setTimeout`, `exec`); other functions are wrapped |
783
796
  | `parseArgs` (short / long / grouped flags, `multiple`, `default`, `strict`, `allowPositionals`, `allowNegative`, `tokens`, Node's errors), `getSystemErrorName` / `getSystemErrorMessage` / `getSystemErrorMap`, `MIMEType` / `MIMEParams`, `parseEnv` (+ `process.loadEnvFile`), `aborted`, `debuglog` (`NODE_DEBUG`), `toUSVString` | ✅ | [lib-node-util-parse-args.ts](conformance/lib-node-util-parse-args.ts) | |
784
- | `inspect.custom` methods, `getCallSites` | ❌ | — | `[inspect.custom]()` can lower to a method like `[Symbol.dispose]()`; `getCallSites` can read `runtime.Callers`, which reports `.ts` lines through the `//line` directives |
797
+ | `inspect.custom` methods, `getCallSites` | ✅ | [lib-node-util-node26.ts](conformance/lib-node-util-node26.ts) | A `[util.inspect.custom]()` class method is what `inspect` / `console.log` print; call sites are the TS frames (columns are not recorded: 1) |
785
798
  | `inherits` (legacy) | 🚫 | — | Rewrites prototypes; classes are static Go structs |
786
799
  | Node's errno numbers per OS (`err.errno`, `getSystemErrorMap`) | ✅ | [lib-node-errno.ts](conformance/lib-node-errno.ts) | libuv's table, generated into `src/node/errno_tables.ts`: the OS's errno on Unix (`ECONNREFUSED` is `-111` on Linux, `-61` on macOS) and libuv's fixed numbers on Windows (`ENOENT` is `-4058`). Messages are libuv's; the map matches Node's on Linux entry for entry |
787
800
  | `parseArgs` result typed from the `options` config | ✅ | [lib-util-parse-args-typed.ts](conformance/lib-util-parse-args-typed.ts) | `values.json` is a `boolean`, `values.indent` a `string` |
788
- | `debounce` / `throttle` / `markPromiseAsHandled`, `isPartialDeepStrictEqual`, `MIMEType.parse` (returns `null` instead of throwing), hex colours in `styleText` (`'#ff8800'`) | ❌ | — | **Node 26**: hex colours (26.1), `MIMEType.parse` (26.8), `debounce` / `throttle` / `markPromiseAsHandled` (26.10), `isPartialDeepStrictEqual` (26.11) |
801
+ | `markPromiseAsHandled`, `isPartialDeepStrictEqual`, `MIMEType.parse` (returns `null` instead of throwing), hex colours in `styleText` (`'#ff8800'`) | ✅ | [lib-node-util-node26.ts](conformance/lib-node-util-node26.ts) | `#rrggbb` / `#rgb` are 24-bit foreground colours |
802
+ | `debounce` / `throttle` | ✅ | [lib-debounce-throttle.ts](conformance/lib-debounce-throttle.ts) | A callable function with `cancel` / `flush` / `ref` / `unref` (throttle: `hasImmediateCapacity`); debounce trails at the end of the wait, throttle admits `limit` calls per interval and queues the rest |
789
803
 
790
804
  #### `node:assert`
791
805
 
@@ -793,7 +807,7 @@ async function runs synchronously until its first `await`.
793
807
  | ------------------------------------------------------------------------------------------------------------------------------------- | :----: | -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------- |
794
808
  | `assert` / `ok` / `equal` / `strictEqual` (+ `not*`) / `match` / `throws` / `doesNotThrow` / `fail` / `ifError`; `node:assert/strict` | ✅ | [lib-node-assert.ts](conformance/lib-node-assert.ts) | Failures throw an `AssertionError` (`code: 'ERR_ASSERTION'`, `actual`, `expected`, `operator`); `throws` validates with a RegExp, class or object |
795
809
  | `deepEqual` / `deepStrictEqual` (+ `not*`) / `rejects` / `doesNotReject` | ✅ | [lib-node-assert-deep.ts](conformance/lib-node-assert-deep.ts) | Key order is ignored for objects, Maps and Sets; failure messages are simplified (no diff). Invalid `Date`s compare equal, as in **Node 25** |
796
- | `printf`-style messages (`assert.ok(v, 'got %s', x)`) and message functions on every assertion; `partialDeepStrictEqual` | ❌ | — | **Node 26** (printf messages). The type check rejects extra message arguments today (`Expected 1-2 arguments`) |
810
+ | `printf`-style messages (`assert.ok(v, 'got %s', x)`) and message functions on every assertion; `partialDeepStrictEqual` | ✅ | [lib-node-assert-node26.ts](conformance/lib-node-assert-node26.ts) | As Node 26 has them: `fail` / `throws` / `rejects` keep the message as is; `strictEqual` follows a custom message with the comparison |
797
811
 
798
812
  #### `node:url`
799
813
 
@@ -802,7 +816,7 @@ async function runs synchronously until its first `await`.
802
816
  | `fileURLToPath` / `pathToFileURL` | ✅ | [lib-node-url.ts](conformance/lib-node-url.ts) | `pathToFileURL` returns a `URL`; Windows drive letters |
803
817
  | `URL` (WHATWG): parsing, relative resolution, getters / setters, `canParse`, `parse`; `domainToASCII` / `domainToUnicode`; `format` | ✅ | [lib-node-url-class.ts](conformance/lib-node-url-class.ts) | Special schemes, dot segments, default ports, percent-encode sets, IDN hosts (punycode); invalid input throws `ERR_INVALID_URL` |
804
818
  | `URLSearchParams` (and `url.searchParams`, kept in sync) | ✅ | [lib-node-url-search-params.ts](conformance/lib-node-url-search-params.ts) | `for...of`, `forEach`, `sort`, construction from strings / objects / pairs |
805
- | Legacy `url.parse` / `url.resolve` | ❌ | — | Deprecated upstream, but a pure port is feasible |
819
+ | Legacy `url.parse` / `url.resolve` | ✅ | [lib-node-url-legacy.ts](conformance/lib-node-url-legacy.ts) | A `Url` whose missing parts are `null`; `resolve` resolves like a browser link |
806
820
 
807
821
  #### `node:querystring`
808
822
 
@@ -840,8 +854,9 @@ async function runs synchronously until its first `await`.
840
854
  | `crypto.subtle` / `webcrypto.subtle`: `digest`, `generateKey`, `importKey` / `exportKey` (`raw`, `spki`, `pkcs8`, `jwk`), `sign` / `verify` (HMAC, RSASSA-PKCS1-v1_5, RSA-PSS, ECDSA, Ed25519), `encrypt` / `decrypt` (AES-GCM / CBC / CTR, RSA-OAEP), `deriveBits` / `deriveKey` (PBKDF2, HKDF, ECDH, X25519), `wrapKey` / `unwrapKey` | ✅ | [lib-node-crypto-subtle.ts](conformance/lib-node-crypto-subtle.ts) | Key usages are recorded but not enforced |
841
855
  | `Hash` / `Hmac` as streams (`write` / `end`, `'readable'`, `pipe` into a hash, `pipeline`, `setEncoding`) | ✅ | [lib-node-crypto-hash-stream.ts](conformance/lib-node-crypto-hash-stream.ts) | A transform that pushes the digest at the end, as in Node; afterwards `hash.digest()` throws and `hmac.digest()` is empty. Only programs that use a hash as a stream carry the stream code |
842
856
  | AES key wrap: `id-aes128-wrap` … `id-aes256-wrap-pad` (and the `aes128-wrap` aliases) | ✅ | [lib-node-crypto-keywrap.ts](conformance/lib-node-crypto-keywrap.ts) | RFC 3394 and RFC 5649, checked against the RFC vectors; the whole input goes through one `update()`, as with OpenSSL |
843
- | Encrypted private keys (`passphrase` / `cipher`), `rsa-pss` / `dsa` / `dh` / `ed448` / `x448` key types, `secp256k1`, `Certificate` (SPKAC) | ❌ | — | Not in Go's standard library, but portable: encrypted PKCS#8 is PBES2 over `pbkdf2` + AES-CBC; `rsa-pss` / `dsa` / `dh` keys and SPKAC are ASN.1 on existing primitives; `secp256k1` / `ed448` / `x448` need vendored curve code |
844
- | `randomUUIDv7`, `createMac` / `getMacs` / `Mac` (`update` / `final`), `parsePKCS12`, SIV and GCM-SIV cipher modes | ❌ | — | **Node 26**: `randomUUIDv7` (26.1), SIV / GCM-SIV (26.8), `createMac` (26.9), `parsePKCS12` (26.10). A v7 UUID is a millisecond timestamp plus `crypto/rand` bits; PKCS#12 is the decoder [tls](#nodetls) PFX needs too |
857
+ | Encrypted private keys (`passphrase` / `cipher`): PKCS#8 PBES2 and legacy `DEK-Info` PEM, encrypted export (PEM / DER); `rsa-pss` / `dsa` / `dh` / `ed448` / `x448` key types, `secp256k1`, `Certificate` (SPKAC: `verifySpkac` / `exportChallenge` / `exportPublicKey`) | ✅ | [lib-node-crypto-keys-more.ts](conformance/lib-node-crypto-keys-more.ts) | PBES2 is PBKDF2 + AES-CBC (plus 3DES for the legacy headers); Ed448 / X448 / secp256k1 on the vendored `cloudflare/circl` and `decred` curve code (pure Go); RSA-PSS keys use their hash for MGF1 too |
858
+ | `randomUUIDv7`, `createMac` / `getMacs` / `Mac` (`update` / `final`) for `hmac`, `kmac128` / `kmac256`, `cmac` | ✅ | [lib-node-crypto-mac.ts](conformance/lib-node-crypto-mac.ts) | KMAC over `crypto/sha3` cSHAKE; AES-CMAC per RFC 4493 |
859
+ | `createMac` `gmac` / `poly1305` / `siphash` / `blake2bmac` / `blake2smac`, `parsePKCS12`, SIV and GCM-SIV cipher modes | ✅ | [lib-node-crypto-mac-more.ts](conformance/lib-node-crypto-mac-more.ts), [lib-node-crypto-siv.ts](conformance/lib-node-crypto-siv.ts), [lib-node-crypto-pkcs12.ts](conformance/lib-node-crypto-pkcs12.ts) | Poly1305, SipHash, BLAKE2s / BLAKE2b and RFC 5297 S2V written out over the standard library; GCM-SIV's POLYVAL in GHASH's field. `parsePKCS12(bundle, { passphrase })` returns Node 26's `{ privateKey, certificate, additionalCertificates }`, on the vendored `go-pkcs12` |
845
860
 
846
861
  #### `node:zlib`
847
862
 
@@ -851,8 +866,9 @@ async function runs synchronously until its first `await`.
851
866
  | `createGzip` / `createGunzip` / `createDeflate` / `createInflate` / `createDeflateRaw` / `createInflateRaw` / `createUnzip` | ✅ | [lib-node-zlib-streams.ts](conformance/lib-node-zlib-streams.ts) | Transforms that (de)compress when the input ends |
852
867
  | Callback forms `gzip` / `gunzip` / `deflate` / `inflate` / `deflateRaw` / `inflateRaw` / `unzip` (`buf, [options], cb`) and `util.promisify` of them | ✅ | [lib-node-zlib-async.ts](conformance/lib-node-zlib-async.ts) | The codec runs on a goroutine; the callback runs on the event loop |
853
868
  | Brotli: `brotliCompressSync` / `brotliDecompressSync`, callback and promisified `brotliCompress` / `brotliDecompress`, `createBrotliCompress` / `createBrotliDecompress`, `constants.BROTLI_*` | ✅ | [lib-node-zlib-brotli.ts](conformance/lib-node-zlib-brotli.ts) | The vendored `andybalholm/brotli` (pure Go, only linked into programs that use it); `params` quality / window. Output matches Node's; decoder errors carry Node's codes |
854
- | ZIP archives: `ZipFile` (`open(Sync)`, `get` / `add` / `delete` / `compact`, `stream`), `ZipBuffer`, `ZipEntry`, `createZipArchive(Sync)`, `zipFiles`, `get/setMaxZipContentSize` | ❌ | — | **Node 26** (26.8). Feasible on Go's `archive/zip` |
855
- | Iterable compression: `compressGzipSync()` / `decompressGzipSync()` and the Deflate / Brotli / Zstd variants; Zstd itself (`zstdCompress(Sync)` & co.) | ❌ | — | **Node 25** (25.9) for the iterable forms. Zstd needs a vendored pure-Go codec (`klauspost/compress/zstd`) |
869
+ | ZIP archives: `ZipFile` (`open(Sync)`, `get` / `add` / `delete` / `compact`, `stream`), `ZipBuffer`, `ZipEntry`, `createZipArchive(Sync)`, `zipFiles`, `get/setMaxZipContentSize` | ✅ | [lib-node-zlib-zip.ts](conformance/lib-node-zlib-zip.ts) | **Node 26** (26.8). Archives written byte for byte as Node writes them (`lib/internal/zip`: local headers, Zip64 extras for streamed or oversized members, data descriptors); entries take Buffer / TypedArray / ArrayBuffer / DataView, and `method: 'zstd'` |
870
+ | Zstd: `zstdCompressSync` / `zstdDecompressSync`, callback and promisified `zstdCompress` / `zstdDecompress`, `createZstdCompress` / `createZstdDecompress`, `constants.ZSTD_*` | ✅ | [lib-node-zlib-zstd.ts](conformance/lib-node-zlib-zstd.ts) | The vendored `klauspost/compress` (pure Go; only linked into programs that use it) — `level` and `params` window / level. Compressed bytes are the encoder's, so sizes are only compared for their order; it decodes libzstd's frames, decoder errors carry libzstd's codes, and bytes after the last frame are ignored |
871
+ | Iterable compression: `compressGzipSync()` / `decompressGzipSync()` and the Deflate / Brotli / Zstd variants | ❌ | — | Not in Node 26.13 yet |
856
872
 
857
873
  #### `node:timers`
858
874
 
@@ -868,21 +884,22 @@ async function runs synchronously until its first `await`.
868
884
  | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :----: | ------------------------------------------------------------------ | ------------------------------------------------- |
869
885
  | `performance.now` / `timeOrigin` / `mark` / `measure` / `getEntries*` / `clearMarks`; global `performance` | ✅ | [lib-node-perf-hooks.ts](conformance/lib-node-perf-hooks.ts) | Monotonic milliseconds since process start |
870
886
  | `PerformanceObserver` (`entryTypes` / `type` + `buffered`, batched, sorted by `startTime`), `timerify`, `createHistogram`, `monitorEventLoopDelay`, `eventLoopUtilization` | ✅ | [lib-node-perf-observer.ts](conformance/lib-node-perf-observer.ts) | `eventLoopUtilization` is estimated from CPU time |
871
- | Histogram statistics (`cdf` / `ccdf` / `countAt` / `percentileCI` / `meanCI` / `skewness` / `kurtosis` / `ewma*`, `welchTest` / `ksTest` / `mannWhitneyTest` / `cohensD`, `subtract` / `diff` / `snapshot`, `export` / `importHistogram`), `recordCorrected`, `createSlidingWindowHistogram` | ❌ | — | **Node 26** (26.8 – 26.11). Arithmetic over the recorded values |
887
+ | Histogram `cdf` / `ccdf` / `countAt` / `skewness` / `kurtosis` / `snapshot`, `recordCorrected`, `add` / `subtract` | ✅ | [lib-node-hooks-events-node26.ts](conformance/lib-node-hooks-events-node26.ts) | Over the recorded values (population moments; excess kurtosis) |
888
+ | Histogram `percentileCI` / `meanCI` / `ewma*` / `burnRate`, `welchTest` / `ksTest` / `mannWhitneyTest` / `cohensD` / `cliffsD`, `linearBuckets` / `logBuckets` / `qrde`, `diff`, `export` / `importHistogram`, `createSlidingWindowHistogram` | ❌ | — | **Node 26** (26.8 – 26.11): needs HdrHistogram's bucketed counts (significant figures) under them — a list of raw values does not reproduce them — plus the C library's statistical methods (Student-t / Kolmogorov p-values, the EWMA over recordDelta, burnRate, qrde, diff, the export blob format and the sliding window's chunk timers) |
872
889
 
873
890
  #### `node:tty`
874
891
 
875
892
  | API | Status | Probe | Notes |
876
893
  | ------------------------------------ | :----: | ------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------- |
877
894
  | `isatty(fd)` | ✅ | [lib-node-perf-hooks.ts](conformance/lib-node-perf-hooks.ts) | Character-device check on fds 0–2 |
878
- | `ReadStream` / `WriteStream` classes | ❌ | — | Feasible; the terminal calls behind them exist (`process.stdout.columns`, `process.stdin.setRawMode` in [process](#nodeprocess)) |
895
+ | `ReadStream` / `WriteStream` classes | ✅ | [lib-node-tty-streams.ts](conformance/lib-node-tty-streams.ts) | Over the process's stdio streams; an fd that is not a terminal throws `ERR_TTY_INIT_FAILED`, as in Node |
879
896
 
880
897
  #### `node:constants` / `node:sys`
881
898
 
882
899
  | API | Status | Probe | Notes |
883
900
  | -------------------------------------- | :----: | ------------------------------------------------------------ | ------------------------------------------------------------ |
884
901
  | `node:constants` (`F_OK`, `SIGINT`, …) | ✅ | [lib-node-perf-hooks.ts](conformance/lib-node-perf-hooks.ts) | Deprecated upstream: `fs.constants` + `os.constants.signals` |
885
- | `node:sys` | ✅ | — | Deprecated alias of `node:util` |
902
+ | `node:sys` | ✅ | [lib-node-sys.ts](conformance/lib-node-sys.ts) | Deprecated alias of `node:util` |
886
903
 
887
904
  #### `node:events`
888
905
 
@@ -893,7 +910,8 @@ async function runs synchronously until its first `await`.
893
910
  | `events.once` (→ promise) / `events.on` (async iterator) | ✅ | [lib-node-events-once.ts](conformance/lib-node-events-once.ts) | `'error'` rejects `once` |
894
911
  | `EventTarget` / `Event` / `AbortController` / `AbortSignal` (`abort`, `timeout`, `any`, `throwIfAborted`) | ✅ | [lib-node-abort.ts](conformance/lib-node-abort.ts) | Globals (also exported by `node:events`) |
895
912
  | `errorMonitor`, `captureRejections` (option and global), `getMaxListeners` / `setMaxListeners` (static), `addAbortListener` | ✅ | [lib-node-events-extra.ts](conformance/lib-node-events-extra.ts) | Captures rejections of listeners that return a promise; async arrow listeners run inline (their `await`s don't yield to `emit`) |
896
- | Symbol event names other than `errorMonitor`, `EventEmitterAsyncResource`, `Symbol.for('nodejs.rejection')` | ❌ | — | Event names are strings today; symbols are unique pointers, usable as listener keys, and `EventEmitterAsyncResource` fits on `AsyncResource` |
913
+ | Symbol event names, `EventEmitterAsyncResource` | ✅ | [lib-node-hooks-events-node26.ts](conformance/lib-node-hooks-events-node26.ts) | Each symbol is its own listener key; `eventNames()` lists it by description |
914
+ | `Symbol.for('nodejs.rejection')` / `captureRejectionSymbol` handlers | ✅ | [lib-node-events-rejection.ts](conformance/lib-node-events-rejection.ts) | A subclass's own method gets `(err, event, ...args)` instead of an `'error'` event. As with `captureRejections`, async arrow listeners run inline (a throw before their first `await` is not a rejection) |
897
915
 
898
916
  #### `node:stream`
899
917
 
@@ -905,8 +923,9 @@ async function runs synchronously until its first `await`.
905
923
  | `Transform` / `PassThrough` / `Duplex`, `pipe` chains, subclasses overriding `_transform` & co. | ✅ | [lib-node-stream-transform.ts](conformance/lib-node-stream-transform.ts) | Option methods (`transform`, `flush`, `write`, `final`, `read`) and `_`-overrides both work; `this` inside option methods is not the stream (use the callback) |
906
924
  | `pipeline` / `finished` / `stream/promises` / `stream/consumers` (`text`, `json`, `buffer`) | ✅ | [lib-node-stream-pipeline.ts](conformance/lib-node-stream-pipeline.ts) | Errors destroy the pipeline and reach the callback / rejection |
907
925
  | `Readable.toWeb` / `fromWeb`, `Writable.toWeb` / `fromWeb`, `Duplex.toWeb` / `fromWeb`, `compose` (Node and web streams) | ✅ | [lib-node-stream-web-bridge.ts](conformance/lib-node-stream-web-bridge.ts) | `toWeb` pauses the Node stream while the web queue is full |
908
- | Backpressure (`highWaterMark` beyond `write()`'s return value), `compose` with generator functions | ❌ | — | Not implemented yet |
909
- | `duplexPair`, `Duplex.toWeb` `readableType`, `readable[Symbol.for('Stream.toAsyncStreamable')]()` | ❌ | — | **Node 25 / 26**: `readableType` (25.7); `duplexPair` destroys both ends together (26.1); `compose` is stable (26.2) |
926
+ | Backpressure: `highWaterMark` (+ `readable` / `writable` variants, `get/setDefaultHighWaterMark`), `write()` / `push()` → `false`, `'drain'`, `writableNeedDrain`, readable pausing in `pipe` / `pipeline` | ✅ | [lib-node-stream-backpressure.ts](conformance/lib-node-stream-backpressure.ts) | Lengths count bytes (characters once decoded) or objects; `_read` runs again while the buffer is below the mark; a transform's write completes once its output is read |
927
+ | `compose` with async generator functions, source generators and async sink functions | ✅ | [lib-node-stream-compose.ts](conformance/lib-node-stream-compose.ts) | Writes into a generator stage don't wait for it to pull them; a throw inside an async generator ends the process (generators run on their own goroutine), not the stream |
928
+ | `duplexPair`, `Readable.toWeb` `type` / `Duplex.toWeb` `readableType` (`'bytes'`), `readable[Symbol.for('Stream.toAsyncStreamable')]()` | ✅ | [lib-node-stream-duplex-pair.ts](conformance/lib-node-stream-duplex-pair.ts), [lib-node-stream-web-byob.ts](conformance/lib-node-stream-web-byob.ts) | As in Node 26.13: a write completes once the other side reads it, `destroy()` ends the other side's readable and `destroy(err)` destroys it. `toAsyncStreamable` yields batches of `Uint8Array`s (Node needs `--experimental-stream-iter`) |
910
929
 
911
930
  #### `node:stream/web`
912
931
 
@@ -917,7 +936,7 @@ async function runs synchronously until its first `await`.
917
936
  | `TransformStream` (`transform` / `flush` / `start`, controller `enqueue` / `error` / `terminate`), `pipeThrough` / `pipeTo` (`preventClose` / `preventAbort` / `preventCancel` / `signal`) | ✅ | [lib-node-stream-web.ts](conformance/lib-node-stream-web.ts) | A transform waits until its readable side wants more |
918
937
  | `CountQueuingStrategy` / `ByteLengthQueuingStrategy`, `{ highWaterMark, size }` strategies | ✅ | [lib-node-stream-web.ts](conformance/lib-node-stream-web.ts) | |
919
938
  | `TextEncoderStream` / `TextDecoderStream` (characters split across chunks), `CompressionStream` / `DecompressionStream` (`gzip`, `deflate`, `deflate-raw`) | ✅ | [lib-node-stream-web-bridge.ts](conformance/lib-node-stream-web-bridge.ts) | Decompression decodes once the input ends |
920
- | BYOB readers (`getReader({ mode: 'byob' })` reads into a view), byte-stream controllers' `byobRequest`, transferring streams | ❌ | — | `getReader({ mode: 'byob' })` returns a default reader |
939
+ | BYOB readers (`getReader({ mode: 'byob' })`, `ReadableStreamBYOBReader`, `read(view, { min })`), byte-stream controllers' `byobRequest` (`respond`, `respondWithNewView`), `autoAllocateChunkSize`, transferring streams (`structuredClone(stream, { transfer: [stream] })`) | ✅ | [lib-node-stream-web-byob.ts](conformance/lib-node-stream-web-byob.ts), [lib-node-stream-web-transfer.ts](conformance/lib-node-stream-web-transfer.ts) | Views are `Uint8Array`s / `Buffer`s, filled in place: the caller's view is not detached (JS transfers its buffer). A transferred stream reads / writes the locked original in-process; `MessagePort` transfer lists don't carry streams |
921
940
 
922
941
  #### `node:readline`
923
942
 
@@ -928,7 +947,7 @@ async function runs synchronously until its first `await`.
928
947
  | `question(prompt)` (synchronous) | ✅ | [lib-node-readline-question.ts](conformance/lib-node-readline-question.ts) | TypeNative extension (not in Node): used by the self-hosted compiler |
929
948
  | `cursorTo` / `moveCursor` / `clearLine` / `clearScreenDown` | ✅ | [lib-node-readline-cursor.ts](conformance/lib-node-readline-cursor.ts) | ANSI escape sequences written to the stream; optional callback |
930
949
  | `emitKeypressEvents(stream)` (`'keypress'` with `(str, key)`) | ✅ | [lib-node-readline-keypress.ts](conformance/lib-node-readline-keypress.ts) | A port of Node's key decoder: names, `ctrl` / `meta` / `shift`, xterm / rxvt / putty sequences, Escape after 500 ms. `str` is `""` (not `undefined`) for escape sequences, and so are `name` / `code` when Node leaves them out |
931
- | `Interface` line editing, `history`, `completer` | ❌ | — | Feasible: keypresses and raw mode exist; needs the terminal-mode line editor on top |
950
+ | `Interface` line editing (`terminal: true`, or stdin and stdout both terminals), `history` / `historySize` / `removeHistoryDuplicates`, `completer`, `line` / `cursor` / `getCursorPos()` | ✅ | [lib-node-readline-editing.ts](conformance/lib-node-readline-editing.ts) | Cursor keys, Home / End, Emacs ctrl / meta keys, history prefix search and `'history'` events, sync or callback completers (a second Tab lists the candidates); the line is redrawn with ANSI sequences, without wrapping across terminal rows |
932
951
 
933
952
  #### `node:child_process`
934
953
 
@@ -939,8 +958,8 @@ async function runs synchronously until its first `await`.
939
958
  | `fork(modulePath, args, { env, cwd, silent })` → `send` / `'message'` / `disconnect` / `'disconnect'` / `connected`; in the child `process.send` / `process.on('message')` / `process.connected` / `process.disconnect` | ✅ | [lib-node-child-process-fork.ts](conformance/lib-node-child-process-fork.ts) | The child is this program run again (branch on `process.argv` / `process.send`), linked over loopback TCP; messages are structured clones (a superset of Node's default JSON) |
940
959
  | `spawn` `detached`, `child.unref()` / `ref()` | ✅ | [lib-node-child-process-detached.ts](conformance/lib-node-child-process-detached.ts) | A new session (`setsid`) on Unix; `DETACHED_PROCESS \| CREATE_NEW_PROCESS_GROUP` on Windows, as libuv does. An unref'ed child's stdio pipes don't keep the parent alive either |
941
960
  | `fork('./child.ts')` (another file) | ✅ | [lib-node-worker-entry.ts](conformance/lib-node-worker-entry.ts) | As for workers: a second entry point of the binary |
942
- | `stdio` arrays beyond stdout | ❌ | — | Extra `stdio` entries are `ExtraFiles` |
943
- | `serialization: 'advanced'` handle passing (`send(msg, socket)`) | ❌ | — | Needs file-descriptor passing over the IPC channel (`SCM_RIGHTS` on Unix) |
961
+ | `stdio` arrays beyond stdout | ✅ | [lib-node-child-process-stdio.ts](conformance/lib-node-child-process-stdio.ts) | Extra `pipe` entries are `ExtraFiles` (fds 3, 4, …; the parent reads `child.stdio[3+n]`); Windows has no `ExtraFiles`, so each entry is a named pipe the child opens as a real file |
962
+ | `serialization: 'advanced'` handle passing (`send(msg, socket)`) | ✅ | [lib-node-ipc-handle.ts](conformance/lib-node-ipc-handle.ts) | Both ways: the socket arrives as the second `'message'` argument with the real addresses and talks to the real peer, and the sender's copy goes silent, as in Node. It is not descriptor passing: the sender keeps the connection and relays its bytes over the IPC link, so it must stay alive and every byte goes through it |
944
963
 
945
964
  #### `node:cluster`
946
965
 
@@ -949,7 +968,7 @@ async function runs synchronously until its first `await`.
949
968
  | `isPrimary` / `isWorker` / `isMaster`, `fork(env)`, `workers`, `worker`, `setupPrimary` / `settings`, `disconnect(cb)`, `SCHED_RR` / `schedulingPolicy`; events `'fork'` / `'online'` / `'listening'` / `'message'` / `'disconnect'` / `'exit'` | ✅ | [lib-node-cluster.ts](conformance/lib-node-cluster.ts) | Workers are this program run again with `NODE_UNIQUE_ID` set |
950
969
  | `Worker` (`id`, `process`, `send`, `'message'`, `disconnect`, `kill`, `isConnected`, `isDead`, `exitedAfterDisconnect`); `process.send` from workers | ✅ | [lib-node-cluster.ts](conformance/lib-node-cluster.ts) | |
951
970
  | Shared ports: `net` / `http` / `https` / `tls` servers in workers listen on one port (also `listen(0)`), connections round-robin | ✅ | [lib-node-cluster.ts](conformance/lib-node-cluster.ts) | The primary owns the listener and relays each connection to a worker's private loopback listener with the client's address (no handle passing) |
952
- | `SCHED_NONE` (OS-level balancing), `exclusive: true` listeners, dgram sockets in workers | ❌ | — | Everything goes through the primary today; `SO_REUSEPORT` or handle passing would remove it |
971
+ | `SCHED_NONE` (OS-level balancing), `exclusive: true` listeners, dgram sockets in workers | ✅ | [lib-node-cluster-none.ts](conformance/lib-node-cluster-none.ts) | With `schedulingPolicy = SCHED_NONE` (per process, as in Node) each worker binds the port itself with `SO_REUSEPORT` on Unix, where the kernel balances. Windows has no balancing equivalent: `SO_REUSEADDR` lets the workers bind, but connections may all go to one of them (Node shares one listening handle there). `exclusive: true` binds directly; workers' `reuseAddr` dgram sockets share a port the same way |
953
972
 
954
973
  #### `node:diagnostics_channel`
955
974
 
@@ -968,14 +987,14 @@ async function runs synchronously until its first `await`.
968
987
  | `isIP` / `isIPv4` / `isIPv6` | ✅ | [lib-node-net.ts](conformance/lib-node-net.ts) | |
969
988
  | `BlockList` (`addAddress` / `addRange` / `addSubnet` / `check` / `rules` / `isBlockList`) / `SocketAddress` (`parse`, `toJSON`) | ✅ | [lib-node-net-blocklist.ts](conformance/lib-node-net-blocklist.ts) | `net/netip`; IPv4-mapped IPv6 addresses match IPv4 rules, as in Node |
970
989
  | `net.Stream`, `get/setDefaultAutoSelectFamily(AttemptTimeout)` | ✅ | [lib-node-net-blocklist.ts](conformance/lib-node-net-blocklist.ts) | Go's dialer always races IPv4 / IPv6, so the settings are reported but not used |
971
- | IPC handle passing (`send(msg, socket)`) | ❌ | — | Needs file-descriptor passing over the IPC channel |
990
+ | IPC handle passing (`send(msg, socket)`) | ✅ | [lib-node-ipc-handle.ts](conformance/lib-node-ipc-handle.ts) | A relay, not `SCM_RIGHTS` / `WSADuplicateSocket`: the sender keeps the connection and relays its bytes over the IPC link, and the receiver gets a live `net.Socket` to the real peer with its addresses. The sender must stay alive while the socket is in use |
972
991
 
973
992
  #### `node:dns`
974
993
 
975
994
  | API | Status | Probe | Notes |
976
995
  | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :----: | ---------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
977
996
  | `lookup` (`family`, `all`) and `dns/promises` / `dns.promises` `lookup` | ✅ | [lib-node-dns.ts](conformance/lib-node-dns.ts) | Go's resolver; `getaddrinfo ENOTFOUND host` errors with `hostname` |
978
- | `resolve` (rrtype) / `resolve4` / `resolve6` / `resolveCname` / `resolveMx` / `resolveTxt` / `resolveNs` / `resolveSrv` / `reverse` (callback and promise forms), `getServers` | ✅ | — | Implemented, not probed (needs a network); `getServers` reads `/etc/resolv.conf` |
997
+ | `resolve` (rrtype) / `resolve4` / `resolve6` / `resolveCname` / `resolveMx` / `resolveTxt` / `resolveNs` / `resolveSrv` / `reverse` (callback and promise forms), `getServers` | ✅ | [lib-node-dns-module.ts](conformance/lib-node-dns-module.ts) | Against a loopback DNS server (no network needed); a TXT record's character-strings come back joined, as Go's `LookupTXT` gives them. `getServers` reads `/etc/resolv.conf` |
979
998
  | `Resolver` class (callback and `dns/promises` forms: `setServers` / `getServers` / `setLocalAddress` / `cancel`, `timeout` option), module `setServers`, `lookupService` | ✅ | [lib-node-dns-resolver.ts](conformance/lib-node-dns-resolver.ts) | Go's pure resolver dialing the configured servers in turn; `ETIMEOUT` / `ECANCELLED`; services from `/etc/services` |
980
999
  | `resolveAny` / `resolveCaa` / `resolveNaptr` / `resolvePtr` / `resolveSoa` (and `resolve(name, rrtype)` for them), `resolve4` / `resolve6` `{ ttl: true }`, the `tries` option | ✅ | [lib-node-dns-records.ts](conformance/lib-node-dns-records.ts) | Queries built and parsed with `golang.org/x/net/dns/dnsmessage`, copied from GOROOT like `x/text`: UDP with EDNS0, TCP when truncated, each server in turn `tries` times (default 4, 5 s each). Errors are Node's (`queryX ENOTFOUND host`, `ENODATA`, `ESERVFAIL`, `EREFUSED`, `ETIMEOUT`, `ECANCELLED`); `resolveAny` groups records by type in Node's order |
981
1000
 
@@ -991,19 +1010,21 @@ async function runs synchronously until its first `await`.
991
1010
  | `headers` values | ✅ | [lib-node-http-client.ts](conformance/lib-node-http-client.ts) | Repeated headers are joined with `, ` (`; ` for `cookie`) — including `set-cookie`, which Node keeps as an array: use `headersDistinct['set-cookie']` |
992
1011
  | Server `'upgrade'` / `'connect'` (`req, socket, head`) and client `'upgrade'` / `'connect'` events | ✅ | [lib-node-http-upgrade.ts](conformance/lib-node-http-upgrade.ts) | The server hijacks the connection; an upgrade nobody listens for is an ordinary request, an unhandled CONNECT closes the connection, as in Node |
993
1012
  | `res.addTrailers()` | ✅ | [lib-node-http-trailers.ts](conformance/lib-node-http-trailers.ts) | Sent after a chunked body, as in Node (not with a `Content-Length`); clients read them as `res.trailers` |
994
- | Trailers on client requests, `Agent` socket pooling control | ❌ | — | Feasible: Go's `Request.Trailer`, `Transport.MaxConnsPerHost` / `MaxIdleConnsPerHost` |
995
- | `statusMessage` on responses we send, `'checkContinue'` | ❌ | — | Go's `ResponseWriter` sends its standard reason phrases and answers `100-continue` itself: needs a hijacked connection |
996
- | `res.writeInformation(status, headers)` (any 1xx), `req.signal`, `isValidHeaderName` / `isValidHeaderValue`, `websocketMask` / `websocketUnmask`, the `httpValidation` option | ❌ | — | **Node 26**: `req.signal` (26.1), `writeInformation` (26.2), `httpValidation` (26.3), header checks (26.11), WebSocket masking (26.12). Removed in 26.0: `writeHeader` (never declared here) |
1013
+ | Trailers on client requests, `Agent` socket pooling control (`maxSockets`, `maxTotalSockets`, `maxFreeSockets`, `keepAlive`, `keepAliveMsecs`, `scheduling`) | ✅ | [lib-node-http-agent.ts](conformance/lib-node-http-agent.ts), [lib-node-http-request-trailers.ts](conformance/lib-node-http-request-trailers.ts) | Trailers go after a streamed (chunked) body whether or not a `Trailer` header names them; `end(data)` alone gets a `Content-Length` and sends only declared ones. `maxSockets` is Go's `MaxConnsPerHost` plus a per-origin dial limit, `maxTotalSockets` a process-wide one, `keepAlive` + `maxFreeSockets` the idle pool. `globalAgent` keeps connections alive, as Node 19+ |
1014
+ | `statusMessage` on responses we send, `'checkContinue'` / `'checkExpectation'` | ✅ | [lib-node-http-continue.ts](conformance/lib-node-http-continue.ts) | The HTTP/1 writer sends the reason phrase; with a `checkContinue` listener the request body waits for `res.writeContinue()`, otherwise the 100 is automatic |
1015
+ | `res.writeInformation(status, headers)` (any 1xx), `req.signal`, `isValidHeaderName` / `isValidHeaderValue`, `websocketMask` / `websocketUnmask` | ✅ | [lib-node-http-node26.ts](conformance/lib-node-http-node26.ts) | `req.signal` aborts when the client goes away before the response ends |
1016
+ | The `httpValidation` option (`'strict'` / `'relaxed'` / `'insecure'`, `insecureHTTPParser`) | ✅ | [lib-node-http-validation.ts](conformance/lib-node-http-validation.ts) | **Node 26.3**: strict rejects control bytes in header values (obs-text stays legal), relaxed / insecure accept them on requests and responses; outgoing headers are checked when set |
997
1017
 
998
1018
  #### `node:http2`
999
1019
 
1000
1020
  | API | Status | Probe | Notes |
1001
1021
  | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :----: | -------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
1002
- | `createServer` (cleartext h2c) / `createSecureServer({ key, cert, allowHTTP1 })`; `'stream'` → `ServerHttp2Stream` (`respond`, `write` / `end`, `respondWithFile`, `close`, a Duplex over the request body) with `:method` / `:path` / `:scheme` / `:authority` headers | ✅ | [lib-node-http2.ts](conformance/lib-node-http2.ts), [lib-node-http2-secure.ts](conformance/lib-node-http2-secure.ts) | On `net/http`'s HTTP/2 (`http.Protocols`) |
1022
+ | `createServer` (cleartext h2c) / `createSecureServer({ key, cert, allowHTTP1 })`; `'stream'` → `ServerHttp2Stream` (`respond`, `write` / `end`, `respondWithFile`, `close`, a Duplex over the request body) with `:method` / `:path` / `:scheme` / `:authority` headers | ✅ | [lib-node-http2.ts](conformance/lib-node-http2.ts), [lib-node-http2-secure.ts](conformance/lib-node-http2-secure.ts), [lib-node-http2-allow-http1.ts](conformance/lib-node-http2-allow-http1.ts) | Each connection is served by `golang.org/x/net/http2`'s `ServeConn` (net/http's HTTP/2 on Go 1.27); with `allowHTTP1`, a TLS connection that negotiates `http/1.1` goes to the node:http server |
1003
1023
  | Compatibility API: `(req, res)` handlers get `Http2ServerRequest` / `Http2ServerResponse` (`httpVersion` `'2.0'`, pseudo-headers in `req.headers`) | ✅ | [lib-node-http2.ts](conformance/lib-node-http2.ts) | The node:http objects |
1004
1024
  | `connect(authority, { ca, rejectUnauthorized, servername })` → `ClientHttp2Session` (`request`, `close`, `destroy`, `'connect'` / `'error'` / `'close'`, `alpnProtocol`, `encrypted`); `ClientHttp2Stream` (`'response'` with `:status`, body as a Readable, request bodies) | ✅ | [lib-node-http2.ts](conformance/lib-node-http2.ts), [lib-node-http2-secure.ts](conformance/lib-node-http2-secure.ts) | Connection failures error the session and cancel its streams (`ERR_HTTP2_STREAM_CANCEL`); request bodies are sent once the writable side ends |
1005
1025
  | `constants`, `getDefaultSettings` | ✅ | [lib-node-http2.ts](conformance/lib-node-http2.ts) | |
1006
- | `ping`, `settings` / `goaway` / `altsvc`, `'session'` events, `getPackedSettings`, upgrades from HTTP/1 | ❌ | — | Go's bundled HTTP/2 hides frames: needs a vendored `golang.org/x/net/http2` |
1026
+ | `ping`, `settings`, `goaway`, `altsvc`, the server's `'session'` event, `type`, `localSettings` / `remoteSettings` / `pendingSettingsAck`, the `'ping'` / `'localSettings'` / `'remoteSettings'` / `'goaway'` / `'altsvc'` events, `getPackedSettings` / `getUnpackedSettings` | ✅ | [lib-node-http2-frames.ts](conformance/lib-node-http2-frames.ts) | On the vendored `golang.org/x/net/http2`, whose `ServeConn` / `NewClientConn` run each session over a connection that is split into frames: the session's own PING / SETTINGS / GOAWAY / ALTSVC frames go out only between the library's frames, and the peer's reach the session (the ACKs of its own PINGs and SETTINGS are kept from the library). Callbacks follow the peer's ACK; a NO_ERROR GOAWAY closes the receiving session, as in Node. `settings()` never advertises a larger `initialWindowSize` / `maxFrameSize` / `headerTableSize` than Go's HTTP/2 itself does (the peer would send what it refuses) |
1027
+ | HTTP/1.1 `Upgrade: h2c` handshake | 🚫 | — | Cleartext HTTP/2 uses prior knowledge (the client preface), as Node does: an HTTP/1.1 Upgrade request is not turned into a session |
1007
1028
  | Server push | 🚫 | — | Deprecated (browsers removed it); Go's server doesn't push |
1008
1029
 
1009
1030
  #### `node:tls`
@@ -1012,9 +1033,10 @@ async function runs synchronously until its first `await`.
1012
1033
  | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | :----: | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1013
1034
  | `createServer({ key, cert, ca, requestCert, ALPNProtocols, minVersion, maxVersion }, cb)` / `'secureConnection'` | ✅ | [lib-node-tls.ts](conformance/lib-node-tls.ts) | Handshakes run on the accept goroutine |
1014
1035
  | `connect` (`host`, `port`, `ca`, `servername`, `rejectUnauthorized`, client `key` / `cert`) / `'secureConnect'`; `TLSSocket` (`authorized`, `authorizationError`, `encrypted`, `alpnProtocol`, `getPeerCertificate`, `getProtocol`, `getCipher`) | ✅ | [lib-node-tls.ts](conformance/lib-node-tls.ts) | Node's verification codes: `DEPTH_ZERO_SELF_SIGNED_CERT`, `SELF_SIGNED_CERT_IN_CHAIN`, `UNABLE_TO_GET_ISSUER_CERT_LOCALLY`, `CERT_HAS_EXPIRED`, `ERR_TLS_CERT_ALTNAME_INVALID` |
1015
- | `createSecureContext` / `getCiphers` / `DEFAULT_MIN_VERSION` / `DEFAULT_MAX_VERSION` | ✅ | — | Implemented, not probed; cipher names are Go's |
1036
+ | `createSecureContext` / `getCiphers` / `DEFAULT_MIN_VERSION` / `DEFAULT_MAX_VERSION` | ✅ | [lib-node-tls-context.ts](conformance/lib-node-tls-context.ts) | Cipher names are Go's |
1016
1037
  | `checkServerIdentity` (function and `connect` option) | ✅ | [lib-node-tls-identity.ts](conformance/lib-node-tls-identity.ts) | Node's rules: one leftmost wildcard label, IP altnames, CN only without DNS altnames |
1017
- | PFX / passphrase-protected keys, session resumption, `renegotiate`, `rootCertificates` | ❌ | — | Not implemented yet: PFX needs a PKCS#12 decoder; `rootCertificates` can embed Mozilla's bundle (as Node does); Go has session tickets (`ClientSessionCache`) and client-side renegotiation |
1038
+ | PFX (`pfx`, `{ buf, passphrase }` entries) / passphrase-protected keys, session resumption (`session`, `'newSession'` / `'resumeSession'`, `getSession`, `isSessionReused`), `rootCertificates` | ✅ | [lib-node-tls-pfx.ts](conformance/lib-node-tls-pfx.ts) | PFX on the vendored `go-pkcs12`; session tickets are Go's (`WrapSession` / `UnwrapSession`), with Node's opaque `session` Buffers; `rootCertificates` is Node's 118-certificate Mozilla bundle, linked only into programs that read it |
1039
+ | `renegotiate` | 🚫 | — | Deprecated: TLS 1.3 forbids renegotiation, and Go's `crypto/tls` never starts or accepts one on a server |
1018
1040
 
1019
1041
  #### `node:dgram`
1020
1042
 
@@ -1022,7 +1044,7 @@ async function runs synchronously until its first `await`.
1022
1044
  | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :----: | ---------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1023
1045
  | `createSocket('udp4' \| 'udp6' \| { type })`, `bind`, `send` (offset / length forms, callback), `'message'(msg, rinfo)`, `address`, `close`, `connect` / `disconnect` / `remoteAddress`, `ref` / `unref` | ✅ | [lib-node-dgram.ts](conformance/lib-node-dgram.ts) | `send` binds an unbound socket first, as in Node |
1024
1046
  | `addMembership` / `dropMembership`, `setMulticastInterface` / `setMulticastTTL` / `setMulticastLoopback`, `setBroadcast`, `setTTL` | ✅ | [lib-node-dgram-multicast.ts](conformance/lib-node-dgram-multicast.ts) | `setsockopt` on the socket per OS (Linux, macOS, the BSDs, Windows). Options before `bind()` throw `EBADF` and membership binds an unbound socket, as in Node |
1025
- | `addSourceSpecificMembership` / `dropSourceSpecificMembership` | ❌ | — | Feasible: `IP_ADD_SOURCE_MEMBERSHIP`, whose struct layout differs per OS |
1047
+ | `addSourceSpecificMembership` / `dropSourceSpecificMembership` | ✅ | [lib-node-dgram-ssm.ts](conformance/lib-node-dgram-ssm.ts) | `IP_ADD_SOURCE_MEMBERSHIP` / `MCAST_JOIN_SOURCE_GROUP`, whose struct layout differs per OS (Linux, macOS, the BSDs, Windows); an unbound socket binds first and errors are Node's (`EINVAL`, `ERR_SOCKET_DGRAM_NOT_RUNNING`), as in Node |
1026
1048
 
1027
1049
  #### `fetch`
1028
1050
 
@@ -1040,7 +1062,7 @@ async function runs synchronously until its first `await`.
1040
1062
  | ------------------------------------------------------------------------------------------------------------ | :----: | -------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1041
1063
  | `AsyncLocalStorage` (`run`, `getStore`, `enterWith`, `exit`, `disable`, static `bind` / `snapshot`) | ✅ | [lib-node-async-hooks.ts](conformance/lib-node-async-hooks.ts) | The store follows timers, `setImmediate`, `nextTick`, microtasks, promise callbacks, `await`, async function bodies, fs / dns callbacks; streams, sockets and servers emit in the context they were created / listened in |
1042
1064
  | `AsyncResource` (`runInAsyncScope`, `bind`, `asyncId`, static `bind`) | ✅ | [lib-node-async-hooks.ts](conformance/lib-node-async-hooks.ts) | Captures the context it is created in |
1043
- | `createHook` callbacks (`init` / `before` / `after` / `destroy`), real `executionAsyncId` / `triggerAsyncId` | ❌ | — | `createHook` is accepted but never calls back; ids are always `1` / `0`. Feasible: the event loop's `TnAsyncSnapshot` / `TnAsyncRun` are where the callbacks would fire |
1065
+ | `createHook` callbacks (`init` / `before` / `after` / `destroy`), real `executionAsyncId` / `triggerAsyncId` | ✅ | [lib-node-hooks-events-node26.ts](conformance/lib-node-hooks-events-node26.ts) | Ids are tracked once a program uses them: each timer / promise continuation / I/O callback gets one; `init` reports the type as `'Timeout'` |
1044
1066
 
1045
1067
  #### `node:test`
1046
1068
 
@@ -1057,7 +1079,11 @@ async function runs synchronously until its first `await`.
1057
1079
  | Snapshots: `t.assert.snapshot` / `t.assert.fileSnapshot`, `--test-update-snapshots`, `snapshot.setDefaultSnapshotSerializers` / `setResolveSnapshotPath` | ✅ | [lib-node-test-snapshots.ts](conformance/lib-node-test-snapshots.ts) | Node's `<test file>.snapshot` format (entries sorted by name, JSON values), redirectable with `setResolveSnapshotPath`; a missing file or entry names the update flag |
1058
1080
  | `run({ files })`: a TestsStream (`test:pass` & co. events, `compose(reporter)`, `pipe`) | ✅ | [lib-node-test-run.ts](conformance/lib-node-test-run.ts) | Files with literal paths compile in as entry points and run as child processes; top-level numbering continues across files, child output becomes `test:stdout` / `test:stderr`, coverage and summaries merge |
1059
1081
  | Coverage: `--experimental-test-coverage`, `--test-coverage-include` / `-exclude`, `-lines` / `-branches` / `-functions` thresholds | ✅ | [lib-node-test-coverage.ts](conformance/lib-node-test-coverage.ts) | Programs that import `node:test` count what runs over V8-style source ranges (functions, blocks, ternary arms, `&&` / `\|\|` / `??` operands, class field initializers); `node:coverage ignore` comments exclude ranges; lcov records and the tap / spec table match Node's output |
1060
- | `t.log` / `'test:log'`, `getTestContext`, `t.passed` / `t.attempt` / `t.workerId`, tags (`t.tags`), `--test-randomize` / `--test-random-seed`, `'test:interrupted'`, `t.assert.called` / `callCount` / `nthCalledWith` / `lastCalledWith`, `--test-coverage-include-all` | ❌ | — | **Node 25 / 26**: `'test:interrupted'` (25.7), `workerId` (25.8), `getTestContext` / randomized order (26.1), tags (26.2), `t.log` (26.6), `--test-coverage-include-all` (26.7), call assertions (26.12) |
1082
+ | `t.log`, `getTestContext`, `t.passed` / `t.attempt` / `t.workerId`, tags (`t.tags`), `t.assert.called` / `callCount` / `nthCalledWith` / `lastCalledWith` | ✅ | [lib-node-test-node26.ts](conformance/lib-node-test-node26.ts) | `t.log` reports like `t.diagnostic`; `attempt` is 0 and `workerId` undefined (no retries, no isolated workers) |
1083
+ | `--test-randomize` / `--test-random-seed`, the `Randomized test order seed` diagnostic | ✅ | [lib-node-test-randomize.ts](conformance/lib-node-test-randomize.ts) | Each parent's siblings run in a seeded random order — Node's Mulberry32 pick among those still waiting (`floor(rng() * n)`, spliced), one generator per parent; `--test-random-seed` implies randomize, and without one a random seed is generated and reported before the summary (as `node --test` does) |
1084
+ | `--test-coverage-include-all` | ✅ | [lib-node-test-coverage-include-all.ts](conformance/lib-node-test-coverage-include-all.ts) | The working directory's `**/*.{cjs,cts,js,mjs,mts,ts}` files that never ran (without node_modules directories) appear in the report with their whole file uncovered (0% lines, 100% branches and functions), grouped and indented like Node's table |
1085
+ | the `'test:log'` event | ✅ | [lib-node-test-log.ts](conformance/lib-node-test-log.ts) | t.log emits `test:log` on run()'s TestsStream (the message and the test's name), while the reporters still show the message like t.diagnostic's |
1086
+ | `'test:interrupted'` | ❌ | — | Needs a SIGINT delivered to a child mid-run; Windows' console emulation doesn't carry it to a compiled program the way Node's own children get it |
1061
1087
 
1062
1088
  #### `node:worker_threads`
1063
1089
 
@@ -1068,7 +1094,7 @@ async function runs synchronously until its first `await`.
1068
1094
  | Uncaught exceptions in a worker / `terminate()` | ✅ | [lib-node-worker-errors.ts](conformance/lib-node-worker-errors.ts) | `'error'` with the message, then exit code `1` |
1069
1095
  | `MessageChannel` / `MessagePort` (`postMessage`, `on('message')`, `onmessage`, `start`, `close`, `ref` / `unref`), `receiveMessageOnPort`, `BroadcastChannel`, `get/setEnvironmentData` | ✅ | [lib-node-worker-threads.ts](conformance/lib-node-worker-threads.ts) | Channels and broadcast channels work within one process (ports can't be transferred to workers) |
1070
1096
  | `new Worker('./worker.ts')` (another file) | ✅ | [lib-node-worker-entry.ts](conformance/lib-node-worker-entry.ts) | The file (a literal path, `new URL('./f.ts', import.meta.url)` or `path.join(__dirname, 'f.ts')`, resolved from the source file at compile time) is compiled into the binary as a second entry point; the child runs it instead of the program, picked by `TN_ENTRY`. Its top-level names share one Go package with the program, so they must not clash; files the program imports still run their top-level code in every process |
1071
- | Transferring ports, `resourceLimits`, worker `stdout: true` streams | ❌ | — | Ports can be relayed through the parent; `resourceLimits` maps to `debug.SetMemoryLimit` |
1097
+ | Transferring ports, `resourceLimits`, worker `stdout: true` streams | ✅ | [lib-node-worker-transfer.ts](conformance/lib-node-worker-transfer.ts) | Ports relay over the worker link (a transferred port's messages travel as frames; close propagates); `resourceLimits` are the worker's soft memory limit with a live-heap monitor (`ERR_WORKER_OUT_OF_MEMORY`, exit 1) and `stackSizeMb` caps goroutine stacks; `stdout` / `stderr: true` streams and a parent-side `w.resourceLimits` that is `{}` once the worker has exited |
1072
1098
  | `eval: true`, `SharedArrayBuffer` / `Atomics` | 🚫 | — | `eval` needs a JavaScript engine; workers are processes, so memory is not shared |
1073
1099
 
1074
1100
  #### `node:sqlite`
@@ -1094,10 +1120,11 @@ network; it adds about 10 MB to a binary. Rows are records: `row.name`, `row as
1094
1120
  | `loadExtension` / `enableLoadExtension` | 🚫 | — | SQLite runs as Wasm inside the program; native extensions can't load |
1095
1121
  | `createSession` / `applyChangeset` | ❌ | — | The bundled SQLite build has no session extension: needs an emulation over the preupdate hook (hard) |
1096
1122
  | `serialize(dbName?)` / `deserialize(buffer, { dbName })` | ✅ | [lib-node-sqlite-serialize.ts](conformance/lib-node-sqlite-serialize.ts) | **Node 26** (26.1) API. The driver has no `sqlite3_serialize` binding, so the image goes through a temporary file and SQLite's backup API |
1097
- | `undefined` as a parameter value | ✅ | — | Binds NULL, as **Node 26** (26.10) does; Node 24 threw. `undefined` and `null` are both `nil` |
1123
+ | `undefined` as a parameter value | ✅ | [lib-node-sqlite-undefined.ts](conformance/lib-node-sqlite-undefined.ts) | Binds NULL, as **Node 26** (26.10) does; Node 24 threw. `undefined` and `null` are both `nil` |
1098
1124
  | `[Object: null prototype]` rows | 🚫 | — | Rows print as plain objects |
1099
- | `Database` / `Statement` class names | ❌ | — | **Node 26** (26.11) renames them; `DatabaseSync` / `StatementSync` stay as deprecated aliases (DEP0210). Only the `*Sync` names are declared |
1100
- | `statement.close()` / `statement[Symbol.dispose]()` / `stat(counter)` / `resetStats()`, `database.createModule(name, options)` (virtual tables) | ❌ | — | **Node 26**: statement methods (26.8), `createModule` (26.11) |
1125
+ | `Database` / `Statement` class names | ✅ | [lib-node-sqlite-node26.ts](conformance/lib-node-sqlite-node26.ts) | The same classes as `DatabaseSync` / `StatementSync` |
1126
+ | `statement.close()` / `statement[Symbol.dispose]()` / `stat(counter)` / `resetStats()` | ✅ | [lib-node-sqlite-node26.ts](conformance/lib-node-sqlite-node26.ts) | SQLite's statement status counters |
1127
+ | `database.createModule(name, options)` (virtual tables) | ❌ | — | **Node 26.11**: needs the driver's virtual-table module API wired to JS callbacks |
1101
1128
  | Finalizing a statement when it is garbage-collected | ✅ | [lib-node-sqlite-finalize.ts](conformance/lib-node-sqlite-finalize.ts) | `runtime.AddCleanup` posts the finalize to the event loop once nothing references the statement; `db.close()` finalizes the rest |
1102
1129
 
1103
1130
  #### `node:inspector`
@@ -1123,21 +1150,38 @@ network; it adds about 10 MB to a binary. Rows are records: `row.name`, `row as
1123
1150
  | API | Status | Probe | Notes |
1124
1151
  | ------------------------------------------------------- | :----: | ---------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1125
1152
  | `getHeapStatistics`, `serialize` / `deserialize` | ✅ | [lib-node-module-v8.ts](conformance/lib-node-module-v8.ts) | Heap numbers from `runtime.MemStats` (the limit is `GOMEMLIMIT`, else 4 GiB); `serialize` uses the structured-clone codec workers use, not V8's wire format; objects keep their key order |
1126
- | `getHeapSpaceStatistics`, `getHeapCodeStatistics` | ❌ | — | Feasible as approximations; Go's heap has no V8 spaces |
1153
+ | `getHeapSpaceStatistics`, `getHeapCodeStatistics` | ✅ | [lib-node-process-node26.ts](conformance/lib-node-process-node26.ts) | V8's space names: `old_space` is Go's heap, the rest are empty; code statistics are 0 |
1127
1154
  | Heap snapshots, `setFlagsFromString`, `startupSnapshot` | 🚫 | — | V8 internals; there is no V8 in a native binary |
1128
1155
 
1129
1156
  #### `node:wasi`
1130
1157
 
1131
- | API | Status | Probe | Notes |
1132
- | ------ | :----: | ----- | -------------------------------------------------------------------------- |
1133
- | `WASI` | ❌ | — | Needs a Wasm runtime: vendoring wazero (pure Go, no cgo) would provide one |
1158
+ `node:wasi` and the `WebAssembly` global run on [wazero](https://github.com/tetratelabs/wazero):
1159
+ a pure-Go WebAssembly runtime (an optimizing compiler on amd64 / arm64, an interpreter
1160
+ elsewhere), so programs need no cgo and still cross-compile. It ships in
1161
+ [govendor/](govendor/) with the other vendored modules and is linked only into programs that
1162
+ use WebAssembly; it adds about 4 MB to a binary. Every instance is a module of one wazero
1163
+ runtime, and imports link by reference: a memory two instances share is one memory.
1164
+
1165
+ | API | Status | Probe | Notes |
1166
+ | -------------------------------------------------------------------------------------------------------------------------------- | :----: | ------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1167
+ | `new WASI({ version: 'preview1', args, env, preopens, returnOnExit, stdin, stdout, stderr })`, `getImportObject()`, `wasiImport` | ✅ | [lib-node-wasi.ts](conformance/lib-node-wasi.ts) | wazero's WASI preview1 with real clocks and randomness; `stdin` / `stdout` / `stderr` take `fs.open` descriptors; preopens mount host directories |
1168
+ | `start(instance)` (returns `proc_exit`'s code), `initialize(instance)`, `ERR_WASI_ALREADY_STARTED` | ✅ | [lib-node-wasi.ts](conformance/lib-node-wasi.ts) | `returnOnExit: false` exits the process with the code |
1169
+ | `version: 'unstable'` | ✅ | [lib-node-wasi-unstable.ts](conformance/lib-node-wasi-unstable.ts) | The legacy ABI's import module name — the same functions under `wasi_unstable`, linked by wazero's function exporter — with a guest that imports it |
1170
+ | `WebAssembly.validate` / `compile` / `instantiate` (bytes → `{ module, instance }`, `Module` → `Instance`), `new Module` / `new Instance` | ✅ | [lib-webassembly-basic.ts](conformance/lib-webassembly-basic.ts) | The promises settle before they return: compilation runs on the event loop |
1171
+ | Exported functions: i32 / f32 / f64 as numbers, i64 as bigints, multi-value results as arrays; imported JS functions | ✅ | [lib-webassembly-basic.ts](conformance/lib-webassembly-basic.ts) | A throw inside an imported function crosses the wasm frames unchanged; a trap is a `RuntimeError` with wazero's message (`unreachable`, …) |
1172
+ | `Memory` (`buffer`, `grow`, `new Memory({ initial, maximum })`), `Global` (`value`, `valueOf`, `new Global({ value, mutable }, v)`) | ✅ | [lib-webassembly-linking.ts](conformance/lib-webassembly-linking.ts) | `buffer` views the memory's bytes; after `grow`, read it again (the old view is not detached). Shared (threads) memories are not supported |
1173
+ | Linking: JS-made memories / globals, another instance's exports, numbers for immutable globals | ✅ | [lib-webassembly-linking.ts](conformance/lib-webassembly-linking.ts) | An instance's exported function, used as an import, is called through JS (not wasm to wasm) |
1174
+ | `Module.imports` / `exports` / `customSections`, `CompileError` / `LinkError` / `RuntimeError` (`instanceof`) | ✅ | [lib-webassembly-basic.ts](conformance/lib-webassembly-basic.ts) | |
1175
+ | `Table`: exported, then imported again (`length`) | ✅ | [lib-webassembly-linking.ts](conformance/lib-webassembly-linking.ts) | An exported `Table` imports by reference: `instanceof WebAssembly.Table`, `length` 2, and the second module's `table.size` matches |
1176
+ | `new Table`, `table.get` / `set` / `grow`; tag / exception imports; `externref` tables | 🚫 | — | wazero v1.12 (the vendored runtime) exposes no table API — `api.Module` has a literal `TODO: Table` — and implements neither the exception-handling proposal (tags) nor host access to `externref` tables |
1177
+ | `compileStreaming` / `instantiateStreaming` | ✅ | [lib-node-wasm-streaming.ts](conformance/lib-node-wasm-streaming.ts) | A `Response` (or a promise of one) whose MIME type is `application/wasm` is read and compiled, as Node runs it; non-`Response` sources and other MIME types reject with Node's errors |
1134
1178
 
1135
1179
  #### `node:sea`
1136
1180
 
1137
1181
  | API | Status | Probe | Notes |
1138
1182
  | -------------------------------------- | :----: | ---------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1139
1183
  | `isSea` | ✅ | [lib-node-module-v8.ts](conformance/lib-node-module-v8.ts) | Always `true`: every TypeNative binary is a single executable |
1140
- | `getAsset` / `getRawAsset` with assets | ❌ | — | No SEA config is read, so no asset is added and these throw `ERR_SINGLE_EXECUTABLE_APPLICATION_ASSET_NOT_FOUND`; embed files with `go:embed` instead ([lib-go-embed.ts](conformance/lib-go-embed.ts)) |
1184
+ | `getAsset` / `getRawAsset` (and `getAssetAsBlob`) with assets | ✅ | [lib-node-sea-assets.ts](conformance/lib-node-sea-assets.ts) | A `--sea-config <file>` build embeds the config's assets (`{ assets: { key: path } }`, paths relative to the config) into the binary as a generated Go file; without it the getters throw `ERR_SINGLE_EXECUTABLE_APPLICATION_ASSET_NOT_FOUND`, as Node's without an asset blob |
1141
1185
 
1142
1186
  #### `node:trace_events`
1143
1187
 
@@ -1150,9 +1194,9 @@ network; it adds about 10 MB to a binary. Rows are records: `row.name`, `row as
1150
1194
  | API | Status | Probe | Notes |
1151
1195
  | ----------------------------------------------------------------------------- | :----: | ---------------------------------------------------------- | -------------------------------------------------------------------------------------------- |
1152
1196
  | `builtinModules` / `isBuiltin` | ✅ | [lib-node-module-v8.ts](conformance/lib-node-module-v8.ts) | Node 22's list; `node:test`, `node:sqlite` and `node:sea` need the scheme, as in Node |
1153
- | `builtinModules` as Node 26 lists it | ❌ | — | **Node 26** drops `_stream_duplex` & co. (removed in 26.0) and, since Node 23.5, lists the scheme-only `node:ffi` / `node:sea` / `node:sqlite` / `node:test` / `node:test/reporters` |
1197
+ | `builtinModules` as Node 26 lists it | ✅ | [lib-node-module-v8.ts](conformance/lib-node-module-v8.ts) | Without `_stream_*`; the scheme-only modules listed with `node:` |
1154
1198
  | `createRequire(import.meta.url)` and `require('./data.json')` | ✅ | [lib-json-modules.ts](conformance/lib-json-modules.ts) | JSON files only, read at compile time; `require` of a module reports an error (use `import`) |
1155
- | `findPackageJSON`, `require` of modules | ❌ | — | Feasible: a literal module specifier resolved at compile time like an import |
1199
+ | `findPackageJSON`, `require` of modules | ✅ | [lib-node-module-require.ts](conformance/lib-node-module-require.ts), [lib-node-process-node26.ts](conformance/lib-node-process-node26.ts) | `const x = require('spec')` (a literal, through `createRequire`) is a namespace import; `findPackageJSON` walks up at run time |
1156
1200
  | `register` / `registerHooks` (loader hooks), `require` of computed specifiers | 🚫 | — | Hooks into a JavaScript loader; imports are resolved at compile time. **Node 26** runtime-deprecates `register` |
1157
1201
 
1158
1202
  #### `node:test/reporters`
@@ -1170,9 +1214,12 @@ network; it adds about 10 MB to a binary. Rows are records: `row.name`, `row as
1170
1214
 
1171
1215
  #### `node:ffi`
1172
1216
 
1173
- | API | Status | Probe | Notes |
1174
- | ----------------------------------------------------------------------- | :----: | ----- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1175
- | Loading dynamic libraries and calling native symbols, `getCurrentEventLoop` | ❌ | — | **Node 26**: added in 26.1, on by default since 26.9 (still experimental). Without cgo this needs a pure-Go `dlopen` (`purego`) or `syscall.LoadDLL` on Windows; [`go:*` bridges](#go-bridges-go) already call Go code |
1217
+ | API | Status | Probe | Notes |
1218
+ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :----: | ---------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
1219
+ | `dlopen` / `dlclose` / `dlsym`, `DynamicLibrary` (`path`, `symbols`, `getFunction(s)`, `getSymbol(s)`, `close`, `using`), wrappers' `.pointer`, every `types` name, Node's argument checks and errors | ✅ | [lib-node-ffi.ts](conformance/lib-node-ffi.ts) | **Node 26**. No cgo: `LoadLibrary` / `GetProcAddress` on Windows, the vendored `purego` (`dlopen`) on Linux / macOS; each signature becomes a `reflect.FuncOf` call through `purego.RegisterFunc`, so integer / float arguments follow the C ABI. `dlopen(null)` (the process image) is `RTLD_DEFAULT`; the BSDs and wasm throw `ERR_FFI_CALL_FAILED` |
1220
+ | `registerCallback` / `unregisterCallback` / `refCallback` / `unrefCallback` | ✅ | [lib-node-ffi.ts](conformance/lib-node-ffi.ts) | A JS throw inside a callback is held and rethrown when the native call returns; trampolines can't be freed (an unregistered one returns 0), and `unrefCallback` keeps the function alive. On Windows callbacks take integer / pointer arguments only (`syscall.NewCallback`, ~2000 per process) |
1221
+ | `get*` / `set*` (8- to 64-bit, `Float32` / `Float64`), `toString`, `toBuffer` / `toArrayBuffer` (`copy: false` views native memory), `export*`, `getRawPointer`, `suffix` | ✅ | [lib-node-ffi.ts](conformance/lib-node-ffi.ts) | Go's heap does not move, so `getRawPointer` stays valid while the value is reachable |
1222
+ | `getCurrentEventLoop` | 🚫 | — | A compiled program has no libuv `uv_loop_t` to hand out: left out of the types |
1176
1223
 
1177
1224
  ### Go bridges (`go:*`)
1178
1225