@scriptc/compiler 0.4.4 → 0.4.5
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.
- package/ambient/scriptc-node-fallback.d.ts +198 -44
- package/ambient/scriptc-overrides.d.ts +21 -0
- package/dist/backend/executable-features.js +3 -0
- package/dist/backend/executable-features.js.map +1 -1
- package/dist/backend/library-pack.js +2 -1
- package/dist/backend/library-pack.js.map +1 -1
- package/dist/backend/linker.js +11 -1
- package/dist/backend/linker.js.map +1 -1
- package/dist/backend/lld.d.ts +9 -0
- package/dist/backend/lld.js +48 -0
- package/dist/backend/lld.js.map +1 -0
- package/dist/backend/lld.test.d.ts +1 -0
- package/dist/backend/lld.test.js +53 -0
- package/dist/backend/lld.test.js.map +1 -0
- package/dist/backend/llvm/appended-array-literals.d.ts +11 -1
- package/dist/backend/llvm/appended-array-literals.js +29 -0
- package/dist/backend/llvm/appended-array-literals.js.map +1 -1
- package/dist/backend/llvm/blocks.js +10 -1
- package/dist/backend/llvm/blocks.js.map +1 -1
- package/dist/backend/llvm/bytes-alias.d.ts +13 -4
- package/dist/backend/llvm/bytes-alias.js +16 -5
- package/dist/backend/llvm/bytes-alias.js.map +1 -1
- package/dist/backend/llvm/bytes-bounds.d.ts +5 -1
- package/dist/backend/llvm/bytes-bounds.js +199 -2
- package/dist/backend/llvm/bytes-bounds.js.map +1 -1
- package/dist/backend/llvm/bytes-loop-versions.d.ts +45 -3
- package/dist/backend/llvm/bytes-loop-versions.js +238 -20
- package/dist/backend/llvm/bytes-loop-versions.js.map +1 -1
- package/dist/backend/llvm/bytes-loop-versions.test.js +11 -4
- package/dist/backend/llvm/bytes-loop-versions.test.js.map +1 -1
- package/dist/backend/llvm/call-lifetimes.d.ts +8 -2
- package/dist/backend/llvm/call-lifetimes.js +87 -18
- package/dist/backend/llvm/call-lifetimes.js.map +1 -1
- package/dist/backend/llvm/call-lifetimes.test.js +132 -0
- package/dist/backend/llvm/call-lifetimes.test.js.map +1 -1
- package/dist/backend/llvm/classes.d.ts +3 -2
- package/dist/backend/llvm/classes.js +4 -4
- package/dist/backend/llvm/classes.js.map +1 -1
- package/dist/backend/llvm/counted-loops.d.ts +14 -2
- package/dist/backend/llvm/counted-loops.js +54 -5
- package/dist/backend/llvm/counted-loops.js.map +1 -1
- package/dist/backend/llvm/debug-info.d.ts +42 -1
- package/dist/backend/llvm/debug-info.js +70 -1
- package/dist/backend/llvm/debug-info.js.map +1 -1
- package/dist/backend/llvm/dense-array-loops.js +2 -2
- package/dist/backend/llvm/dense-array-loops.js.map +1 -1
- package/dist/backend/llvm/dense-array-loops.test.js +1 -0
- package/dist/backend/llvm/dense-array-loops.test.js.map +1 -1
- package/dist/backend/llvm/dyn.d.ts +65 -8
- package/dist/backend/llvm/dyn.js +375 -40
- package/dist/backend/llvm/dyn.js.map +1 -1
- package/dist/backend/llvm/emit-function.js +28 -8
- package/dist/backend/llvm/emit-function.js.map +1 -1
- package/dist/backend/llvm/emit-journal.d.ts +8 -4
- package/dist/backend/llvm/emit-journal.js +75 -5
- package/dist/backend/llvm/emit-journal.js.map +1 -1
- package/dist/backend/llvm/emit-module.d.ts +4 -0
- package/dist/backend/llvm/emit-module.js +58 -23
- package/dist/backend/llvm/emit-module.js.map +1 -1
- package/dist/backend/llvm/emit-statements.js +297 -28
- package/dist/backend/llvm/emit-statements.js.map +1 -1
- package/dist/backend/llvm/emitter.d.ts +134 -13
- package/dist/backend/llvm/emitter.js +514 -87
- package/dist/backend/llvm/emitter.js.map +1 -1
- package/dist/backend/llvm/expr-bytes.d.ts +6 -4
- package/dist/backend/llvm/expr-bytes.js +31 -8
- package/dist/backend/llvm/expr-bytes.js.map +1 -1
- package/dist/backend/llvm/expr-calls.js +13 -11
- package/dist/backend/llvm/expr-calls.js.map +1 -1
- package/dist/backend/llvm/expr-containers.d.ts +11 -0
- package/dist/backend/llvm/expr-containers.js +87 -9
- package/dist/backend/llvm/expr-containers.js.map +1 -1
- package/dist/backend/llvm/expr-context.d.ts +3 -0
- package/dist/backend/llvm/expr-control.js +83 -0
- package/dist/backend/llvm/expr-control.js.map +1 -1
- package/dist/backend/llvm/expr-dynamic.d.ts +1 -1
- package/dist/backend/llvm/expr-dynamic.js +22 -4
- package/dist/backend/llvm/expr-dynamic.js.map +1 -1
- package/dist/backend/llvm/expr-primitives.js +107 -9
- package/dist/backend/llvm/expr-primitives.js.map +1 -1
- package/dist/backend/llvm/expr-stream-bridges.js +95 -22
- package/dist/backend/llvm/expr-stream-bridges.js.map +1 -1
- package/dist/backend/llvm/forked-analysis.d.ts +8 -0
- package/dist/backend/llvm/forked-analysis.js +43 -0
- package/dist/backend/llvm/forked-analysis.js.map +1 -0
- package/dist/backend/llvm/integer-values.d.ts +7 -0
- package/dist/backend/llvm/integer-values.js +42 -2
- package/dist/backend/llvm/integer-values.js.map +1 -1
- package/dist/backend/llvm/integer-views.d.ts +2 -1
- package/dist/backend/llvm/integer-views.js +12 -1
- package/dist/backend/llvm/integer-views.js.map +1 -1
- package/dist/backend/llvm/js-ic.d.ts +4 -0
- package/dist/backend/llvm/js-ic.js +133 -15
- package/dist/backend/llvm/js-ic.js.map +1 -1
- package/dist/backend/llvm/layouts.d.ts +1 -0
- package/dist/backend/llvm/layouts.js.map +1 -1
- package/dist/backend/llvm/lazy-captures.d.ts +6 -1
- package/dist/backend/llvm/lazy-captures.js +10 -5
- package/dist/backend/llvm/lazy-captures.js.map +1 -1
- package/dist/backend/llvm/lib-abi.d.ts +5 -0
- package/dist/backend/llvm/lib-abi.js +19 -0
- package/dist/backend/llvm/lib-abi.js.map +1 -1
- package/dist/backend/llvm/lib-dispatch.js +128 -42
- package/dist/backend/llvm/lib-dispatch.js.map +1 -1
- package/dist/backend/llvm/lib-filesystem.d.ts +10 -0
- package/dist/backend/llvm/lib-filesystem.js +32 -0
- package/dist/backend/llvm/lib-filesystem.js.map +1 -1
- package/dist/backend/llvm/lib-http2.js +2 -2
- package/dist/backend/llvm/lib-http2.js.map +1 -1
- package/dist/backend/llvm/lib-network.js +2 -0
- package/dist/backend/llvm/lib-network.js.map +1 -1
- package/dist/backend/llvm/lib-process.js +11 -0
- package/dist/backend/llvm/lib-process.js.map +1 -1
- package/dist/backend/llvm/lib-shared.js +43 -0
- package/dist/backend/llvm/lib-shared.js.map +1 -1
- package/dist/backend/llvm/lib-tls.js +28 -3
- package/dist/backend/llvm/lib-tls.js.map +1 -1
- package/dist/backend/llvm/local-union-storage.test.js +2 -1
- package/dist/backend/llvm/local-union-storage.test.js.map +1 -1
- package/dist/backend/llvm/loop-array-borrows.d.ts +4 -1
- package/dist/backend/llvm/loop-array-borrows.js +11 -5
- package/dist/backend/llvm/loop-array-borrows.js.map +1 -1
- package/dist/backend/llvm/map-entry-fusion.d.ts +5 -3
- package/dist/backend/llvm/map-entry-fusion.js +20 -11
- package/dist/backend/llvm/map-entry-fusion.js.map +1 -1
- package/dist/backend/llvm/map-entry-fusion.test.js +14 -6
- package/dist/backend/llvm/map-entry-fusion.test.js.map +1 -1
- package/dist/backend/llvm/map-number-lookup.d.ts +16 -6
- package/dist/backend/llvm/map-number-lookup.js +41 -9
- package/dist/backend/llvm/map-number-lookup.js.map +1 -1
- package/dist/backend/llvm/map-number-lookup.test.js +70 -2
- package/dist/backend/llvm/map-number-lookup.test.js.map +1 -1
- package/dist/backend/llvm/map-read-lifetimes.d.ts +25 -2
- package/dist/backend/llvm/map-read-lifetimes.js +136 -6
- package/dist/backend/llvm/map-read-lifetimes.js.map +1 -1
- package/dist/backend/llvm/map-read-lifetimes.test.js +8 -3
- package/dist/backend/llvm/map-read-lifetimes.test.js.map +1 -1
- package/dist/backend/llvm/nullable-unions.d.ts +5 -0
- package/dist/backend/llvm/nullable-unions.js +29 -2
- package/dist/backend/llvm/nullable-unions.js.map +1 -1
- package/dist/backend/llvm/nullable-unions.test.js +25 -1
- package/dist/backend/llvm/nullable-unions.test.js.map +1 -1
- package/dist/backend/llvm/record-union-keys.test.d.ts +1 -0
- package/dist/backend/llvm/record-union-keys.test.js +161 -0
- package/dist/backend/llvm/record-union-keys.test.js.map +1 -0
- package/dist/backend/llvm/serialized-ir-emission.test.js +2 -0
- package/dist/backend/llvm/serialized-ir-emission.test.js.map +1 -1
- package/dist/backend/llvm/shapes.d.ts +4 -5
- package/dist/backend/llvm/shapes.js +104 -51
- package/dist/backend/llvm/shapes.js.map +1 -1
- package/dist/backend/llvm/shapes.test.js +14 -2
- package/dist/backend/llvm/shapes.test.js.map +1 -1
- package/dist/backend/llvm/speculative-integers.d.ts +50 -3
- package/dist/backend/llvm/speculative-integers.js +411 -24
- package/dist/backend/llvm/speculative-integers.js.map +1 -1
- package/dist/backend/llvm/speculative-integers.test.js +103 -1
- package/dist/backend/llvm/speculative-integers.test.js.map +1 -1
- package/dist/backend/llvm/split.d.ts +10 -1
- package/dist/backend/llvm/split.js +243 -59
- package/dist/backend/llvm/split.js.map +1 -1
- package/dist/backend/llvm/split.test.js +92 -13
- package/dist/backend/llvm/split.test.js.map +1 -1
- package/dist/backend/llvm/stack-objects.test.js +3 -2
- package/dist/backend/llvm/stack-objects.test.js.map +1 -1
- package/dist/backend/llvm/string-lifetimes.test.js +1 -1
- package/dist/backend/llvm/string-lifetimes.test.js.map +1 -1
- package/dist/backend/llvm/string-reads.d.ts +13 -0
- package/dist/backend/llvm/string-reads.js +22 -0
- package/dist/backend/llvm/string-reads.js.map +1 -1
- package/dist/backend/llvm/string-slices.d.ts +36 -2
- package/dist/backend/llvm/string-slices.js +308 -12
- package/dist/backend/llvm/string-slices.js.map +1 -1
- package/dist/backend/llvm/string-slices.test.js +182 -3
- package/dist/backend/llvm/string-slices.test.js.map +1 -1
- package/dist/backend/llvm/string-unit-versions.d.ts +11 -0
- package/dist/backend/llvm/string-unit-versions.js +191 -0
- package/dist/backend/llvm/string-unit-versions.js.map +1 -0
- package/dist/backend/llvm/string-unit-versions.test.d.ts +1 -0
- package/dist/backend/llvm/string-unit-versions.test.js +117 -0
- package/dist/backend/llvm/string-unit-versions.test.js.map +1 -0
- package/dist/backend/llvm/test-boxed-unions.d.ts +5 -2
- package/dist/backend/llvm/test-boxed-unions.js +24 -8
- package/dist/backend/llvm/test-boxed-unions.js.map +1 -1
- package/dist/backend/llvm/unwind-abi.d.ts +52 -0
- package/dist/backend/llvm/unwind-abi.js +498 -0
- package/dist/backend/llvm/unwind-abi.js.map +1 -0
- package/dist/backend/llvm/unwind-abi.test.d.ts +1 -0
- package/dist/backend/llvm/unwind-abi.test.js +255 -0
- package/dist/backend/llvm/unwind-abi.test.js.map +1 -0
- package/dist/backend/llvm/wrapping-sums.d.ts +14 -10
- package/dist/backend/llvm/wrapping-sums.js +31 -14
- package/dist/backend/llvm/wrapping-sums.js.map +1 -1
- package/dist/backend/loop-polls.d.ts +6 -0
- package/dist/backend/loop-polls.js +24 -0
- package/dist/backend/loop-polls.js.map +1 -1
- package/dist/backend/may-throw.js +8 -8
- package/dist/backend/may-throw.js.map +1 -1
- package/dist/backend/native/contracts.d.ts +12 -2
- package/dist/backend/native/executable.js +48 -6
- package/dist/backend/native/executable.js.map +1 -1
- package/dist/backend/native/library.js +4 -3
- package/dist/backend/native/library.js.map +1 -1
- package/dist/backend/native/program-shards.d.ts +2 -2
- package/dist/backend/native/program-shards.js +2 -2
- package/dist/backend/native/program-shards.js.map +1 -1
- package/dist/backend/native/runtime-inputs.d.ts +1 -1
- package/dist/backend/native/runtime-inputs.js +4 -1
- package/dist/backend/native/runtime-inputs.js.map +1 -1
- package/dist/backend/native/vendor.d.ts +1 -1
- package/dist/backend/native/vendor.js +1 -1
- package/dist/backend/native/vendor.js.map +1 -1
- package/dist/backend/native-codegen.d.ts +3 -1
- package/dist/backend/native-codegen.js +4 -3
- package/dist/backend/native-codegen.js.map +1 -1
- package/dist/backend/native-link-info-core.d.ts +8 -0
- package/dist/backend/native-link-info-core.js.map +1 -1
- package/dist/backend/native-profile.d.ts +14 -0
- package/dist/backend/native-profile.js +28 -0
- package/dist/backend/native-profile.js.map +1 -1
- package/dist/backend/native-profile.test.js +8 -1
- package/dist/backend/native-profile.test.js.map +1 -1
- package/dist/backend/native-toolchain.test.js +11 -11
- package/dist/backend/native-toolchain.test.js.map +1 -1
- package/dist/backend/runtime-abi.d.ts +2 -2
- package/dist/backend/runtime-abi.js +2 -2
- package/dist/backend/runtime-pack-core.d.ts +3 -1
- package/dist/backend/runtime-pack-core.js +2 -0
- package/dist/backend/runtime-pack-core.js.map +1 -1
- package/dist/backend/runtime-pack-native.d.ts +17 -5
- package/dist/backend/runtime-pack-native.js +186 -14
- package/dist/backend/runtime-pack-native.js.map +1 -1
- package/dist/backend/runtime-pack-native.test.js +160 -3
- package/dist/backend/runtime-pack-native.test.js.map +1 -1
- package/dist/backend/runtime-pack-targets.test.js +2 -1
- package/dist/backend/runtime-pack-targets.test.js.map +1 -1
- package/dist/backend/runtime-pack.test.js +2 -1
- package/dist/backend/runtime-pack.test.js.map +1 -1
- package/dist/backend/vendor-archives.d.ts +4 -1
- package/dist/backend/vendor-archives.js +78 -4
- package/dist/backend/vendor-archives.js.map +1 -1
- package/dist/backend/vendor-inputs.d.ts +3 -1
- package/dist/backend/vendor-inputs.js +3 -1
- package/dist/backend/vendor-inputs.js.map +1 -1
- package/dist/backend/warm-cache.js +1 -0
- package/dist/backend/warm-cache.js.map +1 -1
- package/dist/cli/command.js +78 -11
- package/dist/cli/command.js.map +1 -1
- package/dist/cli/usage.d.ts +22 -1
- package/dist/cli/usage.js +33 -3
- package/dist/cli/usage.js.map +1 -1
- package/dist/compat/fetch-profile.d.ts +15 -6
- package/dist/compat/fetch-profile.js +519 -498
- package/dist/compat/fetch-profile.js.map +1 -1
- package/dist/compile-types.d.ts +7 -0
- package/dist/contracts/int32-elements.js +2 -1
- package/dist/contracts/int32-elements.js.map +1 -1
- package/dist/coverage/report.d.ts +14 -3
- package/dist/coverage/report.js +216 -0
- package/dist/coverage/report.js.map +1 -1
- package/dist/coverage/surface-manifest.js +25 -25
- package/dist/coverage/surface-manifest.js.map +1 -1
- package/dist/coverage/verdict-cache.d.ts +2 -0
- package/dist/coverage/verdict-cache.js +10 -1
- package/dist/coverage/verdict-cache.js.map +1 -1
- package/dist/diagnostics/diagnostic.d.ts +19 -0
- package/dist/diagnostics/diagnostic.js +52 -1
- package/dist/diagnostics/diagnostic.js.map +1 -1
- package/dist/diagnostics/envelope.d.ts +54 -0
- package/dist/diagnostics/envelope.js +7 -1
- package/dist/diagnostics/envelope.js.map +1 -1
- package/dist/diagnostics/render.d.ts +7 -0
- package/dist/diagnostics/render.js +15 -4
- package/dist/diagnostics/render.js.map +1 -1
- package/dist/executable/executable-cache.d.ts +3 -0
- package/dist/executable/executable-cache.js +1 -0
- package/dist/executable/executable-cache.js.map +1 -1
- package/dist/executable/executable-cache.test.js +1 -0
- package/dist/executable/executable-cache.test.js.map +1 -1
- package/dist/executable/prepare.js +5 -1
- package/dist/executable/prepare.js.map +1 -1
- package/dist/frontend/analysis.js +26 -2
- package/dist/frontend/analysis.js.map +1 -1
- package/dist/frontend/fork-target.js +67 -1
- package/dist/frontend/fork-target.js.map +1 -1
- package/dist/frontend/fork-target.test.js +43 -0
- package/dist/frontend/fork-target.test.js.map +1 -1
- package/dist/frontend/input-tracker.d.ts +4 -1
- package/dist/frontend/input-tracker.js +42 -4
- package/dist/frontend/input-tracker.js.map +1 -1
- package/dist/frontend/input-tracker.test.js +45 -0
- package/dist/frontend/input-tracker.test.js.map +1 -1
- package/dist/frontend/lowering/abstract-equality.js +38 -1
- package/dist/frontend/lowering/abstract-equality.js.map +1 -1
- package/dist/frontend/lowering/argument-counts.d.ts +36 -0
- package/dist/frontend/lowering/argument-counts.js +201 -0
- package/dist/frontend/lowering/argument-counts.js.map +1 -0
- package/dist/frontend/lowering/array-values.d.ts +27 -0
- package/dist/frontend/lowering/array-values.js +112 -0
- package/dist/frontend/lowering/array-values.js.map +1 -1
- package/dist/frontend/lowering/binding-analysis.d.ts +3 -0
- package/dist/frontend/lowering/binding-analysis.js +9 -3
- package/dist/frontend/lowering/binding-analysis.js.map +1 -1
- package/dist/frontend/lowering/builtin-namespaces.d.ts +13 -0
- package/dist/frontend/lowering/builtin-namespaces.js +238 -0
- package/dist/frontend/lowering/builtin-namespaces.js.map +1 -0
- package/dist/frontend/lowering/builtins/compression.d.ts +4 -3
- package/dist/frontend/lowering/builtins/compression.js +86 -5
- package/dist/frontend/lowering/builtins/compression.js.map +1 -1
- package/dist/frontend/lowering/builtins/date-classes.js +17 -1
- package/dist/frontend/lowering/builtins/date-classes.js.map +1 -1
- package/dist/frontend/lowering/builtins/dates.d.ts +19 -5
- package/dist/frontend/lowering/builtins/dates.js +159 -8
- package/dist/frontend/lowering/builtins/dates.js.map +1 -1
- package/dist/frontend/lowering/builtins/filesystem-calls.js +26 -1
- package/dist/frontend/lowering/builtins/filesystem-calls.js.map +1 -1
- package/dist/frontend/lowering/builtins/fs-streams.d.ts +4 -0
- package/dist/frontend/lowering/builtins/fs-streams.js +24 -1
- package/dist/frontend/lowering/builtins/fs-streams.js.map +1 -1
- package/dist/frontend/lowering/builtins/json.d.ts +4 -1
- package/dist/frontend/lowering/builtins/json.js +9 -3
- package/dist/frontend/lowering/builtins/json.js.map +1 -1
- package/dist/frontend/lowering/builtins/module-bindings.d.ts +6 -0
- package/dist/frontend/lowering/builtins/module-bindings.js +23 -1
- package/dist/frontend/lowering/builtins/module-bindings.js.map +1 -1
- package/dist/frontend/lowering/builtins/module-resolution.d.ts +5 -0
- package/dist/frontend/lowering/builtins/module-resolution.js +95 -4
- package/dist/frontend/lowering/builtins/module-resolution.js.map +1 -1
- package/dist/frontend/lowering/builtins/promises.js +144 -1
- package/dist/frontend/lowering/builtins/promises.js.map +1 -1
- package/dist/frontend/lowering/builtins/readline.d.ts +5 -1
- package/dist/frontend/lowering/builtins/readline.js +22 -11
- package/dist/frontend/lowering/builtins/readline.js.map +1 -1
- package/dist/frontend/lowering/builtins/reflection.d.ts +4 -1
- package/dist/frontend/lowering/builtins/reflection.js +41 -1
- package/dist/frontend/lowering/builtins/reflection.js.map +1 -1
- package/dist/frontend/lowering/builtins/text-codecs.js +31 -2
- package/dist/frontend/lowering/builtins/text-codecs.js.map +1 -1
- package/dist/frontend/lowering/builtins/webassembly.js +4 -1
- package/dist/frontend/lowering/builtins/webassembly.js.map +1 -1
- package/dist/frontend/lowering/builtins/x509.d.ts +33 -0
- package/dist/frontend/lowering/builtins/x509.js +431 -0
- package/dist/frontend/lowering/builtins/x509.js.map +1 -0
- package/dist/frontend/lowering/call-arguments.js +44 -0
- package/dist/frontend/lowering/call-arguments.js.map +1 -1
- package/dist/frontend/lowering/call-signatures.js +1 -1
- package/dist/frontend/lowering/call-signatures.js.map +1 -1
- package/dist/frontend/lowering/cjs-inline-require.js +1 -1
- package/dist/frontend/lowering/cjs-inline-require.js.map +1 -1
- package/dist/frontend/lowering/class-attributes.d.ts +7 -0
- package/dist/frontend/lowering/class-attributes.js +52 -10
- package/dist/frontend/lowering/class-attributes.js.map +1 -1
- package/dist/frontend/lowering/class-dynamic-dispatch.d.ts +13 -0
- package/dist/frontend/lowering/class-dynamic-dispatch.js +174 -9
- package/dist/frontend/lowering/class-dynamic-dispatch.js.map +1 -1
- package/dist/frontend/lowering/class-method-mutations.js +43 -8
- package/dist/frontend/lowering/class-method-mutations.js.map +1 -1
- package/dist/frontend/lowering/class-method-values.js +71 -1
- package/dist/frontend/lowering/class-method-values.js.map +1 -1
- package/dist/frontend/lowering/class-prototypes.d.ts +8 -0
- package/dist/frontend/lowering/class-prototypes.js +83 -2
- package/dist/frontend/lowering/class-prototypes.js.map +1 -1
- package/dist/frontend/lowering/class-to-primitive.d.ts +5 -0
- package/dist/frontend/lowering/class-to-primitive.js +79 -7
- package/dist/frontend/lowering/class-to-primitive.js.map +1 -1
- package/dist/frontend/lowering/coercions/state.d.ts +1 -0
- package/dist/frontend/lowering/coercions/state.js.map +1 -1
- package/dist/frontend/lowering/coercions/structural.js +89 -10
- package/dist/frontend/lowering/coercions/structural.js.map +1 -1
- package/dist/frontend/lowering/coercions/unions.d.ts +4 -2
- package/dist/frontend/lowering/coercions/unions.js +13 -6
- package/dist/frontend/lowering/coercions/unions.js.map +1 -1
- package/dist/frontend/lowering/containers/array-callbacks.js +51 -15
- package/dist/frontend/lowering/containers/array-callbacks.js.map +1 -1
- package/dist/frontend/lowering/containers/array-construction.d.ts +4 -1
- package/dist/frontend/lowering/containers/array-construction.js +102 -9
- package/dist/frontend/lowering/containers/array-construction.js.map +1 -1
- package/dist/frontend/lowering/containers/array-methods.js +85 -5
- package/dist/frontend/lowering/containers/array-methods.js.map +1 -1
- package/dist/frontend/lowering/containers/array-pipelines.js +346 -77
- package/dist/frontend/lowering/containers/array-pipelines.js.map +1 -1
- package/dist/frontend/lowering/containers/callback-arguments.js +11 -1
- package/dist/frontend/lowering/containers/callback-arguments.js.map +1 -1
- package/dist/frontend/lowering/containers/collection-methods.js +12 -0
- package/dist/frontend/lowering/containers/collection-methods.js.map +1 -1
- package/dist/frontend/lowering/containers/indexed-objects.js +73 -25
- package/dist/frontend/lowering/containers/indexed-objects.js.map +1 -1
- package/dist/frontend/lowering/containers/iterator-helpers.d.ts +4 -4
- package/dist/frontend/lowering/containers/iterator-helpers.js +8 -2
- package/dist/frontend/lowering/containers/iterator-helpers.js.map +1 -1
- package/dist/frontend/lowering/containers/replacer-params.d.ts +37 -0
- package/dist/frontend/lowering/containers/replacer-params.js +294 -0
- package/dist/frontend/lowering/containers/replacer-params.js.map +1 -0
- package/dist/frontend/lowering/containers/replacer-params.test.d.ts +1 -0
- package/dist/frontend/lowering/containers/replacer-params.test.js +61 -0
- package/dist/frontend/lowering/containers/replacer-params.test.js.map +1 -0
- package/dist/frontend/lowering/containers/string-and-regexp.js +2 -1
- package/dist/frontend/lowering/containers/string-and-regexp.js.map +1 -1
- package/dist/frontend/lowering/containers/string-replacement.js +7 -3
- package/dist/frontend/lowering/containers/string-replacement.js.map +1 -1
- package/dist/frontend/lowering/cycle-initialization.d.ts +4 -2
- package/dist/frontend/lowering/cycle-initialization.js +4 -1
- package/dist/frontend/lowering/cycle-initialization.js.map +1 -1
- package/dist/frontend/lowering/date-values.d.ts +9 -6
- package/dist/frontend/lowering/date-values.js +63 -16
- package/dist/frontend/lowering/date-values.js.map +1 -1
- package/dist/frontend/lowering/deferred-module-initializers.js +16 -8
- package/dist/frontend/lowering/deferred-module-initializers.js.map +1 -1
- package/dist/frontend/lowering/deferred-module-initializers.test.js +22 -6
- package/dist/frontend/lowering/deferred-module-initializers.test.js.map +1 -1
- package/dist/frontend/lowering/dispatch-sites.js +1 -0
- package/dist/frontend/lowering/dispatch-sites.js.map +1 -1
- package/dist/frontend/lowering/expressions/array-literals.d.ts +0 -8
- package/dist/frontend/lowering/expressions/array-literals.js +119 -26
- package/dist/frontend/lowering/expressions/array-literals.js.map +1 -1
- package/dist/frontend/lowering/expressions/binary.js +38 -0
- package/dist/frontend/lowering/expressions/binary.js.map +1 -1
- package/dist/frontend/lowering/expressions/element-access.js +50 -6
- package/dist/frontend/lowering/expressions/element-access.js.map +1 -1
- package/dist/frontend/lowering/expressions/identifiers.js +35 -3
- package/dist/frontend/lowering/expressions/identifiers.js.map +1 -1
- package/dist/frontend/lowering/expressions/narrowing.d.ts +2 -1
- package/dist/frontend/lowering/expressions/narrowing.js +8 -1
- package/dist/frontend/lowering/expressions/narrowing.js.map +1 -1
- package/dist/frontend/lowering/expressions/object-literals.js +8 -2
- package/dist/frontend/lowering/expressions/object-literals.js.map +1 -1
- package/dist/frontend/lowering/expressions/property-access.js +65 -34
- package/dist/frontend/lowering/expressions/property-access.js.map +1 -1
- package/dist/frontend/lowering/expressions/relational.js +76 -11
- package/dist/frontend/lowering/expressions/relational.js.map +1 -1
- package/dist/frontend/lowering/expressions/typeof.js +6 -1
- package/dist/frontend/lowering/expressions/typeof.js.map +1 -1
- package/dist/frontend/lowering/expressions/updates.js +20 -11
- package/dist/frontend/lowering/expressions/updates.js.map +1 -1
- package/dist/frontend/lowering/f64-handles.d.ts +8 -0
- package/dist/frontend/lowering/f64-handles.js +16 -0
- package/dist/frontend/lowering/f64-handles.js.map +1 -0
- package/dist/frontend/lowering/frozen-records.d.ts +5 -0
- package/dist/frontend/lowering/frozen-records.js +12 -4
- package/dist/frontend/lowering/frozen-records.js.map +1 -1
- package/dist/frontend/lowering/function-context.d.ts +3 -0
- package/dist/frontend/lowering/function-context.js.map +1 -1
- package/dist/frontend/lowering/function-returns.js +15 -0
- package/dist/frontend/lowering/function-returns.js.map +1 -1
- package/dist/frontend/lowering/generic-functions.js +17 -6
- package/dist/frontend/lowering/generic-functions.js.map +1 -1
- package/dist/frontend/lowering/instantiation-path.d.ts +3 -2
- package/dist/frontend/lowering/instantiation-path.js.map +1 -1
- package/dist/frontend/lowering/instantiation-path.test.js +6 -4
- package/dist/frontend/lowering/instantiation-path.test.js.map +1 -1
- package/dist/frontend/lowering/iterator-adapters.d.ts +4 -2
- package/dist/frontend/lowering/iterator-adapters.js +26 -33
- package/dist/frontend/lowering/iterator-adapters.js.map +1 -1
- package/dist/frontend/lowering/js-collection-types.d.ts +11 -0
- package/dist/frontend/lowering/js-collection-types.js +490 -0
- package/dist/frontend/lowering/js-collection-types.js.map +1 -0
- package/dist/frontend/lowering/lib-boundary.js +2 -2
- package/dist/frontend/lowering/lib-boundary.js.map +1 -1
- package/dist/frontend/lowering/lower-assert.d.ts +14 -0
- package/dist/frontend/lowering/lower-assert.js +283 -26
- package/dist/frontend/lowering/lower-assert.js.map +1 -1
- package/dist/frontend/lowering/lower-builtin-values.js +3 -3
- package/dist/frontend/lowering/lower-builtin-values.js.map +1 -1
- package/dist/frontend/lowering/lower-calls.js +97 -7
- package/dist/frontend/lowering/lower-calls.js.map +1 -1
- package/dist/frontend/lowering/lower-classes.d.ts +59 -7
- package/dist/frontend/lowering/lower-classes.js +647 -176
- package/dist/frontend/lowering/lower-classes.js.map +1 -1
- package/dist/frontend/lowering/lower-console.js +2 -1
- package/dist/frontend/lowering/lower-console.js.map +1 -1
- package/dist/frontend/lowering/lower-exprs.d.ts +5 -0
- package/dist/frontend/lowering/lower-exprs.js +52 -5
- package/dist/frontend/lowering/lower-exprs.js.map +1 -1
- package/dist/frontend/lowering/lower-functions.js +7 -0
- package/dist/frontend/lowering/lower-functions.js.map +1 -1
- package/dist/frontend/lowering/lower-generators.js +4 -3
- package/dist/frontend/lowering/lower-generators.js.map +1 -1
- package/dist/frontend/lowering/lower-inspect.js +264 -46
- package/dist/frontend/lowering/lower-inspect.js.map +1 -1
- package/dist/frontend/lowering/lower-modules.js +28 -17
- package/dist/frontend/lowering/lower-modules.js.map +1 -1
- package/dist/frontend/lowering/lower-namespaces.d.ts +3 -0
- package/dist/frontend/lowering/lower-namespaces.js +44 -1
- package/dist/frontend/lowering/lower-namespaces.js.map +1 -1
- package/dist/frontend/lowering/lower-node-module.js +1 -1
- package/dist/frontend/lowering/lower-node-module.js.map +1 -1
- package/dist/frontend/lowering/lower-server.js +126 -32
- package/dist/frontend/lowering/lower-server.js.map +1 -1
- package/dist/frontend/lowering/lower-stdlib.d.ts +4 -1
- package/dist/frontend/lowering/lower-stdlib.js +51 -37
- package/dist/frontend/lowering/lower-stdlib.js.map +1 -1
- package/dist/frontend/lowering/lower-stmts.js +294 -46
- package/dist/frontend/lowering/lower-stmts.js.map +1 -1
- package/dist/frontend/lowering/lower-stream.js +515 -121
- package/dist/frontend/lowering/lower-stream.js.map +1 -1
- package/dist/frontend/lowering/lowerer.d.ts +52 -10
- package/dist/frontend/lowering/lowerer.js +249 -37
- package/dist/frontend/lowering/lowerer.js.map +1 -1
- package/dist/frontend/lowering/lowerer.test.js +1 -1
- package/dist/frontend/lowering/lowerer.test.js.map +1 -1
- package/dist/frontend/lowering/module-namespace-elements.d.ts +13 -0
- package/dist/frontend/lowering/module-namespace-elements.js +118 -1
- package/dist/frontend/lowering/module-namespace-elements.js.map +1 -1
- package/dist/frontend/lowering/private-brands.d.ts +5 -0
- package/dist/frontend/lowering/private-brands.js +39 -0
- package/dist/frontend/lowering/private-brands.js.map +1 -1
- package/dist/frontend/lowering/runtime-optional-elements.d.ts +6 -0
- package/dist/frontend/lowering/runtime-optional-elements.js +14 -3
- package/dist/frontend/lowering/runtime-optional-elements.js.map +1 -1
- package/dist/frontend/lowering/sanitize-class-types.js +2 -0
- package/dist/frontend/lowering/sanitize-class-types.js.map +1 -1
- package/dist/frontend/lowering/site-dependencies.d.ts +7 -2
- package/dist/frontend/lowering/site-dependencies.js +0 -15
- package/dist/frontend/lowering/site-dependencies.js.map +1 -1
- package/dist/frontend/lowering/site-dependencies.test.js +7 -5
- package/dist/frontend/lowering/site-dependencies.test.js.map +1 -1
- package/dist/frontend/lowering/string-index-bounds.d.ts +7 -4
- package/dist/frontend/lowering/string-index-bounds.js +21 -7
- package/dist/frontend/lowering/string-index-bounds.js.map +1 -1
- package/dist/frontend/lowering/surfaces.d.ts +12 -3
- package/dist/frontend/lowering/surfaces.js +1576 -1539
- package/dist/frontend/lowering/surfaces.js.map +1 -1
- package/dist/frontend/lowering/symbol-fields.d.ts +7 -0
- package/dist/frontend/lowering/symbol-fields.js +45 -2
- package/dist/frontend/lowering/symbol-fields.js.map +1 -1
- package/dist/frontend/lowering/union-narrow.d.ts +5 -2
- package/dist/frontend/lowering/union-narrow.js +6 -3
- package/dist/frontend/lowering/union-narrow.js.map +1 -1
- package/dist/frontend/lowering/union-narrow.test.js +10 -0
- package/dist/frontend/lowering/union-narrow.test.js.map +1 -1
- package/dist/frontend/npm-static-namespace-defaults.d.ts +6 -0
- package/dist/frontend/npm-static-namespace-defaults.js +163 -0
- package/dist/frontend/npm-static-namespace-defaults.js.map +1 -0
- package/dist/frontend/npm-static-namespace-defaults.test.d.ts +1 -0
- package/dist/frontend/npm-static-namespace-defaults.test.js +72 -0
- package/dist/frontend/npm-static-namespace-defaults.test.js.map +1 -0
- package/dist/frontend/npm-static-prune.js +152 -111
- package/dist/frontend/npm-static-prune.js.map +1 -1
- package/dist/frontend/npm-static.js +35 -32
- package/dist/frontend/npm-static.js.map +1 -1
- package/dist/frontend/package-shims.d.ts +7 -4
- package/dist/frontend/package-shims.js +39 -40
- package/dist/frontend/package-shims.js.map +1 -1
- package/dist/frontend/pipeline-native.d.ts +2 -2
- package/dist/frontend/pipeline-native.js +2 -2
- package/dist/frontend/pipeline-native.js.map +1 -1
- package/dist/frontend/pipeline.d.ts +19 -2
- package/dist/frontend/pipeline.js +102 -11
- package/dist/frontend/pipeline.js.map +1 -1
- package/dist/frontend/program-analysis.d.ts +2 -0
- package/dist/frontend/program-analysis.js +3 -0
- package/dist/frontend/program-analysis.js.map +1 -1
- package/dist/frontend/program.d.ts +15 -0
- package/dist/frontend/program.js +227 -64
- package/dist/frontend/program.js.map +1 -1
- package/dist/frontend/resolve.d.ts +2 -0
- package/dist/frontend/resolve.js +5 -0
- package/dist/frontend/resolve.js.map +1 -1
- package/dist/frontend/services.d.ts +3 -0
- package/dist/frontend/services.js +31 -4
- package/dist/frontend/services.js.map +1 -1
- package/dist/frontend/shape-inference/analyze.d.ts +93 -0
- package/dist/frontend/shape-inference/analyze.js +3138 -0
- package/dist/frontend/shape-inference/analyze.js.map +1 -0
- package/dist/frontend/shape-inference/constant-graphs.d.ts +54 -0
- package/dist/frontend/shape-inference/constant-graphs.js +357 -0
- package/dist/frontend/shape-inference/constant-graphs.js.map +1 -0
- package/dist/frontend/shape-inference/domain.d.ts +32 -0
- package/dist/frontend/shape-inference/domain.js +104 -0
- package/dist/frontend/shape-inference/domain.js.map +1 -0
- package/dist/frontend/shape-inference/index.d.ts +7 -0
- package/dist/frontend/shape-inference/index.js +19 -0
- package/dist/frontend/shape-inference/index.js.map +1 -0
- package/dist/frontend/shape-inference/report.d.ts +21 -0
- package/dist/frontend/shape-inference/report.js +348 -0
- package/dist/frontend/shape-inference/report.js.map +1 -0
- package/dist/frontend/token-equivalence.d.ts +6 -0
- package/dist/frontend/token-equivalence.js +66 -9
- package/dist/frontend/token-equivalence.js.map +1 -1
- package/dist/frontend/token-equivalence.test.js +33 -1
- package/dist/frontend/token-equivalence.test.js.map +1 -1
- package/dist/frontend/ts7/checker-features.d.ts +15 -0
- package/dist/frontend/ts7/checker-features.js +45 -0
- package/dist/frontend/ts7/checker-features.js.map +1 -0
- package/dist/frontend/ts7/checker-features.test.d.ts +1 -0
- package/dist/frontend/ts7/checker-features.test.js +40 -0
- package/dist/frontend/ts7/checker-features.test.js.map +1 -0
- package/dist/frontend/ts7/checker-server.d.ts +19 -0
- package/dist/frontend/ts7/checker-server.js +46 -0
- package/dist/frontend/ts7/checker-server.js.map +1 -0
- package/dist/frontend/ts7/checker-server.test.d.ts +1 -0
- package/dist/frontend/ts7/checker-server.test.js +38 -0
- package/dist/frontend/ts7/checker-server.test.js.map +1 -0
- package/dist/frontend/ts7/lib-diagnostics.js +39 -13
- package/dist/frontend/ts7/lib-diagnostics.js.map +1 -1
- package/dist/frontend/ts7/lib-diagnostics.test.js +40 -0
- package/dist/frontend/ts7/lib-diagnostics.test.js.map +1 -1
- package/dist/frontend/ts7/native-api.d.ts +1 -0
- package/dist/frontend/ts7/native-api.js +25 -2
- package/dist/frontend/ts7/native-api.js.map +1 -1
- package/dist/frontend/ts7/native-process.d.ts +9 -2
- package/dist/frontend/ts7/native-process.js +22 -4
- package/dist/frontend/ts7/native-process.js.map +1 -1
- package/dist/frontend/ts7/program-host.d.ts +11 -0
- package/dist/frontend/ts7/program-host.js +36 -22
- package/dist/frontend/ts7/program-host.js.map +1 -1
- package/dist/frontend/ts7/semantic-json.d.ts +9 -0
- package/dist/frontend/ts7/semantic-json.js +25 -5
- package/dist/frontend/ts7/semantic-json.js.map +1 -1
- package/dist/frontend/ts7/semantic-model.js +3 -1
- package/dist/frontend/ts7/semantic-model.js.map +1 -1
- package/dist/frontend/ts7/source-parser.js +3 -1
- package/dist/frontend/ts7/source-parser.js.map +1 -1
- package/dist/frontend/tsc-codes.js +10 -0
- package/dist/frontend/tsc-codes.js.map +1 -1
- package/dist/frontend/type-mapper.d.ts +18 -6
- package/dist/frontend/type-mapper.js +160 -28
- package/dist/frontend/type-mapper.js.map +1 -1
- package/dist/index.d.ts +44 -3
- package/dist/index.js +27 -8
- package/dist/index.js.map +1 -1
- package/dist/ir/builtin-effects.js +29 -0
- package/dist/ir/builtin-effects.js.map +1 -1
- package/dist/ir/builtin-signatures.d.ts +7 -2
- package/dist/ir/builtin-signatures.js +5104 -4950
- package/dist/ir/builtin-signatures.js.map +1 -1
- package/dist/ir/callback-specialization.d.ts +4 -2
- package/dist/ir/callback-specialization.js +24 -9
- package/dist/ir/callback-specialization.js.map +1 -1
- package/dist/ir/capture-values.js +4 -2
- package/dist/ir/capture-values.js.map +1 -1
- package/dist/ir/char-unit-locals.d.ts +12 -2
- package/dist/ir/char-unit-locals.js +400 -58
- package/dist/ir/char-unit-locals.js.map +1 -1
- package/dist/ir/char-unit-locals.test.js +111 -0
- package/dist/ir/char-unit-locals.test.js.map +1 -1
- package/dist/ir/constant-globals.js +18 -4
- package/dist/ir/constant-globals.js.map +1 -1
- package/dist/ir/expression-inlining.d.ts +15 -0
- package/dist/ir/expression-inlining.js +166 -0
- package/dist/ir/expression-inlining.js.map +1 -0
- package/dist/ir/expression-inlining.test.d.ts +1 -0
- package/dist/ir/expression-inlining.test.js +123 -0
- package/dist/ir/expression-inlining.test.js.map +1 -0
- package/dist/ir/function-references.js +2 -0
- package/dist/ir/function-references.js.map +1 -1
- package/dist/ir/function-references.test.js +6 -0
- package/dist/ir/function-references.test.js.map +1 -1
- package/dist/ir/int32-arrays.d.ts +27 -6
- package/dist/ir/int32-arrays.js +106 -18
- package/dist/ir/int32-arrays.js.map +1 -1
- package/dist/ir/int32-slots.d.ts +26 -1
- package/dist/ir/int32-slots.js +284 -5
- package/dist/ir/int32-slots.js.map +1 -1
- package/dist/ir/int32-slots.test.js +5 -0
- package/dist/ir/int32-slots.test.js.map +1 -1
- package/dist/ir/integer-loop-facts.d.ts +5 -0
- package/dist/ir/integer-loop-facts.js +90 -1
- package/dist/ir/integer-loop-facts.js.map +1 -1
- package/dist/ir/integer-loops.d.ts +14 -1
- package/dist/ir/integer-loops.js +93 -7
- package/dist/ir/integer-loops.js.map +1 -1
- package/dist/ir/integer-loops.test.js +70 -0
- package/dist/ir/integer-loops.test.js.map +1 -1
- package/dist/ir/integer-ranges.js +18 -2
- package/dist/ir/integer-ranges.js.map +1 -1
- package/dist/ir/integer-ranges.test.js +64 -4
- package/dist/ir/integer-ranges.test.js.map +1 -1
- package/dist/ir/ir.d.ts +50 -8
- package/dist/ir/ir.js +38 -12
- package/dist/ir/ir.js.map +1 -1
- package/dist/ir/js-ic.d.ts +25 -5
- package/dist/ir/js-ic.js +93 -13
- package/dist/ir/js-ic.js.map +1 -1
- package/dist/ir/js-ic.test.js +153 -0
- package/dist/ir/js-ic.test.js.map +1 -1
- package/dist/ir/node-index.d.ts +7 -0
- package/dist/ir/node-index.js +32 -0
- package/dist/ir/node-index.js.map +1 -1
- package/dist/ir/receiver-readers.d.ts +6 -1
- package/dist/ir/receiver-readers.js +53 -28
- package/dist/ir/receiver-readers.js.map +1 -1
- package/dist/ir/row-pairs.d.ts +15 -0
- package/dist/ir/row-pairs.js +373 -0
- package/dist/ir/row-pairs.js.map +1 -0
- package/dist/ir/row-pairs.test.d.ts +1 -0
- package/dist/ir/row-pairs.test.js +129 -0
- package/dist/ir/row-pairs.test.js.map +1 -0
- package/dist/ir/runtime-features.d.ts +17 -4
- package/dist/ir/runtime-features.js +69 -12
- package/dist/ir/runtime-features.js.map +1 -1
- package/dist/ir/scalar-records.d.ts +15 -0
- package/dist/ir/scalar-records.js +301 -1
- package/dist/ir/scalar-records.js.map +1 -1
- package/dist/ir/scalar-records.test.js +181 -1
- package/dist/ir/scalar-records.test.js.map +1 -1
- package/dist/ir/self-captures.js +8 -0
- package/dist/ir/self-captures.js.map +1 -1
- package/dist/ir/validate.js +37 -28
- package/dist/ir/validate.js.map +1 -1
- package/dist/library/fence-eval.js +4 -4
- package/dist/library/fence-eval.js.map +1 -1
- package/dist/library/ir-policy.js +4 -0
- package/dist/library/ir-policy.js.map +1 -1
- package/dist/library/library-cache.d.ts +1 -0
- package/dist/library/library-cache.js +1 -0
- package/dist/library/library-cache.js.map +1 -1
- package/dist/library/library-cache.test.js +13 -0
- package/dist/library/library-cache.test.js.map +1 -1
- package/dist/native/cache.d.ts +5 -1
- package/dist/native/cache.js +15 -3
- package/dist/native/cache.js.map +1 -1
- package/dist/native/cli.js +6 -0
- package/dist/native/cli.js.map +1 -1
- package/dist/native/compiler.d.ts +3 -0
- package/dist/native/compiler.js +72 -26
- package/dist/native/compiler.js.map +1 -1
- package/dist/native/compiler.test.js +87 -2
- package/dist/native/compiler.test.js.map +1 -1
- package/dist/native/executable-cache-open.test.d.ts +1 -0
- package/dist/native/executable-cache-open.test.js +80 -0
- package/dist/native/executable-cache-open.test.js.map +1 -0
- package/dist/native/executable-cache.d.ts +43 -3
- package/dist/native/executable-cache.js +177 -36
- package/dist/native/executable-cache.js.map +1 -1
- package/dist/native/executable-cache.test.js +103 -0
- package/dist/native/executable-cache.test.js.map +1 -1
- package/dist/native/prepare.js +38 -16
- package/dist/native/prepare.js.map +1 -1
- package/dist/native/prepare.test.js +51 -1
- package/dist/native/prepare.test.js.map +1 -1
- package/dist/native/sanitizer.d.ts +1 -1
- package/dist/native/sanitizer.js +17 -3
- package/dist/native/sanitizer.js.map +1 -1
- package/dist/native/sanitizer.test.js +4 -0
- package/dist/native/sanitizer.test.js.map +1 -1
- package/dist/node-islands/classify.d.ts +14 -0
- package/dist/node-islands/classify.js +114 -0
- package/dist/node-islands/classify.js.map +1 -0
- package/dist/node-islands/detect.d.ts +13 -0
- package/dist/node-islands/detect.js +805 -0
- package/dist/node-islands/detect.js.map +1 -0
- package/dist/node-islands/detect.test.d.ts +1 -0
- package/dist/node-islands/detect.test.js +136 -0
- package/dist/node-islands/detect.test.js.map +1 -0
- package/dist/node-islands/origin.d.ts +21 -0
- package/dist/node-islands/origin.js +60 -0
- package/dist/node-islands/origin.js.map +1 -0
- package/dist/node-islands/policy.d.ts +49 -0
- package/dist/node-islands/policy.js +130 -0
- package/dist/node-islands/policy.js.map +1 -0
- package/dist/node-islands/report.d.ts +22 -0
- package/dist/node-islands/report.js +326 -0
- package/dist/node-islands/report.js.map +1 -0
- package/dist/node-islands/report.test.d.ts +1 -0
- package/dist/node-islands/report.test.js +228 -0
- package/dist/node-islands/report.test.js.map +1 -0
- package/dist/node-islands/rules.d.ts +20 -0
- package/dist/node-islands/rules.js +91 -0
- package/dist/node-islands/rules.js.map +1 -0
- package/dist/node-islands/scan.d.ts +53 -0
- package/dist/node-islands/scan.js +104 -0
- package/dist/node-islands/scan.js.map +1 -0
- package/dist/node-islands/summary.d.ts +78 -0
- package/dist/node-islands/summary.js +26 -0
- package/dist/node-islands/summary.js.map +1 -0
- package/dist/project-config.d.ts +50 -0
- package/dist/project-config.js +372 -0
- package/dist/project-config.js.map +1 -0
- package/dist/project-config.test.d.ts +1 -0
- package/dist/project-config.test.js +154 -0
- package/dist/project-config.test.js.map +1 -0
- package/dist/wasm/discover.js +6 -31
- package/dist/wasm/discover.js.map +1 -1
- package/package.json +20 -20
- package/surface-manifest.json +20 -35
|
@@ -733,6 +733,12 @@ export const OBJECT_CALLABLE_VALUES = {
|
|
|
733
733
|
result: DYN,
|
|
734
734
|
valueParams: exactValueParams(DYN, DYN),
|
|
735
735
|
},
|
|
736
|
+
hasOwn: {
|
|
737
|
+
fn: "dyn.hasOwnComputed",
|
|
738
|
+
params: [DYN, DYN],
|
|
739
|
+
result: BOOL,
|
|
740
|
+
valueParams: exactValueParams(DYN, DYN),
|
|
741
|
+
},
|
|
736
742
|
keys: { fn: "dyn.objKeys", params: [DYN], result: DYN, valueParams: exactValueParams(DYN) },
|
|
737
743
|
values: { fn: "dyn.objValues", params: [DYN], result: DYN, valueParams: exactValueParams(DYN) },
|
|
738
744
|
entries: { fn: "dyn.objEntries", params: [DYN], result: DYN, valueParams: exactValueParams(DYN) },
|
|
@@ -976,909 +982,936 @@ export const UTIL_TYPES_KEYS = [
|
|
|
976
982
|
"isKeyObject",
|
|
977
983
|
"isCryptoKey",
|
|
978
984
|
];
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
params: [STRING],
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
fn: "fs.
|
|
1007
|
-
|
|
1008
|
-
result:
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
params: [STRING, F64],
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
result: VOID,
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
fn: "fs.
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
params: [
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
result: VOID,
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
fn: "fs.
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
},
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
result: { kind: "promise", inner:
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
fn: "fsp.
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
fn: "fsp.
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
{
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
//
|
|
1336
|
-
//
|
|
1337
|
-
|
|
1338
|
-
//
|
|
1339
|
-
|
|
1340
|
-
//
|
|
1341
|
-
|
|
1342
|
-
//
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
result:
|
|
1348
|
-
valueParams: [],
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
//
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
fn: "
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
result:
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
params: [
|
|
1443
|
-
result: DYN,
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
fn: "
|
|
1504
|
-
params: [
|
|
1505
|
-
result:
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
fn: "
|
|
1513
|
-
params: [
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
],
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
fn: "
|
|
1522
|
-
params: [
|
|
1523
|
-
result:
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
params: [
|
|
1579
|
-
result:
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
|
|
1621
|
-
|
|
1622
|
-
|
|
1623
|
-
|
|
1624
|
-
|
|
1625
|
-
|
|
1626
|
-
fn: "util.
|
|
1627
|
-
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
|
|
1677
|
-
|
|
1678
|
-
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
|
|
1682
|
-
|
|
1683
|
-
|
|
1684
|
-
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
result:
|
|
1738
|
-
|
|
1739
|
-
|
|
1740
|
-
|
|
1741
|
-
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
},
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1756
|
-
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
//
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
}
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
985
|
+
let builtinModuleFnTable;
|
|
986
|
+
/** Every builtin module's lowered function members, keyed by module and
|
|
987
|
+
* member. The table is built on the first call, so runs that do not lower
|
|
988
|
+
* a module do not construct it. */
|
|
989
|
+
export function builtinModuleFns() {
|
|
990
|
+
builtinModuleFnTable ??= buildBuiltinModuleFns();
|
|
991
|
+
return builtinModuleFnTable;
|
|
992
|
+
}
|
|
993
|
+
function buildBuiltinModuleFns() {
|
|
994
|
+
return {
|
|
995
|
+
fs: {
|
|
996
|
+
readFileSync: { fn: "fs.readFileSync", params: [STRING, STRING], result: STRING },
|
|
997
|
+
// The exact-API subset is first-class. A fixed native ABI is not enough:
|
|
998
|
+
// rows whose Node function has behavior-bearing trailing options remain
|
|
999
|
+
// call-only, or function-width adaptation could discard those options
|
|
1000
|
+
// without a diagnostic before entering the fixed runtime call.
|
|
1001
|
+
writeFileSync: { fn: "fs.writeFileSync", params: [STRING, STRING], result: VOID },
|
|
1002
|
+
appendFileSync: { fn: "fs.appendFileSync", params: [STRING, STRING], result: VOID },
|
|
1003
|
+
existsSync: {
|
|
1004
|
+
fn: "fs.existsSync",
|
|
1005
|
+
params: [STRING],
|
|
1006
|
+
result: BOOL,
|
|
1007
|
+
valueParams: exactValueParams(STRING),
|
|
1008
|
+
},
|
|
1009
|
+
mkdirSync: { fn: "fs.mkdirSync", params: [STRING], result: VOID },
|
|
1010
|
+
rmSync: { fn: "fs.rmSync", params: [STRING], result: VOID },
|
|
1011
|
+
rmdirSync: { fn: "fs.rmdirSync", params: [STRING], result: VOID },
|
|
1012
|
+
readdirSync: { fn: "fs.readdirSync", params: [STRING], result: arrayOf(STRING) },
|
|
1013
|
+
// Pattern and options are checked by the runtime (lowerFsGlobSyncCall).
|
|
1014
|
+
globSync: { fn: "fs.globSync", params: [DYN, DYN], result: arrayOf(STRING) },
|
|
1015
|
+
statSync: { fn: "fs.statSync", params: [STRING], result: STATS_T },
|
|
1016
|
+
mkdtempSync: { fn: "fs.mkdtempSync", params: [STRING], result: STRING },
|
|
1017
|
+
// accessSync's omitted mode completes to 0 (F_OK) in the special case
|
|
1018
|
+
// in lowerBuiltinModuleCall — string `defaults` can't spell a number.
|
|
1019
|
+
accessSync: { fn: "fs.accessSync", params: [STRING, F64], result: VOID },
|
|
1020
|
+
unlinkSync: {
|
|
1021
|
+
fn: "fs.unlinkSync",
|
|
1022
|
+
params: [STRING],
|
|
1023
|
+
result: VOID,
|
|
1024
|
+
valueParams: exactValueParams(STRING),
|
|
1025
|
+
},
|
|
1026
|
+
chmodSync: {
|
|
1027
|
+
fn: "fs.chmodSync",
|
|
1028
|
+
params: [STRING, F64],
|
|
1029
|
+
result: VOID,
|
|
1030
|
+
valueParams: exactValueParams(STRING, F64),
|
|
1031
|
+
},
|
|
1032
|
+
chownSync: {
|
|
1033
|
+
fn: "fs.chownSync",
|
|
1034
|
+
params: [STRING, F64, F64],
|
|
1035
|
+
result: VOID,
|
|
1036
|
+
valueParams: exactValueParams(STRING, F64, F64),
|
|
1037
|
+
},
|
|
1038
|
+
lchownSync: {
|
|
1039
|
+
fn: "fs.lchownSync",
|
|
1040
|
+
params: [STRING, F64, F64],
|
|
1041
|
+
result: VOID,
|
|
1042
|
+
valueParams: exactValueParams(STRING, F64, F64),
|
|
1043
|
+
},
|
|
1044
|
+
fchownSync: {
|
|
1045
|
+
fn: "fs.fchownSync",
|
|
1046
|
+
params: [F64, F64, F64],
|
|
1047
|
+
result: VOID,
|
|
1048
|
+
valueParams: exactValueParams(F64, F64, F64),
|
|
1049
|
+
},
|
|
1050
|
+
// truncateSync's omitted len completes to 0 in lowerBuiltinModuleCall,
|
|
1051
|
+
// like accessSync's mode.
|
|
1052
|
+
truncateSync: { fn: "fs.truncateSync", params: [STRING, F64], result: VOID },
|
|
1053
|
+
// The 2-argument form only: Node's mode flags (COPYFILE_EXCL, ...)
|
|
1054
|
+
// land on the arity fence.
|
|
1055
|
+
copyFileSync: { fn: "fs.copyFileSync", params: [STRING, STRING], result: VOID },
|
|
1056
|
+
// The callback form is special-cased in lowerBuiltinModuleCall: its
|
|
1057
|
+
// Error | null parameter is program-shaped and needs an emitted
|
|
1058
|
+
// adapter. The row still projects the static surface and routes the
|
|
1059
|
+
// dispatch.
|
|
1060
|
+
rename: { fn: "fs.renameCb", params: [], result: VOID },
|
|
1061
|
+
renameSync: {
|
|
1062
|
+
fn: "fs.renameSync",
|
|
1063
|
+
params: [STRING, STRING],
|
|
1064
|
+
result: VOID,
|
|
1065
|
+
valueParams: exactValueParams(STRING, STRING),
|
|
1066
|
+
},
|
|
1067
|
+
// statSync's no-follow sibling; stats.isSymbolicLink answers what the
|
|
1068
|
+
// follow-free snapshot saw.
|
|
1069
|
+
// opendirSync's options (a literal { bufferSize, encoding: "utf8" })
|
|
1070
|
+
// lower in lowerBuiltinModuleCall; the row routes the dispatch.
|
|
1071
|
+
opendirSync: { fn: "fs.opendirSync", params: [STRING, F64], result: DIR_T },
|
|
1072
|
+
// createReadStream/createWriteStream lower in lowerBuiltinModuleCall
|
|
1073
|
+
// (path and options cross as dyn values); the rows route the dispatch.
|
|
1074
|
+
createReadStream: {
|
|
1075
|
+
fn: "fs.createReadStream",
|
|
1076
|
+
params: [DYN, DYN],
|
|
1077
|
+
result: { kind: "object", className: "%Readable" },
|
|
1078
|
+
},
|
|
1079
|
+
createWriteStream: {
|
|
1080
|
+
fn: "fs.createWriteStream",
|
|
1081
|
+
params: [DYN, DYN],
|
|
1082
|
+
result: { kind: "object", className: "%Writable" },
|
|
1083
|
+
},
|
|
1084
|
+
lstatSync: { fn: "fs.lstatSync", params: [STRING], result: STATS_T },
|
|
1085
|
+
fstatSync: {
|
|
1086
|
+
fn: "fs.fstatSync",
|
|
1087
|
+
params: [F64],
|
|
1088
|
+
result: STATS_T,
|
|
1089
|
+
valueParams: exactValueParams(F64),
|
|
1090
|
+
},
|
|
1091
|
+
fchmodSync: {
|
|
1092
|
+
fn: "fs.fchmodSync",
|
|
1093
|
+
params: [F64, F64],
|
|
1094
|
+
result: VOID,
|
|
1095
|
+
valueParams: exactValueParams(F64, F64),
|
|
1096
|
+
},
|
|
1097
|
+
fsyncSync: {
|
|
1098
|
+
fn: "fs.fsyncSync",
|
|
1099
|
+
params: [F64],
|
|
1100
|
+
result: VOID,
|
|
1101
|
+
valueParams: exactValueParams(F64),
|
|
1102
|
+
},
|
|
1103
|
+
fdatasyncSync: {
|
|
1104
|
+
fn: "fs.fdatasyncSync",
|
|
1105
|
+
params: [F64],
|
|
1106
|
+
result: VOID,
|
|
1107
|
+
valueParams: exactValueParams(F64),
|
|
1108
|
+
},
|
|
1109
|
+
ftruncateSync: { fn: "fs.ftruncateSync", params: [F64, F64], result: VOID },
|
|
1110
|
+
utimesSync: { fn: "fs.utimesSync", params: [DYN, DYN, DYN], result: VOID },
|
|
1111
|
+
futimesSync: { fn: "fs.futimesSync", params: [DYN, DYN, DYN], result: VOID },
|
|
1112
|
+
lutimesSync: { fn: "fs.lutimesSync", params: [DYN, DYN, DYN], result: VOID },
|
|
1113
|
+
readvSync: { fn: "fs.readvSync", params: [F64, arrayOf(BYTES_U8), F64], result: F64 },
|
|
1114
|
+
writevSync: { fn: "fs.writevSync", params: [F64, arrayOf(BYTES_U8), F64], result: F64 },
|
|
1115
|
+
linkSync: {
|
|
1116
|
+
fn: "fs.linkSync",
|
|
1117
|
+
params: [DYN, DYN],
|
|
1118
|
+
result: VOID,
|
|
1119
|
+
valueParams: exactValueParams(DYN, DYN),
|
|
1120
|
+
},
|
|
1121
|
+
// Options and paths are checked by the runtime (scr_fs_cp_begin).
|
|
1122
|
+
cpSync: {
|
|
1123
|
+
fn: "fs.cpSync",
|
|
1124
|
+
params: [DYN, DYN, DYN],
|
|
1125
|
+
result: VOID,
|
|
1126
|
+
valueParams: [
|
|
1127
|
+
...exactValueParams(DYN, DYN),
|
|
1128
|
+
{ mode: "optional", type: DYN, defaultValue: undefined },
|
|
1129
|
+
],
|
|
1130
|
+
},
|
|
1131
|
+
symlinkSync: {
|
|
1132
|
+
fn: "fs.symlinkSync",
|
|
1133
|
+
params: [DYN, DYN, DYN],
|
|
1134
|
+
result: VOID,
|
|
1135
|
+
valueParams: [
|
|
1136
|
+
...exactValueParams(DYN, DYN),
|
|
1137
|
+
{ mode: "optional", type: DYN, defaultValue: undefined },
|
|
1138
|
+
],
|
|
1139
|
+
},
|
|
1140
|
+
readlinkSync: {
|
|
1141
|
+
fn: "fs.readlinkSync",
|
|
1142
|
+
params: [DYN, DYN],
|
|
1143
|
+
result: DYN,
|
|
1144
|
+
valueParams: [
|
|
1145
|
+
...exactValueParams(DYN),
|
|
1146
|
+
{ mode: "optional", type: DYN, defaultValue: undefined },
|
|
1147
|
+
],
|
|
1148
|
+
},
|
|
1149
|
+
statfsSync: {
|
|
1150
|
+
fn: "fs.statfsSync",
|
|
1151
|
+
params: [DYN, DYN],
|
|
1152
|
+
result: DYN,
|
|
1153
|
+
valueParams: [
|
|
1154
|
+
...exactValueParams(DYN),
|
|
1155
|
+
{ mode: "optional", type: DYN, defaultValue: undefined },
|
|
1156
|
+
],
|
|
1157
|
+
},
|
|
1158
|
+
// realpath(3) — Node's realpathSync (failures spell syscall "lstat",
|
|
1159
|
+
// Node's own message shape).
|
|
1160
|
+
realpathSync: { fn: "fs.realpathSync", params: [STRING], result: STRING },
|
|
1161
|
+
"realpathSync.native": { fn: "fs.realpathNativeSync", params: [STRING], result: STRING },
|
|
1162
|
+
// The fd pair behind spawn's fd-stdio form (the daemon-log idiom:
|
|
1163
|
+
// openSync(logPath, "a") → spawn stdio ["ignore", fd, fd] →
|
|
1164
|
+
// closeSync). String flags use the established two-argument path;
|
|
1165
|
+
// inline numeric O_* expressions route through openNumericSync, with
|
|
1166
|
+
// an optional creation mode as the third argument.
|
|
1167
|
+
openSync: { fn: "fs.openSync", params: [STRING, STRING], result: F64 },
|
|
1168
|
+
// The buffer forms (fd, buffer, offset, length[, position]). The
|
|
1169
|
+
// lowering completes an omitted or literal-null position to -1 (the
|
|
1170
|
+
// runtime's current-offset sentinel); numeric positions read without
|
|
1171
|
+
// advancing the fd. The options-object and bigint forms still fence.
|
|
1172
|
+
readSync: { fn: "fs.readSync", params: [F64, BYTES_U8, F64, F64, F64], result: F64 },
|
|
1173
|
+
// Entirely special-cased: the classic Buffer window and utf8 string
|
|
1174
|
+
// overloads lower to separate fixed-width runtime ABIs. As with
|
|
1175
|
+
// readSync, -1 is the current-offset sentinel.
|
|
1176
|
+
writeSync: { fn: "fs.writeSync", params: [F64, BYTES_U8, F64, F64, F64], result: F64 },
|
|
1177
|
+
closeSync: {
|
|
1178
|
+
fn: "fs.closeSync",
|
|
1179
|
+
params: [F64],
|
|
1180
|
+
result: VOID,
|
|
1181
|
+
valueParams: exactValueParams(F64),
|
|
1182
|
+
},
|
|
1183
|
+
// Entirely special-cased (lowerFsWatchCall — the callback needs an
|
|
1184
|
+
// adapter per listener shape); this entry only routes the dispatch.
|
|
1185
|
+
watch: { fn: "fs.watch", params: [], result: VOID },
|
|
1186
|
+
},
|
|
1187
|
+
"fs/promises": {
|
|
1188
|
+
// The sync operations behind already-settled promises: failures
|
|
1189
|
+
// REJECT (catchable at the await) instead of throwing. readFile is
|
|
1190
|
+
// utf8-fenced exactly like readFileSync (same special case below).
|
|
1191
|
+
readFile: {
|
|
1192
|
+
fn: "fsp.readFile",
|
|
1193
|
+
params: [STRING, STRING],
|
|
1194
|
+
result: { kind: "promise", inner: STRING },
|
|
1195
|
+
},
|
|
1196
|
+
writeFile: {
|
|
1197
|
+
fn: "fsp.writeFile",
|
|
1198
|
+
params: [STRING, STRING],
|
|
1199
|
+
result: { kind: "promise", inner: VOID },
|
|
1200
|
+
},
|
|
1201
|
+
mkdir: { fn: "fsp.mkdir", params: [STRING], result: { kind: "promise", inner: VOID } },
|
|
1202
|
+
readdir: {
|
|
1203
|
+
fn: "fsp.readdir",
|
|
1204
|
+
params: [STRING],
|
|
1205
|
+
result: { kind: "promise", inner: arrayOf(STRING) },
|
|
1206
|
+
},
|
|
1207
|
+
rm: { fn: "fsp.rm", params: [STRING], result: { kind: "promise", inner: VOID } },
|
|
1208
|
+
// The async iterator lowers only as a for await head (lowerFspGlobCall).
|
|
1209
|
+
glob: { fn: "fsp.globStrings", params: [DYN, DYN], result: arrayOf(STRING) },
|
|
1210
|
+
stat: { fn: "fsp.stat", params: [STRING], result: { kind: "promise", inner: STATS_T } },
|
|
1211
|
+
realpath: {
|
|
1212
|
+
fn: "fsp.realpath",
|
|
1213
|
+
params: [STRING],
|
|
1214
|
+
result: { kind: "promise", inner: STRING },
|
|
1215
|
+
},
|
|
1216
|
+
lstat: { fn: "fsp.lstat", params: [STRING], result: { kind: "promise", inner: STATS_T } },
|
|
1217
|
+
opendir: {
|
|
1218
|
+
fn: "fsp.opendir",
|
|
1219
|
+
params: [STRING, F64],
|
|
1220
|
+
result: { kind: "promise", inner: DIR_T },
|
|
1221
|
+
},
|
|
1222
|
+
unlink: {
|
|
1223
|
+
fn: "fsp.unlink",
|
|
1224
|
+
params: [STRING],
|
|
1225
|
+
result: { kind: "promise", inner: VOID },
|
|
1226
|
+
valueParams: exactValueParams(STRING),
|
|
1227
|
+
},
|
|
1228
|
+
chmod: {
|
|
1229
|
+
fn: "fsp.chmod",
|
|
1230
|
+
params: [STRING, F64],
|
|
1231
|
+
result: { kind: "promise", inner: VOID },
|
|
1232
|
+
valueParams: exactValueParams(STRING, F64),
|
|
1233
|
+
},
|
|
1234
|
+
chown: {
|
|
1235
|
+
fn: "fsp.chown",
|
|
1236
|
+
params: [STRING, F64, F64],
|
|
1237
|
+
result: { kind: "promise", inner: VOID },
|
|
1238
|
+
valueParams: exactValueParams(STRING, F64, F64),
|
|
1239
|
+
},
|
|
1240
|
+
lchown: {
|
|
1241
|
+
fn: "fsp.lchown",
|
|
1242
|
+
params: [STRING, F64, F64],
|
|
1243
|
+
result: { kind: "promise", inner: VOID },
|
|
1244
|
+
valueParams: exactValueParams(STRING, F64, F64),
|
|
1245
|
+
},
|
|
1246
|
+
// access' omitted mode and truncate's omitted len complete to 0 in
|
|
1247
|
+
// lowerBuiltinModuleCall, like their sync spellings.
|
|
1248
|
+
access: { fn: "fsp.access", params: [STRING, F64], result: { kind: "promise", inner: VOID } },
|
|
1249
|
+
truncate: {
|
|
1250
|
+
fn: "fsp.truncate",
|
|
1251
|
+
params: [STRING, F64],
|
|
1252
|
+
result: { kind: "promise", inner: VOID },
|
|
1253
|
+
},
|
|
1254
|
+
// String data; Uint8Array/Buffer data routes to fsp.appendFileBytes in
|
|
1255
|
+
// lowerBuiltinModuleCall.
|
|
1256
|
+
appendFile: {
|
|
1257
|
+
fn: "fsp.appendFile",
|
|
1258
|
+
params: [STRING, STRING],
|
|
1259
|
+
result: { kind: "promise", inner: VOID },
|
|
1260
|
+
},
|
|
1261
|
+
// The 2-argument form only, like copyFileSync.
|
|
1262
|
+
copyFile: {
|
|
1263
|
+
fn: "fsp.copyFile",
|
|
1264
|
+
params: [STRING, STRING],
|
|
1265
|
+
result: { kind: "promise", inner: VOID },
|
|
1266
|
+
},
|
|
1267
|
+
mkdtemp: { fn: "fsp.mkdtemp", params: [STRING], result: { kind: "promise", inner: STRING } },
|
|
1268
|
+
rmdir: { fn: "fsp.rmdir", params: [STRING], result: { kind: "promise", inner: VOID } },
|
|
1269
|
+
link: {
|
|
1270
|
+
fn: "fsp.link",
|
|
1271
|
+
params: [DYN, DYN],
|
|
1272
|
+
result: { kind: "promise", inner: VOID },
|
|
1273
|
+
valueParams: exactValueParams(DYN, DYN),
|
|
1274
|
+
},
|
|
1275
|
+
cp: {
|
|
1276
|
+
fn: "fsp.cp",
|
|
1277
|
+
params: [DYN, DYN, DYN],
|
|
1278
|
+
result: { kind: "promise", inner: VOID },
|
|
1279
|
+
valueParams: [
|
|
1280
|
+
...exactValueParams(DYN, DYN),
|
|
1281
|
+
{ mode: "optional", type: DYN, defaultValue: undefined },
|
|
1282
|
+
],
|
|
1283
|
+
},
|
|
1284
|
+
symlink: {
|
|
1285
|
+
fn: "fsp.symlink",
|
|
1286
|
+
params: [DYN, DYN, DYN],
|
|
1287
|
+
result: { kind: "promise", inner: VOID },
|
|
1288
|
+
valueParams: [
|
|
1289
|
+
...exactValueParams(DYN, DYN),
|
|
1290
|
+
{ mode: "optional", type: DYN, defaultValue: undefined },
|
|
1291
|
+
],
|
|
1292
|
+
},
|
|
1293
|
+
readlink: {
|
|
1294
|
+
fn: "fsp.readlink",
|
|
1295
|
+
params: [DYN, DYN],
|
|
1296
|
+
result: { kind: "promise", inner: DYN },
|
|
1297
|
+
valueParams: [
|
|
1298
|
+
...exactValueParams(DYN),
|
|
1299
|
+
{ mode: "optional", type: DYN, defaultValue: undefined },
|
|
1300
|
+
],
|
|
1301
|
+
},
|
|
1302
|
+
statfs: {
|
|
1303
|
+
fn: "fsp.statfs",
|
|
1304
|
+
params: [DYN, DYN],
|
|
1305
|
+
result: { kind: "promise", inner: DYN },
|
|
1306
|
+
valueParams: [
|
|
1307
|
+
...exactValueParams(DYN),
|
|
1308
|
+
{ mode: "optional", type: DYN, defaultValue: undefined },
|
|
1309
|
+
],
|
|
1310
|
+
},
|
|
1311
|
+
utimes: {
|
|
1312
|
+
fn: "fsp.utimes",
|
|
1313
|
+
params: [DYN, DYN, DYN],
|
|
1314
|
+
result: { kind: "promise", inner: VOID },
|
|
1315
|
+
},
|
|
1316
|
+
lutimes: {
|
|
1317
|
+
fn: "fsp.lutimes",
|
|
1318
|
+
params: [DYN, DYN, DYN],
|
|
1319
|
+
result: { kind: "promise", inner: VOID },
|
|
1320
|
+
},
|
|
1321
|
+
rename: {
|
|
1322
|
+
fn: "fsp.rename",
|
|
1323
|
+
params: [STRING, STRING],
|
|
1324
|
+
result: { kind: "promise", inner: VOID },
|
|
1325
|
+
valueParams: exactValueParams(STRING, STRING),
|
|
1326
|
+
},
|
|
1327
|
+
// open's optional flags/mode completion is special-cased in
|
|
1328
|
+
// lowerBuiltinModuleCall; this row routes all import spellings and
|
|
1329
|
+
// gives coverage the static member.
|
|
1330
|
+
open: {
|
|
1331
|
+
fn: "fsp.open",
|
|
1332
|
+
params: [STRING, STRING, F64],
|
|
1333
|
+
result: { kind: "promise", inner: FILEHANDLE_T },
|
|
1334
|
+
valueParams: [
|
|
1335
|
+
{ mode: "required", type: STRING },
|
|
1336
|
+
{ mode: "optional", type: STRING, defaultValue: "r" },
|
|
1337
|
+
{ mode: "optional", type: F64, defaultValue: 0o666 },
|
|
1338
|
+
],
|
|
1339
|
+
},
|
|
1340
|
+
},
|
|
1341
|
+
// The bare module's POSIX-target binding; a win32 target rebinds it to
|
|
1342
|
+
// the win32 table (builtinModuleFnsOf — Node on Windows IS path.win32).
|
|
1343
|
+
path: PATH_MODULE_FNS,
|
|
1344
|
+
// Real Node modules ("node:path/posix" resolves), and the receivers of
|
|
1345
|
+
// `path.posix.<member>` / `path.win32.<member>` through the namespace
|
|
1346
|
+
// chain (builtinNamespaceModuleOf composes "path" + ".posix" to these
|
|
1347
|
+
// keys). Both namespaces carry the FULL surface on every platform,
|
|
1348
|
+
// Node's own rule: each answers its own platform's semantics anywhere.
|
|
1349
|
+
"path/posix": PATH_MODULE_FNS,
|
|
1350
|
+
"path/win32": PATH_WIN32_MODULE_FNS,
|
|
1351
|
+
os: {
|
|
1352
|
+
// One platform implementation: os.platform() === process.platform.
|
|
1353
|
+
platform: { fn: "process.platform", params: [], result: STRING, valueParams: [] },
|
|
1354
|
+
homedir: { fn: "os.homedir", params: [], result: STRING, valueParams: [] },
|
|
1355
|
+
tmpdir: { fn: "os.tmpdir", params: [], result: STRING, valueParams: [] },
|
|
1356
|
+
// uname(2)'s release field — Node's own implementation.
|
|
1357
|
+
release: { fn: "os.release", params: [], result: STRING, valueParams: [] },
|
|
1358
|
+
// uname(2)'s sysname field ("Darwin", "Linux", "Windows_NT") — the
|
|
1359
|
+
// libFn/runtime pair predates this entry (the portless surface used
|
|
1360
|
+
// them); this row makes the MODULE call reach them (test/common's
|
|
1361
|
+
// isAIX/isIBMi getters are the canonical callers).
|
|
1362
|
+
type: { fn: "os.type", params: [], result: STRING, valueParams: [] },
|
|
1363
|
+
// Total physical memory in bytes — same predating-pair story.
|
|
1364
|
+
totalmem: { fn: "os.totalmem", params: [], result: F64, valueParams: [] },
|
|
1365
|
+
// uv_available_parallelism: the CPUs this process may use (affinity,
|
|
1366
|
+
// then cgroup quota on Linux), at least 1.
|
|
1367
|
+
availableParallelism: {
|
|
1368
|
+
fn: "os.availableParallelism",
|
|
1369
|
+
params: [],
|
|
1370
|
+
result: F64,
|
|
1371
|
+
valueParams: [],
|
|
1372
|
+
},
|
|
1373
|
+
// os.arch() IS process.arch, like platform().
|
|
1374
|
+
arch: { fn: "process.arch", params: [], result: STRING, valueParams: [] },
|
|
1375
|
+
hostname: { fn: "os.hostname", params: [], result: STRING, valueParams: [] },
|
|
1376
|
+
// uv_os_uname's machine and version fields, read once at module load
|
|
1377
|
+
// in Node (they never change while a process runs).
|
|
1378
|
+
machine: { fn: "os.machine", params: [], result: STRING, valueParams: [] },
|
|
1379
|
+
version: { fn: "os.version", params: [], result: STRING, valueParams: [] },
|
|
1380
|
+
endianness: { fn: "os.endianness", params: [], result: STRING, valueParams: [] },
|
|
1381
|
+
freemem: { fn: "os.freemem", params: [], result: F64, valueParams: [] },
|
|
1382
|
+
uptime: { fn: "os.uptime", params: [], result: F64, valueParams: [] },
|
|
1383
|
+
loadavg: { fn: "os.loadavg", params: [], result: arrayOf(F64), valueParams: [] },
|
|
1384
|
+
// An omitted (or undefined) pid is 0, the current process
|
|
1385
|
+
// (lowerOsGetPriorityCall completes it).
|
|
1386
|
+
getPriority: {
|
|
1387
|
+
fn: "os.getPriority",
|
|
1388
|
+
params: [F64],
|
|
1389
|
+
result: F64,
|
|
1390
|
+
valueParams: [{ mode: "optional", type: F64, defaultValue: 0 }],
|
|
1391
|
+
},
|
|
1392
|
+
// A one-argument call is setPriority(0, priority)
|
|
1393
|
+
// (lowerOsSetPriorityCall completes it).
|
|
1394
|
+
setPriority: { fn: "os.setPriority", params: [F64, F64], result: VOID },
|
|
1395
|
+
// Special-cased (lowerOsCpusCall): the call site's CpuInfo[] assembles
|
|
1396
|
+
// from one uv_cpu_info snapshot.
|
|
1397
|
+
cpus: { fn: "os.cpusTake", params: [], result: VOID },
|
|
1398
|
+
// Entirely special-cased (lowerOsNetworkInterfacesCall): the result is
|
|
1399
|
+
// the call site's mapped Dict<NetworkInterfaceInfo[]> shape, verified
|
|
1400
|
+
// structurally there — this entry only routes the dispatch.
|
|
1401
|
+
networkInterfaces: { fn: "os.networkInterfaces", params: [], result: VOID },
|
|
1402
|
+
// Special-cased too (lowerOsUserInfoCall): the call site's mapped
|
|
1403
|
+
// UserInfo record assembles field-by-field from scalar libCalls.
|
|
1404
|
+
userInfo: { fn: "os.userName", params: [], result: VOID },
|
|
1405
|
+
},
|
|
1406
|
+
crypto: {
|
|
1407
|
+
randomUUID: {
|
|
1408
|
+
fn: "crypto.randomUUID",
|
|
1409
|
+
params: [],
|
|
1410
|
+
result: STRING,
|
|
1411
|
+
// As a value (uuid's `export default { randomUUID }`), the optional
|
|
1412
|
+
// options argument goes through the validating entry point.
|
|
1413
|
+
valueFn: "crypto.randomUUIDOpts",
|
|
1414
|
+
valueParams: [{ mode: "optional", type: DYN, defaultValue: undefined }],
|
|
1415
|
+
},
|
|
1416
|
+
// A real Buffer result. The composed randomBytes(n).toString(enc)
|
|
1417
|
+
// form KEEPS its one-libCall lowering (lowerCryptoComposedCall runs
|
|
1418
|
+
// first and the Buffer never materializes there); this entry covers
|
|
1419
|
+
// the bare calls and non-composed uses.
|
|
1420
|
+
randomBytes: {
|
|
1421
|
+
fn: "crypto.randomBytes",
|
|
1422
|
+
params: [F64],
|
|
1423
|
+
result: BYTES_U8,
|
|
1424
|
+
valueParams: exactValueParams(F64),
|
|
1425
|
+
},
|
|
1426
|
+
// The crypto utility surface is special-cased for overloads and
|
|
1427
|
+
// string/Buffer splits in lowerCryptoModuleCall. These rows carry the
|
|
1428
|
+
// canonical signatures for manifest projection and fallback dispatch.
|
|
1429
|
+
createHash: { fn: "crypto.hashNew", params: [STRING], result: CRYPTOHASH_T },
|
|
1430
|
+
createHmac: { fn: "crypto.hmacNewStr", params: [STRING, STRING], result: CRYPTOHMAC_T },
|
|
1431
|
+
hash: { fn: "crypto.hashDigestStr", params: [STRING, STRING, STRING], result: STRING },
|
|
1432
|
+
timingSafeEqual: { fn: "crypto.timingSafeEqual", params: [BYTES_U8, BYTES_U8], result: BOOL },
|
|
1433
|
+
randomFillSync: { fn: "crypto.randomFill", params: [BYTES_U8, F64, F64], result: BYTES_U8 },
|
|
1434
|
+
getRandomValues: { fn: "crypto.getRandomValues", params: [BYTES_U8], result: BYTES_U8 },
|
|
1435
|
+
randomInt: { fn: "crypto.randomInt", params: [F64, F64], result: F64 },
|
|
1436
|
+
randomFill: { fn: "crypto.randomFillCb", params: [], result: VOID },
|
|
1437
|
+
randomUUIDv7: {
|
|
1438
|
+
fn: "crypto.randomUUIDv7",
|
|
1439
|
+
params: [DYN],
|
|
1440
|
+
result: STRING,
|
|
1441
|
+
valueParams: [{ mode: "optional", type: DYN, defaultValue: undefined }],
|
|
1442
|
+
},
|
|
1443
|
+
createSecretKey: { fn: "crypto.createSecretKey", params: [DYN, DYN], result: DYN },
|
|
1444
|
+
generateKeySync: { fn: "crypto.generateKeySync", params: [DYN, DYN], result: DYN },
|
|
1445
|
+
generateKey: { fn: "crypto.generateKeyCb", params: [], result: VOID },
|
|
1446
|
+
// Asymmetric keys and signatures (lowerPkiCall): checked-dynamic
|
|
1447
|
+
// arguments, results converted to the call site's type.
|
|
1448
|
+
createPrivateKey: { fn: "crypto.createPrivateKey", params: [DYN], result: DYN },
|
|
1449
|
+
createPublicKey: { fn: "crypto.createPublicKey", params: [DYN], result: DYN },
|
|
1450
|
+
createSign: { fn: "crypto.createSign", params: [DYN], result: DYN },
|
|
1451
|
+
createVerify: { fn: "crypto.createVerify", params: [DYN], result: DYN },
|
|
1452
|
+
generateKeyPairSync: { fn: "crypto.generateKeyPairSync", params: [], result: DYN },
|
|
1453
|
+
generateKeyPair: { fn: "crypto.generateKeyPairCb", params: [], result: VOID },
|
|
1454
|
+
sign: { fn: "crypto.signOneshot", params: [], result: DYN },
|
|
1455
|
+
verify: { fn: "crypto.verifyOneshot", params: [], result: DYN },
|
|
1456
|
+
diffieHellman: { fn: "crypto.diffieHellman", params: [], result: DYN },
|
|
1457
|
+
pbkdf2Sync: {
|
|
1458
|
+
fn: "crypto.pbkdf2",
|
|
1459
|
+
params: [BYTES_U8, BYTES_U8, F64, F64, STRING],
|
|
1460
|
+
result: BYTES_U8,
|
|
1461
|
+
},
|
|
1462
|
+
pbkdf2: { fn: "crypto.pbkdf2Cb", params: [], result: VOID },
|
|
1463
|
+
hkdfSync: {
|
|
1464
|
+
fn: "crypto.hkdf",
|
|
1465
|
+
params: [STRING, BYTES_U8, BYTES_U8, BYTES_U8, F64],
|
|
1466
|
+
result: DYN,
|
|
1467
|
+
},
|
|
1468
|
+
hkdf: { fn: "crypto.hkdfCb", params: [], result: VOID },
|
|
1469
|
+
scryptSync: { fn: "crypto.scrypt", params: [BYTES_U8, BYTES_U8, F64, DYN], result: BYTES_U8 },
|
|
1470
|
+
scrypt: { fn: "crypto.scryptCb", params: [], result: VOID },
|
|
1471
|
+
// Checked-dynamic arguments; the result is a native Cipheriv or
|
|
1472
|
+
// Decipheriv handle (lowerCryptoModuleCall).
|
|
1473
|
+
createCipheriv: { fn: "crypto.cipherNew", params: [BOOL, DYN, DYN, DYN, DYN], result: DYN },
|
|
1474
|
+
createDecipheriv: { fn: "crypto.cipherNew", params: [BOOL, DYN, DYN, DYN, DYN], result: DYN },
|
|
1475
|
+
// A checked-dynamic curve name; the result is a native ECDH handle
|
|
1476
|
+
// (lowerCreateEcdh).
|
|
1477
|
+
createECDH: { fn: "crypto.ecdhNew", params: [DYN], result: DYN },
|
|
1478
|
+
// Checked-dynamic arguments; the result is a native DiffieHellman or
|
|
1479
|
+
// DiffieHellmanGroup handle (lowerCreateDiffieHellman and
|
|
1480
|
+
// lowerGetDiffieHellman).
|
|
1481
|
+
createDiffieHellman: { fn: "crypto.dhNew", params: [DYN, DYN, DYN, DYN], result: DYN },
|
|
1482
|
+
getDiffieHellman: { fn: "crypto.dhGroupNew", params: [DYN], result: DYN },
|
|
1483
|
+
createDiffieHellmanGroup: { fn: "crypto.dhGroupNew", params: [DYN], result: DYN },
|
|
1484
|
+
// Prime checks and generation (lowerPrimeCall): checked-dynamic
|
|
1485
|
+
// arguments, results converted to the call site's type.
|
|
1486
|
+
checkPrimeSync: { fn: "crypto.checkPrimeSync", params: [], result: DYN },
|
|
1487
|
+
// Checked-dynamic arguments, the result converted to the call site's
|
|
1488
|
+
// type (lowerPrimeCall).
|
|
1489
|
+
getCipherInfo: { fn: "crypto.getCipherInfo", params: [], result: DYN },
|
|
1490
|
+
checkPrime: { fn: "crypto.checkPrimeCb", params: [], result: VOID },
|
|
1491
|
+
generatePrimeSync: { fn: "crypto.generatePrimeSync", params: [], result: DYN },
|
|
1492
|
+
generatePrime: { fn: "crypto.generatePrimeCb", params: [], result: VOID },
|
|
1493
|
+
},
|
|
1494
|
+
zlib: {
|
|
1495
|
+
// The default-options convenience family is special-cased in
|
|
1496
|
+
// lowerBuiltinModuleCall: string inputs UTF-8 encode, callback forms
|
|
1497
|
+
// carry program-shaped closures, and explicit options fence per site.
|
|
1498
|
+
// native-toolchain.ts links libz only when these appear on the IR.
|
|
1499
|
+
deflate: { fn: "zlib.deflateCb", params: [], result: VOID },
|
|
1500
|
+
deflateSync: { fn: "zlib.deflateSync", params: [BYTES_U8], result: BYTES_U8 },
|
|
1501
|
+
inflate: { fn: "zlib.inflateCb", params: [], result: VOID },
|
|
1502
|
+
inflateSync: { fn: "zlib.inflateSync", params: [BYTES_U8], result: BYTES_U8 },
|
|
1503
|
+
deflateRaw: { fn: "zlib.deflateRawCb", params: [], result: VOID },
|
|
1504
|
+
deflateRawSync: { fn: "zlib.deflateRawSync", params: [BYTES_U8], result: BYTES_U8 },
|
|
1505
|
+
inflateRaw: { fn: "zlib.inflateRawCb", params: [], result: VOID },
|
|
1506
|
+
inflateRawSync: { fn: "zlib.inflateRawSync", params: [BYTES_U8], result: BYTES_U8 },
|
|
1507
|
+
gzip: { fn: "zlib.gzipCb", params: [], result: VOID },
|
|
1508
|
+
gzipSync: { fn: "zlib.gzipSync", params: [BYTES_U8], result: BYTES_U8 },
|
|
1509
|
+
gunzip: { fn: "zlib.gunzipCb", params: [], result: VOID },
|
|
1510
|
+
gunzipSync: { fn: "zlib.gunzipSync", params: [BYTES_U8], result: BYTES_U8 },
|
|
1511
|
+
unzip: { fn: "zlib.unzipCb", params: [], result: VOID },
|
|
1512
|
+
unzipSync: { fn: "zlib.unzipSync", params: [BYTES_U8], result: BYTES_U8 },
|
|
1513
|
+
crc32: { fn: "zlib.crc32", params: [], result: F64 },
|
|
1514
|
+
// Brotli (special-cased in lowerZlibModuleCall): every form takes the
|
|
1515
|
+
// options entries with Node's BROTLI_ENCODE or BROTLI_DECODE mode.
|
|
1516
|
+
brotliCompress: { fn: "zlib.cbOpts", params: [], result: VOID },
|
|
1517
|
+
brotliCompressSync: { fn: "zlib.syncOpts", params: [], result: BYTES_U8 },
|
|
1518
|
+
brotliDecompress: { fn: "zlib.cbOpts", params: [], result: VOID },
|
|
1519
|
+
brotliDecompressSync: { fn: "zlib.syncOpts", params: [], result: BYTES_U8 },
|
|
1520
|
+
// The stream factories (special-cased in lowerZlibModuleCall): each
|
|
1521
|
+
// answers a runtime Transform stream over the zlib engine.
|
|
1522
|
+
createDeflate: { fn: "zlib.streamNew", params: [], result: ZLIB_STREAM },
|
|
1523
|
+
createInflate: { fn: "zlib.streamNew", params: [], result: ZLIB_STREAM },
|
|
1524
|
+
createGzip: { fn: "zlib.streamNew", params: [], result: ZLIB_STREAM },
|
|
1525
|
+
createGunzip: { fn: "zlib.streamNew", params: [], result: ZLIB_STREAM },
|
|
1526
|
+
createDeflateRaw: { fn: "zlib.streamNew", params: [], result: ZLIB_STREAM },
|
|
1527
|
+
createInflateRaw: { fn: "zlib.streamNew", params: [], result: ZLIB_STREAM },
|
|
1528
|
+
createUnzip: { fn: "zlib.streamNew", params: [], result: ZLIB_STREAM },
|
|
1529
|
+
createBrotliCompress: { fn: "zlib.streamNew", params: [], result: ZLIB_STREAM },
|
|
1530
|
+
createBrotliDecompress: { fn: "zlib.streamNew", params: [], result: ZLIB_STREAM },
|
|
1531
|
+
},
|
|
1532
|
+
url: {
|
|
1533
|
+
fileURLToPath: {
|
|
1534
|
+
fn: "url.fileURLToPathOptions",
|
|
1535
|
+
params: [DYN, DYN],
|
|
1536
|
+
result: STRING,
|
|
1537
|
+
valueParams: [
|
|
1538
|
+
{ mode: "required", type: DYN },
|
|
1539
|
+
{ mode: "optional", type: DYN, defaultValue: undefined },
|
|
1540
|
+
],
|
|
1541
|
+
},
|
|
1542
|
+
fileURLToPathBuffer: {
|
|
1543
|
+
fn: "url.fileURLToPathBuffer",
|
|
1544
|
+
params: [DYN, DYN],
|
|
1545
|
+
result: BYTES_U8,
|
|
1546
|
+
valueParams: [
|
|
1547
|
+
{ mode: "required", type: DYN },
|
|
1548
|
+
{ mode: "optional", type: DYN, defaultValue: undefined },
|
|
1549
|
+
],
|
|
1550
|
+
},
|
|
1551
|
+
pathToFileURL: {
|
|
1552
|
+
fn: "url.pathToFileURLChecked",
|
|
1553
|
+
params: [DYN, DYN],
|
|
1554
|
+
result: URL_T,
|
|
1555
|
+
valueParams: [
|
|
1556
|
+
{ mode: "required", type: DYN },
|
|
1557
|
+
{ mode: "optional", type: DYN, defaultValue: undefined },
|
|
1558
|
+
],
|
|
1559
|
+
},
|
|
1560
|
+
// The legacy API and the domain pair (lowerLegacyUrlCall): arguments
|
|
1561
|
+
// cross as dyn values for Node's own validators; url.parse() answers
|
|
1562
|
+
// the checked-dynamic Url instance.
|
|
1563
|
+
parse: { fn: "url.legacyParse", params: [DYN, DYN, DYN], result: DYN },
|
|
1564
|
+
format: { fn: "url.legacyFormat", params: [DYN, DYN], result: STRING },
|
|
1565
|
+
resolve: { fn: "url.legacyResolve", params: [DYN, DYN], result: STRING },
|
|
1566
|
+
domainToASCII: { fn: "url.domainToASCII", params: [DYN], result: STRING },
|
|
1567
|
+
domainToUnicode: { fn: "url.domainToUnicode", params: [DYN], result: STRING },
|
|
1568
|
+
urlToHttpOptions: { fn: "url.toHttpOptions", params: [DYN], result: DYN },
|
|
1569
|
+
},
|
|
1570
|
+
child_process: {
|
|
1571
|
+
// spawnSync's and spawn's call completions are entirely special-cased
|
|
1572
|
+
// (an omitted args list completes to an empty string[]; spawnSync
|
|
1573
|
+
// accepts its documented literal options, while spawn supports the
|
|
1574
|
+
// stdio/detached/env/cwd/windowsHide/shell subset — see
|
|
1575
|
+
// lowerBuiltinModuleCall); the
|
|
1576
|
+
// entries carry the canonical shapes.
|
|
1577
|
+
spawnSync: { fn: "cp.spawnSync", params: [STRING, arrayOf(STRING)], result: SPAWNRES_T },
|
|
1578
|
+
spawn: { fn: "cp.spawn", params: [STRING, arrayOf(STRING)], result: CHILD_T },
|
|
1579
|
+
fork: { fn: "cp.fork", params: [STRING, arrayOf(STRING)], result: CHILD_T },
|
|
1580
|
+
// execFileSync(file, args?, options?) and execSync(command, options?)
|
|
1581
|
+
// share the cp.execSync runtime entry (execSync sets the shell flag);
|
|
1582
|
+
// both call completions are special-cased in lowerBuiltinModuleCall.
|
|
1583
|
+
// The entries carry canonical shapes for the coverage/fence machinery.
|
|
1584
|
+
execFileSync: { fn: "cp.execSync", params: [STRING, arrayOf(STRING)], result: STRING },
|
|
1585
|
+
execSync: { fn: "cp.execSync", params: [STRING], result: STRING },
|
|
1586
|
+
},
|
|
1587
|
+
// node:util lowers through dedicated paths: promisify
|
|
1588
|
+
// only in the const-binding-over-execFile shape — recognized in
|
|
1589
|
+
// lowerVarDecl / collectGlobals BEFORE any call lowering runs — and
|
|
1590
|
+
// inspect/format/formatWithOptions plus parseArgs through the util spoke
|
|
1591
|
+
// (lower-inspect.ts: per-type synthesized traversal helpers,
|
|
1592
|
+
// compile-time format strings, checked-dynamic config/result for
|
|
1593
|
+
// parseArgs), which both dispatch paths try before the generic table.
|
|
1594
|
+
// parseArgs is tabled as well so the generated surface manifest records
|
|
1595
|
+
// the dedicated static member; the spoke owns its optional arity and
|
|
1596
|
+
// call-site-specific result type before this canonical signature is used.
|
|
1597
|
+
util: {
|
|
1598
|
+
styleText: {
|
|
1599
|
+
fn: "util.styleText",
|
|
1600
|
+
params: [DYN, DYN, DYN],
|
|
1601
|
+
result: STRING,
|
|
1602
|
+
valueParams: [
|
|
1603
|
+
{ mode: "required", type: DYN },
|
|
1604
|
+
{ mode: "required", type: DYN },
|
|
1605
|
+
{ mode: "optional", type: DYN, defaultValue: undefined },
|
|
1606
|
+
],
|
|
1607
|
+
},
|
|
1608
|
+
isDeepStrictEqual: {
|
|
1609
|
+
fn: "util.isDeepStrictEqual",
|
|
1610
|
+
params: [DYN, DYN, DYN],
|
|
1611
|
+
result: BOOL,
|
|
1612
|
+
valueParams: [
|
|
1613
|
+
{ mode: "required", type: DYN },
|
|
1614
|
+
{ mode: "required", type: DYN },
|
|
1615
|
+
{ mode: "optional", type: DYN, defaultValue: undefined },
|
|
1616
|
+
],
|
|
1617
|
+
},
|
|
1618
|
+
parseArgs: { fn: "util.parseArgs", params: [DYN], result: DYN },
|
|
1619
|
+
parseEnv: { fn: "util.parseEnv", params: [DYN], result: DYN },
|
|
1620
|
+
getSystemErrorName: {
|
|
1621
|
+
fn: "util.getSystemErrorName",
|
|
1622
|
+
params: [DYN],
|
|
1623
|
+
result: STRING,
|
|
1624
|
+
valueParams: exactValueParams(DYN),
|
|
1625
|
+
},
|
|
1626
|
+
getSystemErrorMessage: {
|
|
1627
|
+
fn: "util.getSystemErrorMessage",
|
|
1628
|
+
params: [DYN],
|
|
1629
|
+
result: STRING,
|
|
1630
|
+
valueParams: exactValueParams(DYN),
|
|
1631
|
+
},
|
|
1632
|
+
getSystemErrorMap: { fn: "util.systemErrorEntries", params: [], result: DYN },
|
|
1633
|
+
stripVTControlCharacters: {
|
|
1634
|
+
fn: "util.stripVTControlCharacters",
|
|
1635
|
+
params: [DYN],
|
|
1636
|
+
result: STRING,
|
|
1637
|
+
valueParams: exactValueParams(DYN),
|
|
1638
|
+
},
|
|
1639
|
+
toUSVString: {
|
|
1640
|
+
fn: "util.toUSVString",
|
|
1641
|
+
params: [DYN],
|
|
1642
|
+
result: STRING,
|
|
1643
|
+
valueParams: exactValueParams(DYN),
|
|
1644
|
+
},
|
|
1645
|
+
// The function helpers take checked-dynamic arguments and answer native
|
|
1646
|
+
// dyn functions, which a static function slot checks when it receives
|
|
1647
|
+
// one (lowerUtilCallableCall in the util spoke).
|
|
1648
|
+
inherits: {
|
|
1649
|
+
fn: "util.inherits",
|
|
1650
|
+
params: [DYN, DYN],
|
|
1651
|
+
result: VOID,
|
|
1652
|
+
valueParams: [
|
|
1653
|
+
{ mode: "required", type: DYN },
|
|
1654
|
+
{ mode: "required", type: DYN },
|
|
1655
|
+
],
|
|
1656
|
+
},
|
|
1657
|
+
deprecate: {
|
|
1658
|
+
fn: "util.deprecate",
|
|
1659
|
+
params: [DYN, DYN, DYN, DYN],
|
|
1660
|
+
result: DYN,
|
|
1661
|
+
valueParams: [
|
|
1662
|
+
{ mode: "required", type: DYN },
|
|
1663
|
+
{ mode: "required", type: DYN },
|
|
1664
|
+
{ mode: "optional", type: DYN, defaultValue: undefined },
|
|
1665
|
+
{ mode: "optional", type: DYN, defaultValue: undefined },
|
|
1666
|
+
],
|
|
1667
|
+
},
|
|
1668
|
+
callbackify: {
|
|
1669
|
+
fn: "util.callbackify",
|
|
1670
|
+
params: [DYN],
|
|
1671
|
+
result: DYN,
|
|
1672
|
+
valueParams: [{ mode: "required", type: DYN }],
|
|
1673
|
+
},
|
|
1674
|
+
debuglog: {
|
|
1675
|
+
fn: "util.debuglog",
|
|
1676
|
+
params: [DYN, DYN],
|
|
1677
|
+
result: DYN,
|
|
1678
|
+
valueParams: [
|
|
1679
|
+
{ mode: "required", type: DYN },
|
|
1680
|
+
{ mode: "optional", type: DYN, defaultValue: undefined },
|
|
1681
|
+
],
|
|
1682
|
+
},
|
|
1683
|
+
debug: {
|
|
1684
|
+
fn: "util.debuglog",
|
|
1685
|
+
params: [DYN, DYN],
|
|
1686
|
+
result: DYN,
|
|
1687
|
+
valueParams: [
|
|
1688
|
+
{ mode: "required", type: DYN },
|
|
1689
|
+
{ mode: "optional", type: DYN, defaultValue: undefined },
|
|
1690
|
+
],
|
|
1691
|
+
},
|
|
1692
|
+
},
|
|
1693
|
+
// The util/types spoke supplies the probe name to the shared brand check.
|
|
1694
|
+
"util/types": {
|
|
1695
|
+
isAnyArrayBuffer: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1696
|
+
isArrayBuffer: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1697
|
+
isArrayBufferView: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1698
|
+
isDataView: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1699
|
+
isTypedArray: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1700
|
+
isUint8Array: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1701
|
+
isUint8ClampedArray: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1702
|
+
isUint16Array: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1703
|
+
isUint32Array: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1704
|
+
isInt8Array: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1705
|
+
isInt16Array: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1706
|
+
isInt32Array: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1707
|
+
isFloat32Array: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1708
|
+
isFloat64Array: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1709
|
+
isMap: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1710
|
+
isSet: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1711
|
+
isWeakMap: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1712
|
+
isWeakSet: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1713
|
+
isRegExp: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1714
|
+
isNativeError: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1715
|
+
isPromise: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1716
|
+
isProxy: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1717
|
+
isAsyncFunction: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1718
|
+
isGeneratorFunction: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1719
|
+
isGeneratorObject: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1720
|
+
isDate: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1721
|
+
isSharedArrayBuffer: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1722
|
+
isMapIterator: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1723
|
+
isSetIterator: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1724
|
+
isKeyObject: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1725
|
+
isNumberObject: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1726
|
+
isStringObject: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1727
|
+
isBooleanObject: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1728
|
+
isBigIntObject: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1729
|
+
isSymbolObject: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1730
|
+
isBoxedPrimitive: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1731
|
+
isBigInt64Array: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1732
|
+
isBigUint64Array: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1733
|
+
isFloat16Array: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1734
|
+
isCryptoKey: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1735
|
+
isExternal: { fn: "util.typeIs", params: [DYN], result: BOOL },
|
|
1736
|
+
},
|
|
1737
|
+
buffer: {
|
|
1738
|
+
isAscii: { fn: "buffer.isAscii", params: [DYN], result: BOOL },
|
|
1739
|
+
isUtf8: { fn: "buffer.isUtf8", params: [DYN], result: BOOL },
|
|
1740
|
+
transcode: { fn: "buffer.transcode", params: [DYN, DYN, DYN], result: BYTES_U8 },
|
|
1741
|
+
},
|
|
1742
|
+
tty: {
|
|
1743
|
+
isatty: { fn: "process.isTTY", params: [F64], result: BOOL },
|
|
1744
|
+
},
|
|
1745
|
+
process: {
|
|
1746
|
+
loadEnvFile: { fn: "process.loadEnvFile", params: [DYN], result: VOID },
|
|
1747
|
+
},
|
|
1748
|
+
// node:string_decoder's surface is the StringDecoder CLASS — new/write/
|
|
1749
|
+
// end are special-cased (lowerNew + lowerStringDecoderMethodCall); no
|
|
1750
|
+
// function members exist to table.
|
|
1751
|
+
string_decoder: {},
|
|
1752
|
+
// node:querystring — the legacy query-string codec (NOT URLSearchParams;
|
|
1753
|
+
// the escaping and '+' rules differ). escape/unescape ride the table
|
|
1754
|
+
// path directly; parse and stringify are special-cased in
|
|
1755
|
+
// lowerBuiltinModuleCall (parse's result is the call site's mapped
|
|
1756
|
+
// ParsedUrlQuery dictionary — the networkInterfaces verification stance
|
|
1757
|
+
// — and its sep/eq/options complete there; stringify's object argument
|
|
1758
|
+
// crosses as a dyn value). decode/encode are Node's own aliases of
|
|
1759
|
+
// parse/stringify (`const decode = parse` in lib/querystring.js) and
|
|
1760
|
+
// route to the same special cases; the entries carry canonical shapes.
|
|
1761
|
+
querystring: {
|
|
1762
|
+
parse: { fn: "qs.parse", params: [STRING], result: VOID },
|
|
1763
|
+
decode: { fn: "qs.parse", params: [STRING], result: VOID },
|
|
1764
|
+
stringify: { fn: "qs.stringify", params: [DYN], result: STRING },
|
|
1765
|
+
encode: { fn: "qs.stringify", params: [DYN], result: STRING },
|
|
1766
|
+
escape: {
|
|
1767
|
+
fn: "qs.escape",
|
|
1768
|
+
params: [STRING],
|
|
1769
|
+
result: STRING,
|
|
1770
|
+
valueParams: [{ mode: "required", type: STRING }],
|
|
1771
|
+
},
|
|
1772
|
+
unescape: {
|
|
1773
|
+
fn: "qs.unescape",
|
|
1774
|
+
params: [STRING],
|
|
1775
|
+
result: STRING,
|
|
1776
|
+
valueParams: [{ mode: "required", type: STRING }],
|
|
1777
|
+
},
|
|
1778
|
+
},
|
|
1779
|
+
// node:punycode (deprecated): punycode.js 2.1.0's conversions over
|
|
1780
|
+
// strings (scr_url.c). ucs2.decode/encode are members of the module's
|
|
1781
|
+
// ucs2 object, dispatched as module members (builtinMemberOf). The
|
|
1782
|
+
// DEP0040 report rides the module's load sites (punycodeLoadWarning).
|
|
1783
|
+
punycode: {
|
|
1784
|
+
decode: { fn: "punycode.decode", params: [STRING], result: STRING },
|
|
1785
|
+
encode: { fn: "punycode.encode", params: [STRING], result: STRING },
|
|
1786
|
+
toASCII: { fn: "punycode.toASCII", params: [STRING], result: STRING },
|
|
1787
|
+
toUnicode: { fn: "punycode.toUnicode", params: [STRING], result: STRING },
|
|
1788
|
+
"ucs2.decode": { fn: "punycode.ucs2Decode", params: [STRING], result: arrayOf(F64) },
|
|
1789
|
+
"ucs2.encode": { fn: "punycode.ucs2Encode", params: [arrayOf(F64)], result: STRING },
|
|
1790
|
+
},
|
|
1791
|
+
// node:constants (deprecated) is one frozen object (Object.assign of
|
|
1792
|
+
// os.constants' groups, fs.constants and crypto.constants): bindings of
|
|
1793
|
+
// the module read it as a checked-dynamic value (builtinConstantsObject).
|
|
1794
|
+
constants: {},
|
|
1795
|
+
// node:readline: createInterface's options are entirely special-cased
|
|
1796
|
+
// (exactly { input: process.stdin, output?: process.stdout } — see
|
|
1797
|
+
// lowerBuiltinModuleCall); the entry carries the canonical shape. The
|
|
1798
|
+
// interface's question/close/on lower through
|
|
1799
|
+
// lowerReadlineMethodCall.
|
|
1800
|
+
readline: {
|
|
1801
|
+
createInterface: { fn: "rl.create", params: [], result: F64 },
|
|
1802
|
+
},
|
|
1803
|
+
// node:readline/promises: the same Interface with the promise question
|
|
1804
|
+
// (lowerReadlineMethodCall tells the forms apart by the call's result).
|
|
1805
|
+
"readline/promises": {
|
|
1806
|
+
createInterface: { fn: "rl.create", params: [], result: F64 },
|
|
1807
|
+
},
|
|
1808
|
+
// node:net and node:http lower ENTIRELY through the server spoke
|
|
1809
|
+
// (lower-server.ts — every call shape is special-cased: closures, the
|
|
1810
|
+
// optional connect host, writeHead's literal headers); the member list
|
|
1811
|
+
// is the lower-server dispatch there. The modules still need keys here so future
|
|
1812
|
+
// table entries have a home, and so the "recognized module, unlowered
|
|
1813
|
+
// member" fence wording applies.
|
|
1814
|
+
net: {
|
|
1815
|
+
// The process-wide happy-eyeballs attempt budget: one runtime double
|
|
1816
|
+
// in the core unit (never links scr_net.c by itself), default 250ms
|
|
1817
|
+
// like Node's.
|
|
1818
|
+
getDefaultAutoSelectFamilyAttemptTimeout: {
|
|
1819
|
+
fn: "net.getAutoSelTimeout",
|
|
1820
|
+
params: [],
|
|
1821
|
+
result: F64,
|
|
1822
|
+
},
|
|
1823
|
+
setDefaultAutoSelectFamilyAttemptTimeout: {
|
|
1824
|
+
fn: "net.setAutoSelTimeout",
|
|
1825
|
+
params: [F64],
|
|
1826
|
+
result: VOID,
|
|
1827
|
+
},
|
|
1828
|
+
// Node's IPv4Reg / IPv6Reg tests over String(input).
|
|
1829
|
+
isIP: { fn: "net.isIP", params: [DYN], result: F64 },
|
|
1830
|
+
isIPv4: { fn: "net.isIPv4", params: [DYN], result: BOOL },
|
|
1831
|
+
isIPv6: { fn: "net.isIPv6", params: [DYN], result: BOOL },
|
|
1832
|
+
},
|
|
1833
|
+
http: {},
|
|
1834
|
+
// node:tls and node:https ride the same spoke (tls.createServer's
|
|
1835
|
+
// options + secureConnection handler, https.createServer, and the
|
|
1836
|
+
// https client's rejectUnauthorized/ca options are all special-cased
|
|
1837
|
+
// in lower-server.ts).
|
|
1838
|
+
tls: {},
|
|
1839
|
+
https: {},
|
|
1840
|
+
// node:dgram and node:dns lower ENTIRELY through the dgram spoke
|
|
1841
|
+
// (lower-dgram.ts — createSocket's option literal, dns.lookup's
|
|
1842
|
+
// options + callback, and the Socket method surface are all
|
|
1843
|
+
// special-cased); the keys exist for the same reason net/http's do.
|
|
1844
|
+
dgram: {},
|
|
1845
|
+
dns: {},
|
|
1846
|
+
// node:dns/promises rides the same spoke (lookup's promise form).
|
|
1847
|
+
"dns/promises": {},
|
|
1848
|
+
// node:v8: getHeapStatistics answers allocator-derived figures in
|
|
1849
|
+
// Node's shape (builtins/v8.ts — the entry carries the canonical
|
|
1850
|
+
// shape); every other member fences with the by-design reason
|
|
1851
|
+
// (builtinFenceHintOf).
|
|
1852
|
+
v8: {
|
|
1853
|
+
getHeapStatistics: { fn: "process.memoryUsageTake", params: [], result: VOID },
|
|
1854
|
+
},
|
|
1855
|
+
// node:stream/web re-exports the web stream globals (the same objects);
|
|
1856
|
+
// its members lower through the globals' own paths.
|
|
1857
|
+
"stream/web": {},
|
|
1858
|
+
// node:assert lowers ENTIRELY through the assert spoke (lower-assert.ts
|
|
1859
|
+
// — every call shape is special-cased: optional messages complete, the
|
|
1860
|
+
// comparisons pick per-type libCalls, deep equality synthesizes
|
|
1861
|
+
// helpers); the keys exist so unlowered members fence module-qualified
|
|
1862
|
+
// with the hints below.
|
|
1863
|
+
assert: {},
|
|
1864
|
+
"assert/strict": {},
|
|
1865
|
+
// node:test lowers ENTIRELY through the test spoke (lower-test.ts —
|
|
1866
|
+
// registrations, suites, hooks, the TestContext surface); the key
|
|
1867
|
+
// exists so unlowered members fence module-qualified.
|
|
1868
|
+
test: {},
|
|
1869
|
+
// node:stream/promises lowers through the stream spoke too
|
|
1870
|
+
// (lower-stream.ts — finished/pipeline's promise forms special-case
|
|
1871
|
+
// their stream arguments exactly like the callback forms); the key
|
|
1872
|
+
// exists so unlowered members fence module-qualified.
|
|
1873
|
+
"stream/promises": {},
|
|
1874
|
+
// node:stream/consumers rides the stream spoke as well (text/json/
|
|
1875
|
+
// buffer/arrayBuffer special-case their stream argument); blob fences
|
|
1876
|
+
// module-qualified with the pointed hint below.
|
|
1877
|
+
"stream/consumers": {},
|
|
1878
|
+
// node:timers/promises — the delay-only setTimeout and bare setImmediate
|
|
1879
|
+
// (void promises the shared timer heap settles), and scheduler.wait /
|
|
1880
|
+
// scheduler.yield, which Node defines as setTimeout(delay, undefined,
|
|
1881
|
+
// options) and setImmediate(). The arity completion (omitted delay =
|
|
1882
|
+
// Node's 1ms) and the value/options fences are special-cased in
|
|
1883
|
+
// lowerBuiltinModuleCall; these entries carry the canonical shapes and
|
|
1884
|
+
// route the dispatch.
|
|
1885
|
+
"timers/promises": {
|
|
1886
|
+
setTimeout: { fn: "tp.setTimeout", params: [F64], result: { kind: "promise", inner: VOID } },
|
|
1887
|
+
setImmediate: { fn: "tp.setImmediate", params: [], result: { kind: "promise", inner: VOID } },
|
|
1888
|
+
"scheduler.wait": {
|
|
1889
|
+
fn: "tp.setTimeout",
|
|
1890
|
+
params: [F64],
|
|
1891
|
+
result: { kind: "promise", inner: VOID },
|
|
1892
|
+
},
|
|
1893
|
+
"scheduler.yield": {
|
|
1894
|
+
fn: "tp.setImmediate",
|
|
1895
|
+
params: [],
|
|
1896
|
+
result: { kind: "promise", inner: VOID },
|
|
1897
|
+
},
|
|
1898
|
+
},
|
|
1899
|
+
// node:diagnostics_channel — the pub/sub core. channel() answers an f64
|
|
1900
|
+
// handle (type-mapper.ts maps Channel to F64); the subscriber arguments box
|
|
1901
|
+
// into the checked-dynamic tree (special-cased in lowerBuiltinModuleCall — the entries
|
|
1902
|
+
// carry canonical shapes and route the dispatch). The Channel method
|
|
1903
|
+
// surface lowers through lowerDiagnosticsChannelMethodCall/lowerDiagnosticsChannelProperty.
|
|
1904
|
+
diagnostics_channel: {
|
|
1905
|
+
channel: { fn: "dc.channel", params: [STRING], result: F64 },
|
|
1906
|
+
subscribe: { fn: "dc.subscribe", params: [STRING, DYN], result: VOID },
|
|
1907
|
+
unsubscribe: { fn: "dc.unsubscribe", params: [STRING, DYN], result: BOOL },
|
|
1908
|
+
hasSubscribers: { fn: "dc.hasSubscribers", params: [STRING], result: BOOL },
|
|
1909
|
+
// The string form's canonical shape; the collection form (an object
|
|
1910
|
+
// literal of five Channels) is special-cased in lowerBuiltinModuleCall.
|
|
1911
|
+
tracingChannel: { fn: "dc.tracingChannel", params: [STRING], result: F64 },
|
|
1865
1912
|
},
|
|
1866
|
-
}
|
|
1867
|
-
|
|
1868
|
-
// handle (type-mapper.ts maps Channel to F64); the subscriber arguments box
|
|
1869
|
-
// into the checked-dynamic tree (special-cased in lowerBuiltinModuleCall — the entries
|
|
1870
|
-
// carry canonical shapes and route the dispatch). The Channel method
|
|
1871
|
-
// surface lowers through lowerDiagnosticsChannelMethodCall/lowerDiagnosticsChannelProperty.
|
|
1872
|
-
diagnostics_channel: {
|
|
1873
|
-
channel: { fn: "dc.channel", params: [STRING], result: F64 },
|
|
1874
|
-
subscribe: { fn: "dc.subscribe", params: [STRING, DYN], result: VOID },
|
|
1875
|
-
unsubscribe: { fn: "dc.unsubscribe", params: [STRING, DYN], result: BOOL },
|
|
1876
|
-
hasSubscribers: { fn: "dc.hasSubscribers", params: [STRING], result: BOOL },
|
|
1877
|
-
// The string form's canonical shape; the collection form (an object
|
|
1878
|
-
// literal of five Channels) is special-cased in lowerBuiltinModuleCall.
|
|
1879
|
-
tracingChannel: { fn: "dc.tracingChannel", params: [STRING], result: F64 },
|
|
1880
|
-
},
|
|
1881
|
-
};
|
|
1913
|
+
};
|
|
1914
|
+
}
|
|
1882
1915
|
/** Builtin-module CONSTANTS (value reads of named imports): each lowers to
|
|
1883
1916
|
* a literal of its value's kind. The bare-module values are the TARGET
|
|
1884
1917
|
* platform's (builtinModuleConstOf swaps the win32 values in under a win32
|
|
@@ -1908,7 +1941,7 @@ export const BUILTIN_MODULE_CONSTS = {
|
|
|
1908
1941
|
* the sidecar's determinism attestation demotes on them by prefix, so the
|
|
1909
1942
|
* member's fence detector must witness them too (fencing one spelling
|
|
1910
1943
|
* fences the operation, the trimLeft/trimStart rule). Keyed like
|
|
1911
|
-
*
|
|
1944
|
+
* builtinModuleFns(); consumed by the fence taxonomy
|
|
1912
1945
|
* (library/fence-eval.ts) and the attestation-parity test. */
|
|
1913
1946
|
export const BUILTIN_MODULE_FN_ALIASES = {
|
|
1914
1947
|
url: {
|
|
@@ -1961,6 +1994,8 @@ export const BUILTIN_MODULE_FN_ALIASES = {
|
|
|
1961
1994
|
],
|
|
1962
1995
|
// The utf8 string overload; the table row is the Buffer-window form.
|
|
1963
1996
|
writeSync: ["fs.writeStrSync"],
|
|
1997
|
+
// The form whose arguments Node checks at run time.
|
|
1998
|
+
readSync: ["fs.readSyncDyn"],
|
|
1964
1999
|
// The { recursive, mode } option lowerings.
|
|
1965
2000
|
mkdirSync: ["fs.mkdirModeSync", "fs.mkdirRecursiveSync", "fs.mkdirRecursiveModeSync"],
|
|
1966
2001
|
// The { recursive, force } and maxRetries/retryDelay option lowerings.
|
|
@@ -2035,621 +2070,641 @@ export const BUILTIN_MODULE_FN_ALIASES = {
|
|
|
2035
2070
|
cpus: ["os.cpusModel", "os.cpusField"],
|
|
2036
2071
|
},
|
|
2037
2072
|
};
|
|
2038
|
-
|
|
2039
|
-
|
|
2040
|
-
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
|
|
2051
|
-
"
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
"
|
|
2055
|
-
"
|
|
2056
|
-
"
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
"
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
"webcrypto.
|
|
2090
|
-
"
|
|
2091
|
-
"
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
"date
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
"date.
|
|
2147
|
-
"
|
|
2148
|
-
"
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2234
|
-
|
|
2235
|
-
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
2253
|
-
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
"
|
|
2321
|
-
"
|
|
2322
|
-
"
|
|
2323
|
-
"
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
"
|
|
2371
|
-
"
|
|
2372
|
-
"
|
|
2373
|
-
"perf.
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
|
|
2396
|
-
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
|
|
2425
|
-
|
|
2426
|
-
|
|
2427
|
-
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
|
|
2440
|
-
|
|
2441
|
-
|
|
2442
|
-
|
|
2443
|
-
|
|
2444
|
-
|
|
2445
|
-
|
|
2446
|
-
|
|
2447
|
-
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
|
|
2487
|
-
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2495
|
-
|
|
2496
|
-
|
|
2497
|
-
|
|
2498
|
-
|
|
2499
|
-
|
|
2500
|
-
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
2504
|
-
|
|
2505
|
-
|
|
2506
|
-
|
|
2507
|
-
|
|
2508
|
-
|
|
2509
|
-
|
|
2510
|
-
|
|
2511
|
-
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
|
|
2530
|
-
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
"process.
|
|
2539
|
-
"
|
|
2540
|
-
"process.
|
|
2541
|
-
"process.
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
"process.
|
|
2553
|
-
"
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
name
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2650
|
-
|
|
2651
|
-
|
|
2652
|
-
|
|
2073
|
+
let ambientSurfaceRows;
|
|
2074
|
+
/** The ambient surface rows, built on the first call. */
|
|
2075
|
+
export function ambientSurfaceFns() {
|
|
2076
|
+
ambientSurfaceRows ??= buildAmbientSurfaceFns();
|
|
2077
|
+
return ambientSurfaceRows;
|
|
2078
|
+
}
|
|
2079
|
+
function buildAmbientSurfaceFns() {
|
|
2080
|
+
return [
|
|
2081
|
+
{
|
|
2082
|
+
id: "node-builtin.worker_threads.Worker",
|
|
2083
|
+
kind: "node-builtin",
|
|
2084
|
+
name: "worker_threads.Worker",
|
|
2085
|
+
fns: ["worker.new"],
|
|
2086
|
+
note: "native threads with statically compiled entry points, workerData, argv and message events",
|
|
2087
|
+
},
|
|
2088
|
+
{
|
|
2089
|
+
id: "node-builtin.worker_threads.metadata",
|
|
2090
|
+
kind: "node-builtin",
|
|
2091
|
+
name: "worker_threads metadata",
|
|
2092
|
+
fns: [
|
|
2093
|
+
"worker.isMainThread",
|
|
2094
|
+
"worker.threadId",
|
|
2095
|
+
"worker.data",
|
|
2096
|
+
"worker.parentPort",
|
|
2097
|
+
"worker.resourceLimits",
|
|
2098
|
+
"worker.threadName",
|
|
2099
|
+
],
|
|
2100
|
+
note: "current-thread metadata and the worker's parent message port",
|
|
2101
|
+
},
|
|
2102
|
+
{
|
|
2103
|
+
id: "stdlib.sharedArrayBuffer",
|
|
2104
|
+
kind: "stdlib",
|
|
2105
|
+
name: "SharedArrayBuffer",
|
|
2106
|
+
fns: ["sharedArrayBuffer.new"],
|
|
2107
|
+
note: "fixed shared storage with context-local typed-array and DataView wrappers",
|
|
2108
|
+
},
|
|
2109
|
+
{
|
|
2110
|
+
id: "stdlib.blob",
|
|
2111
|
+
kind: "stdlib",
|
|
2112
|
+
name: "Blob",
|
|
2113
|
+
fns: ["blob.new", "blob.slice", "blob.text", "blob.bytes", "blob.arrayBuffer", "blob.is"],
|
|
2114
|
+
note: "immutable bytes with size, type, slice(), text(), bytes(), arrayBuffer() and structured cloning",
|
|
2115
|
+
},
|
|
2116
|
+
{
|
|
2117
|
+
id: "stdlib.file",
|
|
2118
|
+
kind: "stdlib",
|
|
2119
|
+
name: "File",
|
|
2120
|
+
fns: ["blob.fileNew"],
|
|
2121
|
+
note: "a Blob with name and lastModified (Date.now() when absent)",
|
|
2122
|
+
},
|
|
2123
|
+
{
|
|
2124
|
+
id: "stdlib.webcrypto.subtle",
|
|
2125
|
+
kind: "stdlib",
|
|
2126
|
+
name: "globalThis.crypto.subtle",
|
|
2127
|
+
fns: [
|
|
2128
|
+
"webcrypto.generateKey",
|
|
2129
|
+
"webcrypto.importKey",
|
|
2130
|
+
"webcrypto.exportKey",
|
|
2131
|
+
"webcrypto.encrypt",
|
|
2132
|
+
"webcrypto.decrypt",
|
|
2133
|
+
"webcrypto.wrapKey",
|
|
2134
|
+
"webcrypto.unwrapKey",
|
|
2135
|
+
"webcrypto.deriveBits",
|
|
2136
|
+
"webcrypto.deriveKey",
|
|
2137
|
+
"webcrypto.sign",
|
|
2138
|
+
"webcrypto.verify",
|
|
2139
|
+
"webcrypto.digest",
|
|
2140
|
+
],
|
|
2141
|
+
note: "importKey, generateKey and exportKey (raw and jwk) for HMAC and AES keys, importKey for PBKDF2 and HKDF keys, AES-GCM, AES-CBC and AES-CTR encrypt and decrypt, wrapKey and unwrapKey of secret keys with AES-KW or those ciphers, PBKDF2 and HKDF deriveBits and deriveKey, HMAC sign and verify, generateKey, importKey, exportKey, sign and verify for ECDSA, Ed25519, RSASSA-PKCS1-v1_5 and RSA-PSS, and SHA-1/SHA-2 digest; other methods, algorithms and key formats are refused",
|
|
2142
|
+
},
|
|
2143
|
+
{
|
|
2144
|
+
id: "stdlib.webcrypto.CryptoKey",
|
|
2145
|
+
kind: "stdlib",
|
|
2146
|
+
name: "CryptoKey",
|
|
2147
|
+
fns: ["webcrypto.isCryptoKey"],
|
|
2148
|
+
note: "secret HMAC, AES, PBKDF2 and HKDF keys with type, extractable, algorithm and usages, and instanceof CryptoKey",
|
|
2149
|
+
},
|
|
2150
|
+
{
|
|
2151
|
+
id: "stdlib.atomics",
|
|
2152
|
+
kind: "stdlib",
|
|
2153
|
+
name: "Atomics",
|
|
2154
|
+
fns: ["atomics.op", "atomics.wait", "atomics.notify"],
|
|
2155
|
+
note: "8-, 16- and 32-bit integer operations, plus Int32Array wait and notify",
|
|
2156
|
+
},
|
|
2157
|
+
{
|
|
2158
|
+
id: "node-builtin.fs.callbacks",
|
|
2159
|
+
kind: "node-builtin",
|
|
2160
|
+
name: "fs error-first callbacks",
|
|
2161
|
+
fns: ["fs.callbackValue", "fs.callbackCall", "fs.callbackGlob"],
|
|
2162
|
+
note: "native filesystem callbacks, including stored platform adapter functions",
|
|
2163
|
+
},
|
|
2164
|
+
// ── the Date slice (lowerDateCall/lowerNew): statics, construction,
|
|
2165
|
+
// stored read-only values, calendar getters, and ISO formatting.
|
|
2166
|
+
{
|
|
2167
|
+
id: "stdlib.date.now",
|
|
2168
|
+
kind: "stdlib",
|
|
2169
|
+
name: "Date.now",
|
|
2170
|
+
fns: ["date.now"],
|
|
2171
|
+
note: "the live clock",
|
|
2172
|
+
},
|
|
2173
|
+
{
|
|
2174
|
+
id: "stdlib.date.parse",
|
|
2175
|
+
kind: "stdlib",
|
|
2176
|
+
name: "Date.parse",
|
|
2177
|
+
fns: ["date.parse"],
|
|
2178
|
+
note: "one date string, using V8's date parser shared with new Date(dateString)",
|
|
2179
|
+
},
|
|
2180
|
+
{
|
|
2181
|
+
id: "stdlib.date.constructor",
|
|
2182
|
+
kind: "stdlib",
|
|
2183
|
+
name: "Date constructor",
|
|
2184
|
+
fns: [
|
|
2185
|
+
"date.newNow",
|
|
2186
|
+
"date.newMs",
|
|
2187
|
+
"date.newString",
|
|
2188
|
+
"date.nativeNew",
|
|
2189
|
+
"date.newLocal",
|
|
2190
|
+
"date.nativeNewFields",
|
|
2191
|
+
"date.nativeNewValue",
|
|
2192
|
+
"date.argumentsTime",
|
|
2193
|
+
"date.classOperation",
|
|
2194
|
+
],
|
|
2195
|
+
note: "zero arguments, one milliseconds/date-string argument, or local-time year/month fields; values are the read-only TimeClip scalar slice",
|
|
2196
|
+
},
|
|
2197
|
+
{
|
|
2198
|
+
id: "stdlib.date.setters",
|
|
2199
|
+
kind: "stdlib",
|
|
2200
|
+
name: "Date.prototype setters",
|
|
2201
|
+
fns: ["date.setFields", "date.timeClip", "date.store"],
|
|
2202
|
+
note: "setTime and the local and UTC field setters, with their optional arguments",
|
|
2203
|
+
},
|
|
2204
|
+
{
|
|
2205
|
+
id: "stdlib.date.UTC",
|
|
2206
|
+
kind: "stdlib",
|
|
2207
|
+
name: "Date.UTC",
|
|
2208
|
+
fns: ["date.utc"],
|
|
2209
|
+
note: "the lowered call form takes 1 to 7 number arguments",
|
|
2210
|
+
},
|
|
2211
|
+
{
|
|
2212
|
+
id: "stdlib.date.getTime",
|
|
2213
|
+
kind: "stdlib",
|
|
2214
|
+
name: "Date.prototype.getTime",
|
|
2215
|
+
fns: ["date.getTime", "date.parseGetTime"],
|
|
2216
|
+
note: "the millisecond value of a stored Date",
|
|
2217
|
+
},
|
|
2218
|
+
{
|
|
2219
|
+
id: "stdlib.date.valueOf",
|
|
2220
|
+
kind: "stdlib",
|
|
2221
|
+
name: "Date.prototype.valueOf",
|
|
2222
|
+
fns: ["date.valueOf"],
|
|
2223
|
+
note: "the same millisecond read as getTime()",
|
|
2224
|
+
},
|
|
2225
|
+
{
|
|
2226
|
+
id: "stdlib.date.toISOString",
|
|
2227
|
+
kind: "stdlib",
|
|
2228
|
+
name: "Date.prototype.toISOString",
|
|
2229
|
+
fns: ["date.toISOString", "date.toISOStringValue"],
|
|
2230
|
+
note: "UTC ISO formatting over constructed and stored Date values",
|
|
2231
|
+
},
|
|
2232
|
+
{
|
|
2233
|
+
id: "stdlib.date.toUTCString",
|
|
2234
|
+
kind: "stdlib",
|
|
2235
|
+
name: "Date.prototype.toUTCString",
|
|
2236
|
+
fns: ["date.toUTCString"],
|
|
2237
|
+
note: "RFC 7231 IMF-fixdate formatting over stored Date values",
|
|
2238
|
+
},
|
|
2239
|
+
{
|
|
2240
|
+
id: "stdlib.date.getFullYear",
|
|
2241
|
+
kind: "stdlib",
|
|
2242
|
+
name: "Date.prototype.getFullYear",
|
|
2243
|
+
fns: ["date.getFullYear"],
|
|
2244
|
+
},
|
|
2245
|
+
{
|
|
2246
|
+
id: "stdlib.date.getUTCFullYear",
|
|
2247
|
+
kind: "stdlib",
|
|
2248
|
+
name: "Date.prototype.getUTCFullYear",
|
|
2249
|
+
fns: ["date.getUTCFullYear"],
|
|
2250
|
+
},
|
|
2251
|
+
{
|
|
2252
|
+
id: "stdlib.date.getMonth",
|
|
2253
|
+
kind: "stdlib",
|
|
2254
|
+
name: "Date.prototype.getMonth",
|
|
2255
|
+
fns: ["date.getMonth"],
|
|
2256
|
+
},
|
|
2257
|
+
{
|
|
2258
|
+
id: "stdlib.date.getUTCMonth",
|
|
2259
|
+
kind: "stdlib",
|
|
2260
|
+
name: "Date.prototype.getUTCMonth",
|
|
2261
|
+
fns: ["date.getUTCMonth"],
|
|
2262
|
+
},
|
|
2263
|
+
{
|
|
2264
|
+
id: "stdlib.date.getDate",
|
|
2265
|
+
kind: "stdlib",
|
|
2266
|
+
name: "Date.prototype.getDate",
|
|
2267
|
+
fns: ["date.getDate"],
|
|
2268
|
+
},
|
|
2269
|
+
{
|
|
2270
|
+
id: "stdlib.date.getUTCDate",
|
|
2271
|
+
kind: "stdlib",
|
|
2272
|
+
name: "Date.prototype.getUTCDate",
|
|
2273
|
+
fns: ["date.getUTCDate"],
|
|
2274
|
+
},
|
|
2275
|
+
{
|
|
2276
|
+
id: "stdlib.date.getDay",
|
|
2277
|
+
kind: "stdlib",
|
|
2278
|
+
name: "Date.prototype.getDay",
|
|
2279
|
+
fns: ["date.getDay"],
|
|
2280
|
+
},
|
|
2281
|
+
{
|
|
2282
|
+
id: "stdlib.date.getUTCDay",
|
|
2283
|
+
kind: "stdlib",
|
|
2284
|
+
name: "Date.prototype.getUTCDay",
|
|
2285
|
+
fns: ["date.getUTCDay"],
|
|
2286
|
+
},
|
|
2287
|
+
{
|
|
2288
|
+
id: "stdlib.date.getHours",
|
|
2289
|
+
kind: "stdlib",
|
|
2290
|
+
name: "Date.prototype.getHours",
|
|
2291
|
+
fns: ["date.getHours"],
|
|
2292
|
+
},
|
|
2293
|
+
{
|
|
2294
|
+
id: "stdlib.date.getUTCHours",
|
|
2295
|
+
kind: "stdlib",
|
|
2296
|
+
name: "Date.prototype.getUTCHours",
|
|
2297
|
+
fns: ["date.getUTCHours"],
|
|
2298
|
+
},
|
|
2299
|
+
{
|
|
2300
|
+
id: "stdlib.date.getMinutes",
|
|
2301
|
+
kind: "stdlib",
|
|
2302
|
+
name: "Date.prototype.getMinutes",
|
|
2303
|
+
fns: ["date.getMinutes"],
|
|
2304
|
+
},
|
|
2305
|
+
{
|
|
2306
|
+
id: "stdlib.date.getUTCMinutes",
|
|
2307
|
+
kind: "stdlib",
|
|
2308
|
+
name: "Date.prototype.getUTCMinutes",
|
|
2309
|
+
fns: ["date.getUTCMinutes"],
|
|
2310
|
+
},
|
|
2311
|
+
{
|
|
2312
|
+
id: "stdlib.date.getSeconds",
|
|
2313
|
+
kind: "stdlib",
|
|
2314
|
+
name: "Date.prototype.getSeconds",
|
|
2315
|
+
fns: ["date.getSeconds"],
|
|
2316
|
+
},
|
|
2317
|
+
{
|
|
2318
|
+
id: "stdlib.date.getUTCSeconds",
|
|
2319
|
+
kind: "stdlib",
|
|
2320
|
+
name: "Date.prototype.getUTCSeconds",
|
|
2321
|
+
fns: ["date.getUTCSeconds"],
|
|
2322
|
+
},
|
|
2323
|
+
{
|
|
2324
|
+
id: "stdlib.date.getMilliseconds",
|
|
2325
|
+
kind: "stdlib",
|
|
2326
|
+
name: "Date.prototype.getMilliseconds",
|
|
2327
|
+
fns: ["date.getMilliseconds"],
|
|
2328
|
+
},
|
|
2329
|
+
{
|
|
2330
|
+
id: "stdlib.date.getUTCMilliseconds",
|
|
2331
|
+
kind: "stdlib",
|
|
2332
|
+
name: "Date.prototype.getUTCMilliseconds",
|
|
2333
|
+
fns: ["date.getUTCMilliseconds"],
|
|
2334
|
+
},
|
|
2335
|
+
{
|
|
2336
|
+
id: "stdlib.date.getTimezoneOffset",
|
|
2337
|
+
kind: "stdlib",
|
|
2338
|
+
name: "Date.prototype.getTimezoneOffset",
|
|
2339
|
+
fns: ["date.getTimezoneOffset"],
|
|
2340
|
+
},
|
|
2341
|
+
{
|
|
2342
|
+
id: "stdlib.date.toString",
|
|
2343
|
+
kind: "stdlib",
|
|
2344
|
+
name: "Date.prototype.toString",
|
|
2345
|
+
fns: ["date.toString"],
|
|
2346
|
+
note: "local time with the host zone's long English name; String(date) and template literals use it",
|
|
2347
|
+
},
|
|
2348
|
+
{
|
|
2349
|
+
id: "stdlib.date.toDateString",
|
|
2350
|
+
kind: "stdlib",
|
|
2351
|
+
name: "Date.prototype.toDateString",
|
|
2352
|
+
fns: ["date.toDateString"],
|
|
2353
|
+
},
|
|
2354
|
+
{
|
|
2355
|
+
id: "stdlib.date.toTimeString",
|
|
2356
|
+
kind: "stdlib",
|
|
2357
|
+
name: "Date.prototype.toTimeString",
|
|
2358
|
+
fns: ["date.toTimeString"],
|
|
2359
|
+
},
|
|
2360
|
+
// ── perf_hooks (lowerPerfHooksCall): the monotonic clock.
|
|
2361
|
+
{
|
|
2362
|
+
id: "node-builtin.perf_hooks.performance.now",
|
|
2363
|
+
kind: "node-builtin",
|
|
2364
|
+
name: "perf_hooks.performance.now",
|
|
2365
|
+
fns: ["perf.now"],
|
|
2366
|
+
note: "the global performance object and the performance.now.bind(performance) function value reach the same clock",
|
|
2367
|
+
},
|
|
2368
|
+
{
|
|
2369
|
+
id: "node-builtin.perf_hooks.performance.mark",
|
|
2370
|
+
kind: "node-builtin",
|
|
2371
|
+
name: "perf_hooks.performance.mark",
|
|
2372
|
+
fns: [
|
|
2373
|
+
"perf.mark",
|
|
2374
|
+
"perf.entryName",
|
|
2375
|
+
"perf.entryType",
|
|
2376
|
+
"perf.entryStart",
|
|
2377
|
+
"perf.entryDuration",
|
|
2378
|
+
"perf.entryDetail",
|
|
2379
|
+
"perf.entryKeep",
|
|
2380
|
+
"perf.entryRef",
|
|
2381
|
+
],
|
|
2382
|
+
note: "records a mark in the thread's performance timeline at the live clock or the given startTime",
|
|
2383
|
+
},
|
|
2384
|
+
{
|
|
2385
|
+
id: "node-builtin.perf_hooks.performance.measure",
|
|
2386
|
+
kind: "node-builtin",
|
|
2387
|
+
name: "perf_hooks.performance.measure",
|
|
2388
|
+
fns: ["perf.measure"],
|
|
2389
|
+
note: "the mark-name, timestamp, and options forms are one surface",
|
|
2390
|
+
},
|
|
2391
|
+
{
|
|
2392
|
+
id: "node-builtin.perf_hooks.performance.getEntries",
|
|
2393
|
+
kind: "node-builtin",
|
|
2394
|
+
name: "perf_hooks.performance.getEntries",
|
|
2395
|
+
fns: ["perf.entries"],
|
|
2396
|
+
note: "getEntries, getEntriesByName, and getEntriesByType read the same timeline",
|
|
2397
|
+
},
|
|
2398
|
+
{
|
|
2399
|
+
id: "node-builtin.perf_hooks.performance.clearMarks",
|
|
2400
|
+
kind: "node-builtin",
|
|
2401
|
+
name: "perf_hooks.performance.clearMarks",
|
|
2402
|
+
fns: ["perf.clearMarks"],
|
|
2403
|
+
},
|
|
2404
|
+
{
|
|
2405
|
+
id: "node-builtin.perf_hooks.performance.clearMeasures",
|
|
2406
|
+
kind: "node-builtin",
|
|
2407
|
+
name: "perf_hooks.performance.clearMeasures",
|
|
2408
|
+
fns: ["perf.clearMeasures"],
|
|
2409
|
+
},
|
|
2410
|
+
{
|
|
2411
|
+
id: "node-builtin.perf_hooks.performance.eventLoopUtilization",
|
|
2412
|
+
kind: "node-builtin",
|
|
2413
|
+
name: "perf_hooks.performance.eventLoopUtilization",
|
|
2414
|
+
fns: ["perf.loopStart", "perf.idleTime"],
|
|
2415
|
+
note: "active time is the main thread's CPU time since the loop started; the one- and two-argument difference forms are supported",
|
|
2416
|
+
},
|
|
2417
|
+
{
|
|
2418
|
+
id: "node-builtin.perf_hooks.monitorEventLoopDelay",
|
|
2419
|
+
kind: "node-builtin",
|
|
2420
|
+
name: "perf_hooks.monitorEventLoopDelay",
|
|
2421
|
+
fns: [
|
|
2422
|
+
"perf.eldNew",
|
|
2423
|
+
"perf.eldEnable",
|
|
2424
|
+
"perf.eldDisable",
|
|
2425
|
+
"perf.eldReset",
|
|
2426
|
+
"perf.eldPercentile",
|
|
2427
|
+
"perf.eldStat",
|
|
2428
|
+
],
|
|
2429
|
+
note: "an unref'd sampling interval records the delay histogram; enable, disable, reset, percentile and the min, max, mean, stddev, count and exceeds readings are supported",
|
|
2430
|
+
},
|
|
2431
|
+
// ── the process global's ambient reads and authority calls
|
|
2432
|
+
// (lowerProcessProperty/lowerProcessMethodCall — process is a
|
|
2433
|
+
// provenance-checked global here, not an importable module).
|
|
2434
|
+
{
|
|
2435
|
+
id: "node-builtin.process.env",
|
|
2436
|
+
kind: "node-builtin",
|
|
2437
|
+
name: "process.env",
|
|
2438
|
+
fns: ["process.envGet", "process.envSet", "process.envUnset", "process.envPairs"],
|
|
2439
|
+
note: "reads, writes, deletes, and enumeration of the process environment (the process global)",
|
|
2440
|
+
},
|
|
2441
|
+
{
|
|
2442
|
+
id: "node-builtin.process.argv",
|
|
2443
|
+
kind: "node-builtin",
|
|
2444
|
+
name: "process.argv",
|
|
2445
|
+
fns: ["process.argv"],
|
|
2446
|
+
},
|
|
2447
|
+
{
|
|
2448
|
+
id: "node-builtin.process.hrtime",
|
|
2449
|
+
kind: "node-builtin",
|
|
2450
|
+
name: "process.hrtime",
|
|
2451
|
+
fns: ["process.hrtimeValue"],
|
|
2452
|
+
note: "native monotonic tuple clock and bigint member; direct calls and stored JavaScript callable values",
|
|
2453
|
+
},
|
|
2454
|
+
{
|
|
2455
|
+
id: "node-builtin.process.getBuiltinModule",
|
|
2456
|
+
kind: "node-builtin",
|
|
2457
|
+
name: "process.getBuiltinModule",
|
|
2458
|
+
fns: ["process.builtinId", "process.builtinModule", "process.builtinUnsupported"],
|
|
2459
|
+
note: "native path and os export subsets plus current-thread worker_threads metadata; other modules and exports throw SC2020",
|
|
2460
|
+
},
|
|
2461
|
+
{
|
|
2462
|
+
id: "node-builtin.process.versions",
|
|
2463
|
+
kind: "node-builtin",
|
|
2464
|
+
name: "process.versions",
|
|
2465
|
+
fns: ["process.versions"],
|
|
2466
|
+
note: "shared version dictionary containing node and openssl; other components are absent unless defined by the program",
|
|
2467
|
+
},
|
|
2468
|
+
{
|
|
2469
|
+
id: "node-builtin.process.release",
|
|
2470
|
+
kind: "node-builtin",
|
|
2471
|
+
name: "process.release",
|
|
2472
|
+
fns: ["process.release"],
|
|
2473
|
+
note: "the compatibility target's release metadata as one stable read-only object",
|
|
2474
|
+
},
|
|
2475
|
+
{
|
|
2476
|
+
id: "node-builtin.process.cwd",
|
|
2477
|
+
kind: "node-builtin",
|
|
2478
|
+
name: "process.cwd",
|
|
2479
|
+
fns: ["process.cwd"],
|
|
2480
|
+
},
|
|
2481
|
+
{
|
|
2482
|
+
id: "node-builtin.process.chdir",
|
|
2483
|
+
kind: "node-builtin",
|
|
2484
|
+
name: "process.chdir",
|
|
2485
|
+
fns: ["process.chdir"],
|
|
2486
|
+
},
|
|
2487
|
+
{
|
|
2488
|
+
id: "node-builtin.process.pid",
|
|
2489
|
+
kind: "node-builtin",
|
|
2490
|
+
name: "process.pid",
|
|
2491
|
+
fns: ["process.pid"],
|
|
2492
|
+
},
|
|
2493
|
+
{
|
|
2494
|
+
id: "node-builtin.process.getuid",
|
|
2495
|
+
kind: "node-builtin",
|
|
2496
|
+
name: "process.getuid",
|
|
2497
|
+
fns: ["process.getuid"],
|
|
2498
|
+
},
|
|
2499
|
+
{
|
|
2500
|
+
id: "node-builtin.process.getgid",
|
|
2501
|
+
kind: "node-builtin",
|
|
2502
|
+
name: "process.getgid",
|
|
2503
|
+
fns: ["process.getgid"],
|
|
2504
|
+
},
|
|
2505
|
+
{
|
|
2506
|
+
id: "node-builtin.process.geteuid",
|
|
2507
|
+
kind: "node-builtin",
|
|
2508
|
+
name: "process.geteuid",
|
|
2509
|
+
fns: ["process.geteuid"],
|
|
2510
|
+
},
|
|
2511
|
+
{
|
|
2512
|
+
id: "node-builtin.process.getegid",
|
|
2513
|
+
kind: "node-builtin",
|
|
2514
|
+
name: "process.getegid",
|
|
2515
|
+
fns: ["process.getegid"],
|
|
2516
|
+
},
|
|
2517
|
+
{
|
|
2518
|
+
id: "node-builtin.process.getgroups",
|
|
2519
|
+
kind: "node-builtin",
|
|
2520
|
+
name: "process.getgroups",
|
|
2521
|
+
fns: ["process.getgroups"],
|
|
2522
|
+
},
|
|
2523
|
+
{
|
|
2524
|
+
id: "node-builtin.process.ppid",
|
|
2525
|
+
kind: "node-builtin",
|
|
2526
|
+
name: "process.ppid",
|
|
2527
|
+
fns: ["process.ppid"],
|
|
2528
|
+
},
|
|
2529
|
+
{
|
|
2530
|
+
id: "node-builtin.process.title",
|
|
2531
|
+
kind: "node-builtin",
|
|
2532
|
+
name: "process.title",
|
|
2533
|
+
fns: ["process.title", "process.setTitle"],
|
|
2534
|
+
note: "reads and writes of the process title are one surface",
|
|
2535
|
+
},
|
|
2536
|
+
{
|
|
2537
|
+
id: "node-builtin.process.argv0",
|
|
2538
|
+
kind: "node-builtin",
|
|
2539
|
+
name: "process.argv0",
|
|
2540
|
+
fns: ["process.argv0"],
|
|
2541
|
+
},
|
|
2542
|
+
{
|
|
2543
|
+
id: "node-builtin.process.execArgv",
|
|
2544
|
+
kind: "node-builtin",
|
|
2545
|
+
name: "process.execArgv",
|
|
2546
|
+
fns: ["process.execArgv"],
|
|
2547
|
+
},
|
|
2548
|
+
{
|
|
2549
|
+
id: "node-builtin.process.execPath",
|
|
2550
|
+
kind: "node-builtin",
|
|
2551
|
+
name: "process.execPath",
|
|
2552
|
+
fns: ["process.execPath"],
|
|
2553
|
+
},
|
|
2554
|
+
{
|
|
2555
|
+
id: "node-builtin.process.uptime",
|
|
2556
|
+
kind: "node-builtin",
|
|
2557
|
+
name: "process.uptime",
|
|
2558
|
+
fns: ["process.uptime"],
|
|
2559
|
+
},
|
|
2560
|
+
{
|
|
2561
|
+
id: "node-builtin.process.availableMemory",
|
|
2562
|
+
kind: "node-builtin",
|
|
2563
|
+
name: "process.availableMemory",
|
|
2564
|
+
fns: ["process.availableMemory"],
|
|
2565
|
+
},
|
|
2566
|
+
{
|
|
2567
|
+
id: "node-builtin.process.constrainedMemory",
|
|
2568
|
+
kind: "node-builtin",
|
|
2569
|
+
name: "process.constrainedMemory",
|
|
2570
|
+
fns: ["process.constrainedMemory"],
|
|
2571
|
+
},
|
|
2572
|
+
{
|
|
2573
|
+
id: "node-builtin.process.memoryUsage",
|
|
2574
|
+
kind: "node-builtin",
|
|
2575
|
+
name: "process.memoryUsage",
|
|
2576
|
+
fns: ["process.memoryUsageTake", "process.memoryUsageField", "process.rss"],
|
|
2577
|
+
note: "the record and memoryUsage.rss() read live memory state; external and arrayBuffers are 0",
|
|
2578
|
+
},
|
|
2579
|
+
{
|
|
2580
|
+
id: "node-builtin.process.resourceUsage",
|
|
2581
|
+
kind: "node-builtin",
|
|
2582
|
+
name: "process.resourceUsage",
|
|
2583
|
+
fns: ["process.rusage"],
|
|
2584
|
+
note: "getrusage's 16 fields — every field read samples live machine state",
|
|
2585
|
+
},
|
|
2586
|
+
{
|
|
2587
|
+
id: "node-builtin.process.cpuUsage",
|
|
2588
|
+
kind: "node-builtin",
|
|
2589
|
+
name: "process.cpuUsage",
|
|
2590
|
+
fns: [
|
|
2591
|
+
"process.cpuUser",
|
|
2592
|
+
"process.cpuSystem",
|
|
2593
|
+
"process.cpuUserDiff",
|
|
2594
|
+
"process.cpuSystemDiff",
|
|
2595
|
+
"process.cpuPrevValidate",
|
|
2596
|
+
],
|
|
2597
|
+
note: "the plain-sample and previous-value diff forms are one surface",
|
|
2598
|
+
},
|
|
2599
|
+
{
|
|
2600
|
+
id: "node-builtin.process.threadCpuUsage",
|
|
2601
|
+
kind: "node-builtin",
|
|
2602
|
+
name: "process.threadCpuUsage",
|
|
2603
|
+
fns: [
|
|
2604
|
+
"process.threadCpuUser",
|
|
2605
|
+
"process.threadCpuSystem",
|
|
2606
|
+
"process.threadCpuUserDiff",
|
|
2607
|
+
"process.threadCpuSystemDiff",
|
|
2608
|
+
],
|
|
2609
|
+
note: "the plain-sample and previous-value diff forms are one surface",
|
|
2610
|
+
},
|
|
2611
|
+
{
|
|
2612
|
+
id: "node-builtin.process.isTTY",
|
|
2613
|
+
kind: "node-builtin",
|
|
2614
|
+
name: "process.isTTY",
|
|
2615
|
+
fns: ["process.isTTY"],
|
|
2616
|
+
note: "the isTTY read on process.stdin/stdout/stderr — one surface across the three streams",
|
|
2617
|
+
},
|
|
2618
|
+
{
|
|
2619
|
+
id: "node-builtin.process.columns",
|
|
2620
|
+
kind: "node-builtin",
|
|
2621
|
+
name: "process.columns",
|
|
2622
|
+
fns: ["process.columns"],
|
|
2623
|
+
note: "the columns read on the process stdio streams (terminal geometry)",
|
|
2624
|
+
},
|
|
2625
|
+
{
|
|
2626
|
+
id: "node-builtin.process.rows",
|
|
2627
|
+
kind: "node-builtin",
|
|
2628
|
+
name: "process.rows",
|
|
2629
|
+
fns: ["process.rows"],
|
|
2630
|
+
note: "the rows read on process.stdout/stderr (terminal geometry)",
|
|
2631
|
+
},
|
|
2632
|
+
{
|
|
2633
|
+
id: "node-builtin.process.kill",
|
|
2634
|
+
kind: "node-builtin",
|
|
2635
|
+
name: "process.kill",
|
|
2636
|
+
fns: ["process.kill", "process.killNum"],
|
|
2637
|
+
note: "the signal-name and signal-number forms are one surface",
|
|
2638
|
+
},
|
|
2639
|
+
{
|
|
2640
|
+
id: "node-builtin.process.umask",
|
|
2641
|
+
kind: "node-builtin",
|
|
2642
|
+
name: "process.umask",
|
|
2643
|
+
fns: ["process.umask"],
|
|
2644
|
+
},
|
|
2645
|
+
{
|
|
2646
|
+
id: "node-builtin.process.exit",
|
|
2647
|
+
kind: "node-builtin",
|
|
2648
|
+
name: "process.exit",
|
|
2649
|
+
fns: ["process.exit", "process.exiting"],
|
|
2650
|
+
note: "process.exit and the process._exiting flag read are one surface",
|
|
2651
|
+
},
|
|
2652
|
+
{
|
|
2653
|
+
id: "node-builtin.process.exitCode",
|
|
2654
|
+
kind: "node-builtin",
|
|
2655
|
+
name: "process.exitCode",
|
|
2656
|
+
fns: ["process.setExitCode", "process.setExitCodeTracked", "process.hasExitCode"],
|
|
2657
|
+
note: "numeric writes in statement position set the implicit exit status; reads answer the assigned code or undefined; process.exit() reads it",
|
|
2658
|
+
},
|
|
2659
|
+
// ── the tls CA store (lowerTlsCaCall / lowerTlsRootCertificates): the
|
|
2660
|
+
// host's trust anchors, read and replaced. Dedicated paths, and
|
|
2661
|
+
// rootCertificates is a VALUE read with no call form at all, so none of
|
|
2662
|
+
// the three can hang off a lowering-table row. Split three ways rather
|
|
2663
|
+
// than folded into one "CA store" surface: a library author who denies
|
|
2664
|
+
// REPLACING the trust anchors is making a different decision from one
|
|
2665
|
+
// who denies reading them, and each Node spelling is the name they will
|
|
2666
|
+
// reach for when writing the fence.
|
|
2667
|
+
{
|
|
2668
|
+
id: "node-builtin.tls.getCACertificates",
|
|
2669
|
+
kind: "node-builtin",
|
|
2670
|
+
name: "tls.getCACertificates",
|
|
2671
|
+
fns: ["tlsca.get"],
|
|
2672
|
+
note: "the per-type cached PEM bundle: 'default' and 'extra' additionally read NODE_EXTRA_CA_CERTS, 'system' the platform store",
|
|
2673
|
+
},
|
|
2674
|
+
{
|
|
2675
|
+
id: "node-builtin.tls.rootCertificates",
|
|
2676
|
+
kind: "node-builtin",
|
|
2677
|
+
name: "tls.rootCertificates",
|
|
2678
|
+
fns: ["tlsca.root"],
|
|
2679
|
+
note: "the value read; answers the same bundled array as getCACertificates('bundled'), but fenced under its own id — the spelling an author writes",
|
|
2680
|
+
},
|
|
2681
|
+
{
|
|
2682
|
+
id: "node-builtin.tls.setDefaultCACertificates",
|
|
2683
|
+
kind: "node-builtin",
|
|
2684
|
+
name: "tls.setDefaultCACertificates",
|
|
2685
|
+
fns: ["tlsca.set"],
|
|
2686
|
+
note: "replaces the default set and the client trust anchors for the rest of the process",
|
|
2687
|
+
},
|
|
2688
|
+
// os.constants is a VALUE read (lowerNamespaceBuiltinProperty and the
|
|
2689
|
+
// named-import path): the platform's null-prototype constants object.
|
|
2690
|
+
{
|
|
2691
|
+
id: "node-builtin.os.constants",
|
|
2692
|
+
kind: "node-builtin",
|
|
2693
|
+
name: "os.constants",
|
|
2694
|
+
fns: ["os.constants"],
|
|
2695
|
+
note: "the platform's dlopen, errno, signals and priority groups; members a platform lacks read as undefined",
|
|
2696
|
+
},
|
|
2697
|
+
// fs.constants as a value, and its members beyond the baked access-mode
|
|
2698
|
+
// bits: the target libc's null-prototype constants object.
|
|
2699
|
+
{
|
|
2700
|
+
id: "node-builtin.fs.constants",
|
|
2701
|
+
kind: "node-builtin",
|
|
2702
|
+
name: "fs.constants",
|
|
2703
|
+
fns: ["fs.constants"],
|
|
2704
|
+
note: "node_constants.cc's fs group under the target libc's macros; members a platform lacks read as undefined",
|
|
2705
|
+
},
|
|
2706
|
+
];
|
|
2707
|
+
}
|
|
2653
2708
|
/** The win32-target overrides of the bare modules' constants: path's
|
|
2654
2709
|
* constants ARE the path/win32 namespace's, and os.EOL is CRLF (Node's
|
|
2655
2710
|
* `isWindows ? '\r\n' : '\n'`). */
|
|
@@ -2657,16 +2712,16 @@ const WIN32_TARGET_CONSTS = {
|
|
|
2657
2712
|
path: BUILTIN_MODULE_CONSTS["path/win32"],
|
|
2658
2713
|
os: { EOL: "\r\n", devNull: "\\\\.\\nul" },
|
|
2659
2714
|
};
|
|
2660
|
-
/**
|
|
2715
|
+
/** builtinModuleFns() with the platform-conditional modules bound per
|
|
2661
2716
|
* TARGET: a win32 triple compiles Node-on-Windows semantics — `path` is
|
|
2662
2717
|
* path.win32 and url's bridge selects the Windows runtime behavior. Fence wording is
|
|
2663
2718
|
* unaffected — callers keep naming the module the source spelled. */
|
|
2664
2719
|
function builtinModuleFnsOf(lowerer, module) {
|
|
2665
2720
|
if (lowerer.targetPlatform === "win32") {
|
|
2666
2721
|
if (module === "path")
|
|
2667
|
-
return
|
|
2722
|
+
return builtinModuleFns()["path/win32"];
|
|
2668
2723
|
}
|
|
2669
|
-
return ownEntry(
|
|
2724
|
+
return ownEntry(builtinModuleFns(), module);
|
|
2670
2725
|
}
|
|
2671
2726
|
/** Own-property lookup — lowerer.ts's own(), duplicated locally because
|
|
2672
2727
|
* lowerer.ts already imports surfaces.ts (a value import back would
|
|
@@ -2856,14 +2911,6 @@ export function builtinModulesArrayLit(loc) {
|
|
|
2856
2911
|
loc,
|
|
2857
2912
|
};
|
|
2858
2913
|
}
|
|
2859
|
-
/** Member-specific hints for RECOGNIZED builtin modules whose member has
|
|
2860
|
-
* no lowering. The default-options one-shot zlib/deflate-raw/gzip codecs
|
|
2861
|
-
* lower for strings and Buffers; the remaining surface points at them. */
|
|
2862
|
-
const ZLIB_HINT = "the deflate/inflate, raw, gzip/gunzip, and unzip sync/callback forms with Node's options, crc32, " +
|
|
2863
|
-
"and the Deflate/Inflate/Gzip/Gunzip/DeflateRaw/InflateRaw/Unzip streams are the lowered zlib surface";
|
|
2864
|
-
/** Brotli has no codec in the static runtime (zlib is the only vendored
|
|
2865
|
-
* compression library). */
|
|
2866
|
-
const BROTLI_HINT = "Brotli needs a Brotli codec, which the static runtime does not vendor — " + ZLIB_HINT;
|
|
2867
2914
|
const ASSERT_MODULE_HINTS = {
|
|
2868
2915
|
ifError: "test explicitly instead: assert.strictEqual(err, null) / " +
|
|
2869
2916
|
"assert.strictEqual(err, undefined)",
|
|
@@ -2910,16 +2957,6 @@ export const BUILTIN_MODULE_FENCE_HINTS = {
|
|
|
2910
2957
|
setFips: "a compiled binary has no FIPS provider to enable, and Node itself throws on setFips(true) " +
|
|
2911
2958
|
"in a non-FIPS build — getFips() answers 0 here",
|
|
2912
2959
|
},
|
|
2913
|
-
zlib: {
|
|
2914
|
-
brotliCompressSync: BROTLI_HINT,
|
|
2915
|
-
brotliDecompressSync: BROTLI_HINT,
|
|
2916
|
-
brotliCompress: BROTLI_HINT,
|
|
2917
|
-
brotliDecompress: BROTLI_HINT,
|
|
2918
|
-
createBrotliCompress: BROTLI_HINT,
|
|
2919
|
-
createBrotliDecompress: BROTLI_HINT,
|
|
2920
|
-
BrotliCompress: BROTLI_HINT,
|
|
2921
|
-
BrotliDecompress: BROTLI_HINT,
|
|
2922
|
-
},
|
|
2923
2960
|
http2: {
|
|
2924
2961
|
connect: "HTTP/2 client sessions have no lowering — the lowered http2 surface is the SERVER side: " +
|
|
2925
2962
|
"createSecureServer({ allowHTTP1: true, cert, key }), which serves HTTP/1.1 only " +
|