@scriptc/cli-darwin-x64 0.0.0 → 0.2.1
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/dist/LICENSE +202 -0
- package/dist/THIRD_PARTY_NOTICES +4 -0
- package/dist/bin/scriptc +0 -0
- package/dist/bin/scriptc.json +21 -0
- package/dist/lib/declarations/scriptc-node-fallback.d.ts +3857 -0
- package/dist/lib/declarations/scriptc-overrides.d.ts +92 -0
- package/dist/lib/declarations/scriptc.d.ts +98 -0
- package/dist/lib/llvm/LICENSE +1 -0
- package/dist/lib/llvm/SCRIPTC_LICENSE +1 -0
- package/dist/lib/llvm/THIRD_PARTY_NOTICES +1 -0
- package/dist/lib/llvm/bin/scriptc-llvm-codegen +0 -0
- package/dist/lib/llvm/package.json +35 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_array.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_assert.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_async.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_async_dyn.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_bigint.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_bigint_assert.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_bytes_io.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_child.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_closure.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_console.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_console_native.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_copying.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_crypto_async.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_cycle.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_dc.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_dgram.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_dyn_handle.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_dyn_invoke.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_error.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_events.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_events_emitter.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_exception.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_fetch.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_ffi.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_ffi_queue.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_file_handle.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_grapheme.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_http.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_http2.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_inspect.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_json.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_lib.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_loop_epoll.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_loop_kqueue.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_loop_wsapoll.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_map.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_net.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_node_builtin.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_number.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_object.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_path.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_qs.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_readline.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_regex.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_stream.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_string.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_symbol.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_test.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_tls.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_tls_ca.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_union.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_url.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_url_params.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_util.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_watch.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/default/scr_zlib.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_array.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_assert.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_async.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_async_dyn.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_bigint.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_bigint_assert.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_bytes_io.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_child.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_closure.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_console.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_console_native.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_copying.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_crypto_async.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_cycle.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_dc.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_dgram.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_dyn_handle.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_dyn_invoke.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_error.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_events.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_events_emitter.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_exception.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_fetch.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_ffi.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_ffi_queue.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_file_handle.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_grapheme.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_http.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_http2.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_inspect.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_inspect_island.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_island.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_json.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_lib.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_loop_epoll.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_loop_kqueue.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_loop_wsapoll.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_map.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_net.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_net_island.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_node_builtin.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_number.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_object.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_path.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_qs.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_readline.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_regex.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_stream.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_string.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_symbol.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_test.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_tls.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_tls_ca.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_union.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_url.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_url_params.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_util.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_watch.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_web.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_zlib.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic/scr_zlib_island.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/dynamic-text-decoder-legacy/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/dev/runtime/text-decoder-legacy/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_array.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_assert.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_bigint.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_bigint_assert.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_bytes_io.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_closure.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_console.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_console_native.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_copying.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_cycle.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_dyn_handle.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_dyn_invoke.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_error.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_events_emitter.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_exception.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_grapheme.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_inspect.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_json.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_lib.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_library.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_map.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_node_builtin.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_number.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_object.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_path.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_regex.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_string.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_symbol.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_union.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_url.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_url_params.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/default/scr_zlib.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-dev/runtime/text-decoder-legacy/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_array.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_assert.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_bigint.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_bigint_assert.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_bytes_io.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_closure.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_console.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_console_native.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_copying.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_cycle.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_dyn_handle.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_dyn_invoke.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_error.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_events_emitter.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_exception.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_grapheme.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_inspect.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_json.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_lib.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_library.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_map.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_node_builtin.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_number.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_object.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_path.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_regex.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_string.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_symbol.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_union.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_url.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_url_params.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/default/scr_zlib.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-release/runtime/text-decoder-legacy/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_array.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_assert.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_bigint.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_bigint_assert.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_bytes_io.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_closure.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_console.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_console_native.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_copying.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_cycle.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_dyn_handle.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_dyn_invoke.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_error.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_events_emitter.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_exception.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_grapheme.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_inspect.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_json.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_lib.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_library.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_map.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_node_builtin.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_number.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_object.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_path.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_regex.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_string.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_symbol.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_union.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_url.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_url_params.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/default/scr_zlib.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-dev/runtime/text-decoder-legacy/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_array.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_assert.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_bigint.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_bigint_assert.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_bytes_io.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_closure.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_console.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_console_native.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_copying.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_cycle.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_dyn_handle.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_dyn_invoke.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_error.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_events_emitter.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_exception.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_grapheme.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_inspect.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_json.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_lib.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_library.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_map.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_node_builtin.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_number.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_object.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_path.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_regex.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_string.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_symbol.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_union.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_url.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_url_params.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/default/scr_zlib.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/library-thread-release/runtime/text-decoder-legacy/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/licenses/mbedtls.txt +553 -0
- package/dist/lib/runtime-darwin-x64/artifacts/licenses/quickjs-ng.txt +24 -0
- package/dist/lib/runtime-darwin-x64/artifacts/licenses/ryu.txt +23 -0
- package/dist/lib/runtime-darwin-x64/artifacts/licenses/scriptc-runtime.txt +202 -0
- package/dist/lib/runtime-darwin-x64/artifacts/licenses/unicode.txt +39 -0
- package/dist/lib/runtime-darwin-x64/artifacts/licenses/v8-number-radix.txt +61 -0
- package/dist/lib/runtime-darwin-x64/artifacts/licenses/zlib.txt +22 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_array.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_assert.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_async.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_async_dyn.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_bigint.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_bigint_assert.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_bytes_io.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_child.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_closure.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_console.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_console_native.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_copying.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_crypto_async.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_cycle.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_dc.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_dgram.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_dyn_handle.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_dyn_invoke.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_error.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_events.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_events_emitter.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_exception.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_fetch.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_ffi.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_ffi_queue.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_file_handle.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_grapheme.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_http.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_http2.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_inspect.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_json.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_lib.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_loop_epoll.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_loop_kqueue.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_loop_wsapoll.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_map.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_net.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_node_builtin.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_number.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_object.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_path.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_qs.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_readline.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_regex.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_stream.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_string.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_symbol.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_test.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_tls.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_tls_ca.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_union.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_url.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_url_params.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_util.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_watch.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/default/scr_zlib.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_array.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_assert.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_async.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_async_dyn.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_bigint.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_bigint_assert.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_bytes_io.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_child.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_closure.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_console.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_console_native.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_copying.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_crypto_async.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_cycle.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_dc.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_dgram.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_dyn_handle.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_dyn_invoke.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_error.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_events.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_events_emitter.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_exception.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_fetch.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_ffi.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_ffi_queue.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_file_handle.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_grapheme.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_http.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_http2.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_inspect.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_inspect_island.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_island.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_json.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_lib.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_loop_epoll.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_loop_kqueue.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_loop_wsapoll.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_map.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_net.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_net_island.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_node_builtin.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_number.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_object.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_path.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_qs.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_readline.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_regex.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_stream.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_string.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_symbol.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_test.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_tls.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_tls_ca.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_union.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_url.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_url_params.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_util.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_watch.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_web.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_zlib.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic/scr_zlib_island.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/dynamic-text-decoder-legacy/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/release/runtime/text-decoder-legacy/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/vendor/libregexp/libscriptc-libregexp.a +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/vendor/mbedtls/libscriptc-mbedtls.a +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/vendor/quickjs/libscriptc-quickjs.a +0 -0
- package/dist/lib/runtime-darwin-x64/artifacts/vendor/zlib/libscriptc-zlib.a +0 -0
- package/dist/lib/runtime-darwin-x64/package.json +24 -0
- package/dist/lib/runtime-darwin-x64/runtime-pack.json +5762 -0
- package/dist/lib/runtime-sources/LICENSE +202 -0
- package/dist/lib/runtime-sources/package.json +22 -0
- package/dist/lib/runtime-sources/src/scr_array.c +1460 -0
- package/dist/lib/runtime-sources/src/scr_assert.c +1538 -0
- package/dist/lib/runtime-sources/src/scr_async.c +3945 -0
- package/dist/lib/runtime-sources/src/scr_async.test.c +134 -0
- package/dist/lib/runtime-sources/src/scr_async.test.ts +34 -0
- package/dist/lib/runtime-sources/src/scr_async_dyn.c +877 -0
- package/dist/lib/runtime-sources/src/scr_bigint.c +898 -0
- package/dist/lib/runtime-sources/src/scr_bigint_assert.c +22 -0
- package/dist/lib/runtime-sources/src/scr_bytes.c +2682 -0
- package/dist/lib/runtime-sources/src/scr_bytes_io.c +1324 -0
- package/dist/lib/runtime-sources/src/scr_child.c +6335 -0
- package/dist/lib/runtime-sources/src/scr_closure.c +213 -0
- package/dist/lib/runtime-sources/src/scr_console.c +259 -0
- package/dist/lib/runtime-sources/src/scr_console_native.c +95 -0
- package/dist/lib/runtime-sources/src/scr_copying.c +146 -0
- package/dist/lib/runtime-sources/src/scr_crypto_async.c +24 -0
- package/dist/lib/runtime-sources/src/scr_cycle.c +565 -0
- package/dist/lib/runtime-sources/src/scr_dc.c +814 -0
- package/dist/lib/runtime-sources/src/scr_dgram.c +1182 -0
- package/dist/lib/runtime-sources/src/scr_dyn_handle.c +96 -0
- package/dist/lib/runtime-sources/src/scr_dyn_invoke.c +1759 -0
- package/dist/lib/runtime-sources/src/scr_error.c +419 -0
- package/dist/lib/runtime-sources/src/scr_events.c +1222 -0
- package/dist/lib/runtime-sources/src/scr_events_emitter.c +842 -0
- package/dist/lib/runtime-sources/src/scr_exception.c +484 -0
- package/dist/lib/runtime-sources/src/scr_fetch.c +7479 -0
- package/dist/lib/runtime-sources/src/scr_fetch_curl.c +666 -0
- package/dist/lib/runtime-sources/src/scr_ffi.c +143 -0
- package/dist/lib/runtime-sources/src/scr_ffi_queue.c +379 -0
- package/dist/lib/runtime-sources/src/scr_file_handle.c +562 -0
- package/dist/lib/runtime-sources/src/scr_grapheme.c +203 -0
- package/dist/lib/runtime-sources/src/scr_grapheme_data.h +842 -0
- package/dist/lib/runtime-sources/src/scr_http.c +5811 -0
- package/dist/lib/runtime-sources/src/scr_http2.c +3243 -0
- package/dist/lib/runtime-sources/src/scr_inspect.c +923 -0
- package/dist/lib/runtime-sources/src/scr_inspect_island.c +51 -0
- package/dist/lib/runtime-sources/src/scr_island.c +10012 -0
- package/dist/lib/runtime-sources/src/scr_island_manifest.h +153 -0
- package/dist/lib/runtime-sources/src/scr_json.c +8986 -0
- package/dist/lib/runtime-sources/src/scr_json.test.c +182 -0
- package/dist/lib/runtime-sources/src/scr_json.test.ts +33 -0
- package/dist/lib/runtime-sources/src/scr_lib.c +6304 -0
- package/dist/lib/runtime-sources/src/scr_library.c +444 -0
- package/dist/lib/runtime-sources/src/scr_loop_epoll.c +241 -0
- package/dist/lib/runtime-sources/src/scr_loop_kqueue.c +121 -0
- package/dist/lib/runtime-sources/src/scr_loop_wsapoll.c +208 -0
- package/dist/lib/runtime-sources/src/scr_map.c +752 -0
- package/dist/lib/runtime-sources/src/scr_musl.c +438 -0
- package/dist/lib/runtime-sources/src/scr_net.c +3708 -0
- package/dist/lib/runtime-sources/src/scr_net_island.c +458 -0
- package/dist/lib/runtime-sources/src/scr_node_builtin.c +291 -0
- package/dist/lib/runtime-sources/src/scr_number.c +192 -0
- package/dist/lib/runtime-sources/src/scr_object.c +91 -0
- package/dist/lib/runtime-sources/src/scr_path.c +1281 -0
- package/dist/lib/runtime-sources/src/scr_platform.h +119 -0
- package/dist/lib/runtime-sources/src/scr_qs.c +496 -0
- package/dist/lib/runtime-sources/src/scr_readline.c +288 -0
- package/dist/lib/runtime-sources/src/scr_regex.c +1313 -0
- package/dist/lib/runtime-sources/src/scr_runtime.h +7364 -0
- package/dist/lib/runtime-sources/src/scr_stream.c +3346 -0
- package/dist/lib/runtime-sources/src/scr_string.c +1864 -0
- package/dist/lib/runtime-sources/src/scr_symbol.c +239 -0
- package/dist/lib/runtime-sources/src/scr_test.c +662 -0
- package/dist/lib/runtime-sources/src/scr_text_decoder_data.h +7389 -0
- package/dist/lib/runtime-sources/src/scr_text_decoder_labels.h +225 -0
- package/dist/lib/runtime-sources/src/scr_tls.c +1806 -0
- package/dist/lib/runtime-sources/src/scr_tls_ca.c +433 -0
- package/dist/lib/runtime-sources/src/scr_union.c +105 -0
- package/dist/lib/runtime-sources/src/scr_url.c +1400 -0
- package/dist/lib/runtime-sources/src/scr_url_internal.h +29 -0
- package/dist/lib/runtime-sources/src/scr_url_params.c +526 -0
- package/dist/lib/runtime-sources/src/scr_util.c +984 -0
- package/dist/lib/runtime-sources/src/scr_watch.c +568 -0
- package/dist/lib/runtime-sources/src/scr_web.c +1854 -0
- package/dist/lib/runtime-sources/src/scr_win.c +231 -0
- package/dist/lib/runtime-sources/src/scr_win_stats.h +23 -0
- package/dist/lib/runtime-sources/src/scr_zlib.c +358 -0
- package/dist/lib/runtime-sources/src/scr_zlib_island.c +15 -0
- package/dist/lib/runtime-sources/vendor/README.md +60 -0
- package/dist/lib/runtime-sources/vendor/curl/COPYRIGHT +534 -0
- package/dist/lib/runtime-sources/vendor/curl/include/curl/curl.h +3214 -0
- package/dist/lib/runtime-sources/vendor/curl/include/curl/curlver.h +79 -0
- package/dist/lib/runtime-sources/vendor/curl/include/curl/easy.h +125 -0
- package/dist/lib/runtime-sources/vendor/curl/include/curl/header.h +74 -0
- package/dist/lib/runtime-sources/vendor/curl/include/curl/mprintf.h +52 -0
- package/dist/lib/runtime-sources/vendor/curl/include/curl/multi.h +460 -0
- package/dist/lib/runtime-sources/vendor/curl/include/curl/options.h +70 -0
- package/dist/lib/runtime-sources/vendor/curl/include/curl/stdcheaders.h +35 -0
- package/dist/lib/runtime-sources/vendor/curl/include/curl/system.h +508 -0
- package/dist/lib/runtime-sources/vendor/curl/include/curl/typecheck-gcc.h +716 -0
- package/dist/lib/runtime-sources/vendor/curl/include/curl/urlapi.h +149 -0
- package/dist/lib/runtime-sources/vendor/curl/include/curl/websockets.h +84 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/LICENSE +553 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/CMakeLists.txt +22 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/aes.h +631 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/aria.h +343 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/asn1.h +642 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/asn1write.h +390 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/base64.h +82 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/bignum.h +1088 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/block_cipher.h +76 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/build_info.h +194 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/camellia.h +305 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/ccm.h +526 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/chacha20.h +209 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/chachapoly.h +351 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/check_config.h +1149 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/cipher.h +1250 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/cmac.h +246 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/compat-2.x.h +46 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/config_adjust_legacy_crypto.h +578 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/config_adjust_legacy_from_psa.h +873 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/config_adjust_psa_from_legacy.h +359 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/config_adjust_psa_superset_legacy.h +145 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/config_adjust_ssl.h +91 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/config_adjust_x509.h +35 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/config_psa.h +61 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/constant_time.h +36 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/ctr_drbg.h +596 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/debug.h +156 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/des.h +385 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/dhm.h +972 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/ecdh.h +455 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/ecdsa.h +674 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/ecjpake.h +298 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/ecp.h +1517 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/entropy.h +274 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/error.h +201 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/gcm.h +387 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/hkdf.h +124 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/hmac_drbg.h +434 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/lms.h +440 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/mbedtls_config.h +4446 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/md.h +526 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/md5.h +190 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/memory_buffer_alloc.h +142 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/net_sockets.h +299 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/nist_kw.h +166 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/oid.h +727 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/pem.h +160 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/pk.h +1303 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/pkcs12.h +186 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/pkcs5.h +198 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/pkcs7.h +252 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/platform.h +516 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/platform_time.h +79 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/platform_util.h +247 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/poly1305.h +168 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/private_access.h +20 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/psa_util.h +207 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/ripemd160.h +136 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/rsa.h +1170 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/sha1.h +219 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/sha256.h +200 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/sha3.h +172 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/sha512.h +208 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/ssl.h +5887 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/ssl_cache.h +187 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/ssl_ciphersuites.h +482 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/ssl_cookie.h +106 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/ssl_ticket.h +199 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/threading.h +167 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/timing.h +94 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/version.h +78 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/x509.h +500 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/x509_crl.h +184 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/x509_crt.h +1208 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/mbedtls/x509_csr.h +382 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/build_info.h +20 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto.h +4998 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_adjust_auto_enabled.h +31 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_adjust_config_dependencies.h +51 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_adjust_config_key_pair_types.h +101 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_adjust_config_synonyms.h +49 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_builtin_composites.h +214 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_builtin_key_derivation.h +118 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_builtin_primitives.h +114 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_compat.h +230 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_config.h +145 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_driver_common.h +44 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_driver_contexts_composites.h +151 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_driver_contexts_key_derivation.h +52 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_driver_contexts_primitives.h +105 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_extra.h +2145 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_legacy.h +88 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_platform.h +102 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_se_driver.h +1383 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_sizes.h +1319 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_struct.h +527 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_types.h +508 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/include/psa/crypto_values.h +2782 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/aes.c +2294 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/aesce.c +624 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/aesce.h +136 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/aesni.c +846 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/aesni.h +162 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/alignment.h +704 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/aria.c +969 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/asn1parse.c +468 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/asn1write.c +440 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/base64.c +322 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/base64_internal.h +45 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/bignum.c +2583 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/bignum_core.c +1240 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/bignum_core.h +872 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/bignum_core_invasive.h +38 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/bignum_internal.h +122 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/bignum_mod.c +394 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/bignum_mod.h +452 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/bignum_mod_raw.c +276 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/bignum_mod_raw.h +416 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/bignum_mod_raw_invasive.h +34 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/block_cipher.c +207 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/block_cipher_internal.h +99 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/bn_mul.h +1094 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/camellia.c +1058 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ccm.c +777 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/chacha20.c +563 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/chacha20_internal.h +23 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/chachapoly.c +487 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/check_crypto_config.h +136 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/cipher.c +1712 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/cipher_invasive.h +28 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/cipher_wrap.c +2482 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/cipher_wrap.h +178 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/cmac.c +1067 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/common.h +487 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/constant_time.c +247 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/constant_time_impl.h +541 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/constant_time_internal.h +579 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ctr.h +35 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ctr_drbg.c +1016 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/debug.c +475 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/debug_internal.h +185 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/des.c +1042 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/dhm.c +700 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ecdh.c +696 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ecdsa.c +858 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ecjpake.c +1216 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ecp.c +3674 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ecp_curves.c +6125 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ecp_curves_new.c +9 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ecp_internal_alt.h +287 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ecp_invasive.h +305 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/entropy.c +680 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/entropy_poll.c +233 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/entropy_poll.h +64 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/error.c +878 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/gcm.c +1330 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/hkdf.c +161 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/hmac_drbg.c +633 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/lmots.c +789 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/lmots.h +288 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/lms.c +778 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/md.c +1108 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/md5.c +426 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/md_psa.h +26 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/md_wrap.h +46 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/memory_buffer_alloc.c +751 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/mps_common.h +181 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/mps_error.h +89 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/mps_reader.c +538 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/mps_reader.h +366 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/mps_trace.c +112 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/mps_trace.h +154 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/net_sockets.c +694 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/nist_kw.c +729 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/oid.c +1166 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/padlock.c +157 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/padlock.h +111 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/pem.c +554 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/pk.c +1602 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/pk_ecc.c +261 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/pk_internal.h +241 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/pk_wrap.c +1618 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/pk_wrap.h +138 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/pkcs12.c +437 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/pkcs5.c +500 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/pkcs7.c +787 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/pkparse.c +1392 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/pkwrite.c +631 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/pkwrite.h +121 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/platform.c +402 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/platform_util.c +258 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/poly1305.c +492 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto.c +9532 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_aead.c +646 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_aead.h +499 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_cipher.c +747 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_cipher.h +316 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_client.c +22 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_core.h +983 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_core_common.h +52 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_driver_wrappers.h +2896 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_driver_wrappers_no_static.c +256 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_driver_wrappers_no_static.h +31 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_ecp.c +594 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_ecp.h +267 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_ffdh.c +361 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_ffdh.h +131 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_hash.c +470 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_hash.h +211 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_invasive.h +92 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_its.h +131 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_mac.c +505 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_mac.h +264 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_pake.c +571 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_pake.h +159 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_random.c +181 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_random.h +72 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_random_impl.h +200 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_rsa.c +714 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_rsa.h +321 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_se.c +373 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_se.h +192 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_slot_management.c +1137 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_slot_management.h +344 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_storage.c +481 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_crypto_storage.h +392 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_its_file.c +254 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_util.c +614 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/psa_util_internal.h +100 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ripemd160.c +490 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/rsa.c +3121 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/rsa_alt_helpers.c +455 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/rsa_alt_helpers.h +209 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/rsa_internal.h +188 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/sha1.c +480 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/sha256.c +983 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/sha3.c +721 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/sha512.c +1115 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_cache.c +410 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_ciphersuites.c +2050 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_ciphersuites_internal.h +154 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_client.c +1023 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_client.h +22 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_cookie.c +384 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_debug_helpers.h +85 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_debug_helpers_generated.c +251 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_misc.h +3198 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_msg.c +6619 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_ticket.c +556 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_tls.c +10234 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_tls12_client.c +3688 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_tls12_server.c +4311 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_tls13_client.c +3208 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_tls13_generic.c +1793 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_tls13_invasive.h +23 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_tls13_keys.c +1918 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_tls13_keys.h +668 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/ssl_tls13_server.c +3624 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/threading.c +193 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/threading_internal.h +28 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/timing.c +152 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/version.c +32 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/version_features.c +856 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/x509.c +1776 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/x509_create.c +570 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/x509_crl.c +708 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/x509_crt.c +3311 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/x509_csr.c +648 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/x509_internal.h +101 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/x509write.c +174 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/x509write_crt.c +688 -0
- package/dist/lib/runtime-sources/vendor/mbedtls/library/x509write_csr.c +336 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/CMakeLists.txt +566 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/LICENSE +24 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/README.md +24 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/api-test.c +1195 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/builtin-array-fromasync.h +119 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/builtin-iterator-zip-keyed.h +332 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/builtin-iterator-zip.h +337 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/cutils.h +1998 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/dtoa.c +1619 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/dtoa.h +87 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/gen/function_source.c +81 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/gen/hello.c +53 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/gen/hello_module.c +106 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/gen/repl.c +3036 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/gen/standalone.c +323 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/gen/test_fib.c +81 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/libregexp-opcode.h +73 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/libregexp.c +3474 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/libregexp.h +101 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/libunicode-table.h +5173 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/libunicode.c +2069 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/libunicode.h +172 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/list.h +107 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/lre-test.c +52 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/qjs.c +762 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/qjsc.c +673 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/quickjs-atom.h +280 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/quickjs-c-atomics.h +54 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/quickjs-libc.c +5037 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/quickjs-libc.h +87 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/quickjs-opcode.h +377 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/quickjs.c +64041 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/quickjs.h +1447 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/run-test262.c +2374 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/unicode_gen.c +3121 -0
- package/dist/lib/runtime-sources/vendor/quickjs-ng/unicode_gen_def.h +310 -0
- package/dist/lib/runtime-sources/vendor/ryu/LICENSE-Boost +23 -0
- package/dist/lib/runtime-sources/vendor/ryu/common.h +114 -0
- package/dist/lib/runtime-sources/vendor/ryu/d2s.c +509 -0
- package/dist/lib/runtime-sources/vendor/ryu/d2s_full_table.h +367 -0
- package/dist/lib/runtime-sources/vendor/ryu/d2s_intrinsics.h +357 -0
- package/dist/lib/runtime-sources/vendor/ryu/d2s_small_table.h +186 -0
- package/dist/lib/runtime-sources/vendor/ryu/digit_table.h +35 -0
- package/dist/lib/runtime-sources/vendor/ryu/ryu.h +46 -0
- package/dist/lib/runtime-sources/vendor/unicode/LICENSE +39 -0
- package/dist/lib/runtime-sources/vendor/v8-number-radix/LICENSE +61 -0
- package/dist/lib/runtime-sources/vendor/zlib/LICENSE +22 -0
- package/dist/lib/runtime-sources/vendor/zlib/adler32.c +164 -0
- package/dist/lib/runtime-sources/vendor/zlib/compress.c +75 -0
- package/dist/lib/runtime-sources/vendor/zlib/crc32.c +1049 -0
- package/dist/lib/runtime-sources/vendor/zlib/crc32.h +9446 -0
- package/dist/lib/runtime-sources/vendor/zlib/deflate.c +2139 -0
- package/dist/lib/runtime-sources/vendor/zlib/deflate.h +377 -0
- package/dist/lib/runtime-sources/vendor/zlib/gzclose.c +23 -0
- package/dist/lib/runtime-sources/vendor/zlib/gzguts.h +214 -0
- package/dist/lib/runtime-sources/vendor/zlib/gzlib.c +582 -0
- package/dist/lib/runtime-sources/vendor/zlib/gzread.c +602 -0
- package/dist/lib/runtime-sources/vendor/zlib/gzwrite.c +631 -0
- package/dist/lib/runtime-sources/vendor/zlib/infback.c +628 -0
- package/dist/lib/runtime-sources/vendor/zlib/inffast.c +320 -0
- package/dist/lib/runtime-sources/vendor/zlib/inffast.h +11 -0
- package/dist/lib/runtime-sources/vendor/zlib/inffixed.h +94 -0
- package/dist/lib/runtime-sources/vendor/zlib/inflate.c +1526 -0
- package/dist/lib/runtime-sources/vendor/zlib/inflate.h +126 -0
- package/dist/lib/runtime-sources/vendor/zlib/inftrees.c +299 -0
- package/dist/lib/runtime-sources/vendor/zlib/inftrees.h +62 -0
- package/dist/lib/runtime-sources/vendor/zlib/trees.c +1117 -0
- package/dist/lib/runtime-sources/vendor/zlib/trees.h +128 -0
- package/dist/lib/runtime-sources/vendor/zlib/uncompr.c +85 -0
- package/dist/lib/runtime-sources/vendor/zlib/zconf.h +543 -0
- package/dist/lib/runtime-sources/vendor/zlib/zlib.h +1938 -0
- package/dist/lib/runtime-sources/vendor/zlib/zutil.c +299 -0
- package/dist/lib/runtime-sources/vendor/zlib/zutil.h +254 -0
- package/dist/lib/scriptc-comptime +0 -0
- package/dist/lib/typescript/LICENSE +55 -0
- package/dist/lib/typescript/NOTICE.txt +436 -0
- package/dist/lib/typescript/lib/lib.d.ts +20 -0
- package/dist/lib/typescript/lib/lib.decorators.d.ts +382 -0
- package/dist/lib/typescript/lib/lib.decorators.legacy.d.ts +20 -0
- package/dist/lib/typescript/lib/lib.dom.asynciterable.d.ts +18 -0
- package/dist/lib/typescript/lib/lib.dom.d.ts +45125 -0
- package/dist/lib/typescript/lib/lib.dom.iterable.d.ts +18 -0
- package/dist/lib/typescript/lib/lib.es2015.collection.d.ts +159 -0
- package/dist/lib/typescript/lib/lib.es2015.core.d.ts +595 -0
- package/dist/lib/typescript/lib/lib.es2015.d.ts +26 -0
- package/dist/lib/typescript/lib/lib.es2015.generator.d.ts +75 -0
- package/dist/lib/typescript/lib/lib.es2015.iterable.d.ts +603 -0
- package/dist/lib/typescript/lib/lib.es2015.promise.d.ts +79 -0
- package/dist/lib/typescript/lib/lib.es2015.proxy.d.ts +126 -0
- package/dist/lib/typescript/lib/lib.es2015.reflect.d.ts +142 -0
- package/dist/lib/typescript/lib/lib.es2015.symbol.d.ts +44 -0
- package/dist/lib/typescript/lib/lib.es2015.symbol.wellknown.d.ts +324 -0
- package/dist/lib/typescript/lib/lib.es2016.array.include.d.ts +114 -0
- package/dist/lib/typescript/lib/lib.es2016.d.ts +19 -0
- package/dist/lib/typescript/lib/lib.es2016.full.d.ts +21 -0
- package/dist/lib/typescript/lib/lib.es2016.intl.d.ts +29 -0
- package/dist/lib/typescript/lib/lib.es2017.arraybuffer.d.ts +19 -0
- package/dist/lib/typescript/lib/lib.es2017.d.ts +24 -0
- package/dist/lib/typescript/lib/lib.es2017.date.d.ts +29 -0
- package/dist/lib/typescript/lib/lib.es2017.full.d.ts +21 -0
- package/dist/lib/typescript/lib/lib.es2017.intl.d.ts +42 -0
- package/dist/lib/typescript/lib/lib.es2017.object.d.ts +47 -0
- package/dist/lib/typescript/lib/lib.es2017.sharedmemory.d.ts +133 -0
- package/dist/lib/typescript/lib/lib.es2017.string.d.ts +47 -0
- package/dist/lib/typescript/lib/lib.es2017.typedarrays.d.ts +51 -0
- package/dist/lib/typescript/lib/lib.es2018.asyncgenerator.d.ts +75 -0
- package/dist/lib/typescript/lib/lib.es2018.asynciterable.d.ts +51 -0
- package/dist/lib/typescript/lib/lib.es2018.d.ts +22 -0
- package/dist/lib/typescript/lib/lib.es2018.full.d.ts +22 -0
- package/dist/lib/typescript/lib/lib.es2018.intl.d.ts +81 -0
- package/dist/lib/typescript/lib/lib.es2018.promise.d.ts +28 -0
- package/dist/lib/typescript/lib/lib.es2018.regexp.d.ts +35 -0
- package/dist/lib/typescript/lib/lib.es2019.array.d.ts +77 -0
- package/dist/lib/typescript/lib/lib.es2019.d.ts +22 -0
- package/dist/lib/typescript/lib/lib.es2019.full.d.ts +22 -0
- package/dist/lib/typescript/lib/lib.es2019.intl.d.ts +21 -0
- package/dist/lib/typescript/lib/lib.es2019.object.d.ts +31 -0
- package/dist/lib/typescript/lib/lib.es2019.string.d.ts +35 -0
- package/dist/lib/typescript/lib/lib.es2019.symbol.d.ts +22 -0
- package/dist/lib/typescript/lib/lib.es2020.bigint.d.ts +763 -0
- package/dist/lib/typescript/lib/lib.es2020.d.ts +25 -0
- package/dist/lib/typescript/lib/lib.es2020.date.d.ts +40 -0
- package/dist/lib/typescript/lib/lib.es2020.full.d.ts +22 -0
- package/dist/lib/typescript/lib/lib.es2020.intl.d.ts +472 -0
- package/dist/lib/typescript/lib/lib.es2020.number.d.ts +26 -0
- package/dist/lib/typescript/lib/lib.es2020.promise.d.ts +45 -0
- package/dist/lib/typescript/lib/lib.es2020.sharedmemory.d.ts +97 -0
- package/dist/lib/typescript/lib/lib.es2020.string.d.ts +42 -0
- package/dist/lib/typescript/lib/lib.es2020.symbol.wellknown.d.ts +39 -0
- package/dist/lib/typescript/lib/lib.es2021.d.ts +21 -0
- package/dist/lib/typescript/lib/lib.es2021.full.d.ts +22 -0
- package/dist/lib/typescript/lib/lib.es2021.intl.d.ts +164 -0
- package/dist/lib/typescript/lib/lib.es2021.promise.d.ts +46 -0
- package/dist/lib/typescript/lib/lib.es2021.string.d.ts +31 -0
- package/dist/lib/typescript/lib/lib.es2021.weakref.d.ts +76 -0
- package/dist/lib/typescript/lib/lib.es2022.array.d.ts +119 -0
- package/dist/lib/typescript/lib/lib.es2022.d.ts +23 -0
- package/dist/lib/typescript/lib/lib.es2022.error.d.ts +73 -0
- package/dist/lib/typescript/lib/lib.es2022.full.d.ts +22 -0
- package/dist/lib/typescript/lib/lib.es2022.intl.d.ts +143 -0
- package/dist/lib/typescript/lib/lib.es2022.object.d.ts +24 -0
- package/dist/lib/typescript/lib/lib.es2022.regexp.d.ts +37 -0
- package/dist/lib/typescript/lib/lib.es2022.string.d.ts +23 -0
- package/dist/lib/typescript/lib/lib.es2023.array.d.ts +922 -0
- package/dist/lib/typescript/lib/lib.es2023.collection.d.ts +19 -0
- package/dist/lib/typescript/lib/lib.es2023.d.ts +20 -0
- package/dist/lib/typescript/lib/lib.es2023.full.d.ts +22 -0
- package/dist/lib/typescript/lib/lib.es2023.intl.d.ts +62 -0
- package/dist/lib/typescript/lib/lib.es2024.arraybuffer.d.ts +63 -0
- package/dist/lib/typescript/lib/lib.es2024.collection.d.ts +27 -0
- package/dist/lib/typescript/lib/lib.es2024.d.ts +24 -0
- package/dist/lib/typescript/lib/lib.es2024.full.d.ts +22 -0
- package/dist/lib/typescript/lib/lib.es2024.object.d.ts +27 -0
- package/dist/lib/typescript/lib/lib.es2024.promise.d.ts +33 -0
- package/dist/lib/typescript/lib/lib.es2024.regexp.d.ts +23 -0
- package/dist/lib/typescript/lib/lib.es2024.sharedmemory.d.ts +66 -0
- package/dist/lib/typescript/lib/lib.es2024.string.d.ts +27 -0
- package/dist/lib/typescript/lib/lib.es2025.collection.d.ts +94 -0
- package/dist/lib/typescript/lib/lib.es2025.d.ts +23 -0
- package/dist/lib/typescript/lib/lib.es2025.float16.d.ts +443 -0
- package/dist/lib/typescript/lib/lib.es2025.full.d.ts +22 -0
- package/dist/lib/typescript/lib/lib.es2025.intl.d.ts +200 -0
- package/dist/lib/typescript/lib/lib.es2025.iterator.d.ts +146 -0
- package/dist/lib/typescript/lib/lib.es2025.promise.d.ts +32 -0
- package/dist/lib/typescript/lib/lib.es2025.regexp.d.ts +30 -0
- package/dist/lib/typescript/lib/lib.es5.d.ts +4599 -0
- package/dist/lib/typescript/lib/lib.es6.d.ts +21 -0
- package/dist/lib/typescript/lib/lib.esnext.array.d.ts +33 -0
- package/dist/lib/typescript/lib/lib.esnext.collection.d.ts +47 -0
- package/dist/lib/typescript/lib/lib.esnext.d.ts +27 -0
- package/dist/lib/typescript/lib/lib.esnext.date.d.ts +21 -0
- package/dist/lib/typescript/lib/lib.esnext.decorators.d.ts +26 -0
- package/dist/lib/typescript/lib/lib.esnext.disposable.d.ts +191 -0
- package/dist/lib/typescript/lib/lib.esnext.error.d.ts +22 -0
- package/dist/lib/typescript/lib/lib.esnext.full.d.ts +22 -0
- package/dist/lib/typescript/lib/lib.esnext.intl.d.ts +107 -0
- package/dist/lib/typescript/lib/lib.esnext.sharedmemory.d.ts +23 -0
- package/dist/lib/typescript/lib/lib.esnext.temporal.d.ts +485 -0
- package/dist/lib/typescript/lib/lib.esnext.typedarrays.d.ts +90 -0
- package/dist/lib/typescript/lib/lib.scripthost.d.ts +320 -0
- package/dist/lib/typescript/lib/lib.webworker.asynciterable.d.ts +18 -0
- package/dist/lib/typescript/lib/lib.webworker.d.ts +15606 -0
- package/dist/lib/typescript/lib/lib.webworker.importscripts.d.ts +21 -0
- package/dist/lib/typescript/lib/lib.webworker.iterable.d.ts +18 -0
- package/dist/lib/typescript/lib/tsc +0 -0
- package/dist/lib/typescript/package.json +45 -0
- package/dist/lib/wasi/cli/wasi-paths.js +41 -0
- package/dist/lib/wasi/cli/wasi-runner.js +28 -0
- package/dist/lib/wasi/package.json +1 -0
- package/dist/lib/wasi/wasi-paths.js +25 -0
- package/package.json +22 -6
- package/README.md +0 -3
- package/index.js +0 -2
|
@@ -0,0 +1,923 @@
|
|
|
1
|
+
/* util.inspect — the runtime half of the static rendering. The compiler
|
|
2
|
+
* synthesizes one traversal helper per static type (lower-inspect.ts, the
|
|
3
|
+
* deepStrictEqual precedent); THIS file owns everything the static type
|
|
4
|
+
* cannot know: Node's exact scalar formatting (number -0, the
|
|
5
|
+
* single→double→backtick quoting ladder with C0/C1/DEL/lone-surrogate
|
|
6
|
+
* escapes, the 10000-char string cap and the per-line ` +` continuation
|
|
7
|
+
* form), Buffer's <Buffer aa bb> hex form, and the LAYOUT engine — a
|
|
8
|
+
* frame stack reproducing reduceToSingleString, isBelowBreakLength, and
|
|
9
|
+
* groupArrayElements from Node v24's lib/internal/util/inspect.js for the
|
|
10
|
+
* DEFAULT options (compact: 3, breakLength: 80, maxArrayLength: 100,
|
|
11
|
+
* maxStringLength: 10000; non-default options fence in the frontend).
|
|
12
|
+
*
|
|
13
|
+
* Lengths follow Node exactly: the break-length math counts UTF-16 code
|
|
14
|
+
* units (JS .length); the grid-grouping math counts DISPLAY WIDTH. Node
|
|
15
|
+
* with ICU measures width via icu::getStringWidth over NFC-normalized
|
|
16
|
+
* text; this file ports the non-ICU fallback tables (full-width/
|
|
17
|
+
* zero-width code points, no NFC) — pure-ASCII entries agree exactly,
|
|
18
|
+
* exotic grouped entries may not (SEMANTICS.md divergence).
|
|
19
|
+
*
|
|
20
|
+
* The frame stack is process-global (single-threaded runtime, and the
|
|
21
|
+
* synthesized traversals never call user code — no getters, no custom
|
|
22
|
+
* inspect — so renders never nest re-entrantly mid-frame).
|
|
23
|
+
*
|
|
24
|
+
* Ownership: ScrStr/ScrBytes/ScrDyn/ScrError arguments are BORROWED;
|
|
25
|
+
* ScrStr results return +1. Nothing here throws; OOM aborts. */
|
|
26
|
+
#include "scr_runtime.h"
|
|
27
|
+
|
|
28
|
+
#include <math.h>
|
|
29
|
+
#include <stdio.h>
|
|
30
|
+
#include <stdlib.h>
|
|
31
|
+
#include <string.h>
|
|
32
|
+
|
|
33
|
+
static void insp_oom(void) {
|
|
34
|
+
scr_trap("scriptc: out of memory\n");
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
/* ── a tiny append-only byte buffer ──────────────────────────────────── */
|
|
38
|
+
|
|
39
|
+
typedef struct {
|
|
40
|
+
char *data;
|
|
41
|
+
size_t len;
|
|
42
|
+
size_t cap;
|
|
43
|
+
} InspBuf;
|
|
44
|
+
|
|
45
|
+
static void ib_grow(InspBuf *b, size_t need) {
|
|
46
|
+
if (b->len + need <= b->cap) return;
|
|
47
|
+
size_t cap = b->cap ? b->cap * 2 : 64;
|
|
48
|
+
while (cap < b->len + need) cap *= 2;
|
|
49
|
+
char *data = realloc(b->data, cap);
|
|
50
|
+
if (!data) insp_oom();
|
|
51
|
+
b->data = data;
|
|
52
|
+
b->cap = cap;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
static void ib_bytes(InspBuf *b, const char *s, size_t len) {
|
|
56
|
+
ib_grow(b, len);
|
|
57
|
+
memcpy(b->data + b->len, s, len);
|
|
58
|
+
b->len += len;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
static void ib_cstr(InspBuf *b, const char *s) { ib_bytes(b, s, strlen(s)); }
|
|
62
|
+
static void ib_char(InspBuf *b, char c) { ib_bytes(b, &c, 1); }
|
|
63
|
+
static void ib_str(InspBuf *b, const ScrStr *s) { ib_bytes(b, s->data, s->len); }
|
|
64
|
+
|
|
65
|
+
static void ib_spaces(InspBuf *b, size_t n) {
|
|
66
|
+
ib_grow(b, n);
|
|
67
|
+
memset(b->data + b->len, ' ', n);
|
|
68
|
+
b->len += n;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
static ScrStr *ib_take(InspBuf *b) {
|
|
72
|
+
ScrStr *out = scr_str_new(b->data ? b->data : "", b->len);
|
|
73
|
+
free(b->data);
|
|
74
|
+
return out;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/* ── WTF-8 iteration + JS length/width measures ──────────────────────── */
|
|
78
|
+
|
|
79
|
+
/* Decode the code point at data[i] (WTF-8: lone surrogates ride 3-byte
|
|
80
|
+
* ED A0..BF xx sequences). Malformed bytes decode as themselves — the
|
|
81
|
+
* runtime never produces them, this is belt-and-braces. Advances *i. */
|
|
82
|
+
static uint32_t insp_cp_at(const char *data, size_t len, size_t *i) {
|
|
83
|
+
const unsigned char *p = (const unsigned char *)data;
|
|
84
|
+
unsigned char c = p[*i];
|
|
85
|
+
if (c < 0x80) {
|
|
86
|
+
*i += 1;
|
|
87
|
+
return c;
|
|
88
|
+
}
|
|
89
|
+
if ((c & 0xe0) == 0xc0 && *i + 1 < len) {
|
|
90
|
+
uint32_t cp = ((uint32_t)(c & 0x1f) << 6) | (p[*i + 1] & 0x3f);
|
|
91
|
+
*i += 2;
|
|
92
|
+
return cp;
|
|
93
|
+
}
|
|
94
|
+
if ((c & 0xf0) == 0xe0 && *i + 2 < len) {
|
|
95
|
+
uint32_t cp = ((uint32_t)(c & 0x0f) << 12) | ((uint32_t)(p[*i + 1] & 0x3f) << 6) |
|
|
96
|
+
(p[*i + 2] & 0x3f);
|
|
97
|
+
*i += 3;
|
|
98
|
+
return cp;
|
|
99
|
+
}
|
|
100
|
+
if ((c & 0xf8) == 0xf0 && *i + 3 < len) {
|
|
101
|
+
uint32_t cp = ((uint32_t)(c & 0x07) << 18) | ((uint32_t)(p[*i + 1] & 0x3f) << 12) |
|
|
102
|
+
((uint32_t)(p[*i + 2] & 0x3f) << 6) | (p[*i + 3] & 0x3f);
|
|
103
|
+
*i += 4;
|
|
104
|
+
return cp;
|
|
105
|
+
}
|
|
106
|
+
*i += 1;
|
|
107
|
+
return c;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/* JS .length: UTF-16 code units (astral code points count 2). */
|
|
111
|
+
static size_t insp_utf16_len(const char *data, size_t len) {
|
|
112
|
+
size_t units = 0;
|
|
113
|
+
for (size_t i = 0; i < len;) {
|
|
114
|
+
uint32_t cp = insp_cp_at(data, len, &i);
|
|
115
|
+
units += cp >= 0x10000 ? 2 : 1;
|
|
116
|
+
}
|
|
117
|
+
return units;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* Node's non-ICU isFullWidthCodePoint table (inspect.js). */
|
|
121
|
+
static bool insp_full_width(uint32_t code) {
|
|
122
|
+
return code >= 0x1100 &&
|
|
123
|
+
(code <= 0x115f || code == 0x2329 || code == 0x232a ||
|
|
124
|
+
(code >= 0x2e80 && code <= 0x3247 && code != 0x303f) ||
|
|
125
|
+
(code >= 0x3250 && code <= 0x4dbf) || (code >= 0x4e00 && code <= 0xa4c6) ||
|
|
126
|
+
(code >= 0xa960 && code <= 0xa97c) || (code >= 0xac00 && code <= 0xd7a3) ||
|
|
127
|
+
(code >= 0xf900 && code <= 0xfaff) || (code >= 0xfe10 && code <= 0xfe19) ||
|
|
128
|
+
(code >= 0xfe30 && code <= 0xfe6b) || (code >= 0xff01 && code <= 0xff60) ||
|
|
129
|
+
(code >= 0xffe0 && code <= 0xffe6) || (code >= 0x1b000 && code <= 0x1b001) ||
|
|
130
|
+
(code >= 0x1f200 && code <= 0x1f251) || (code >= 0x1f300 && code <= 0x1f64f) ||
|
|
131
|
+
(code >= 0x20000 && code <= 0x3fffd));
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
/* Node's non-ICU isZeroWidthCodePoint table (inspect.js). */
|
|
135
|
+
static bool insp_zero_width(uint32_t code) {
|
|
136
|
+
return code <= 0x1f || (code >= 0x7f && code <= 0x9f) ||
|
|
137
|
+
(code >= 0x300 && code <= 0x36f) || (code >= 0x200b && code <= 0x200f) ||
|
|
138
|
+
(code >= 0x20d0 && code <= 0x20ff) || (code >= 0xfe00 && code <= 0xfe0f) ||
|
|
139
|
+
(code >= 0xfe20 && code <= 0xfe2f) || (code >= 0xe0100 && code <= 0xe01ef);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/* Display width (grouping math only): Node's non-ICU getStringWidth,
|
|
143
|
+
* without the NFC normalization ICU builds apply (SEMANTICS.md). */
|
|
144
|
+
static size_t insp_width(const char *data, size_t len) {
|
|
145
|
+
size_t width = 0;
|
|
146
|
+
for (size_t i = 0; i < len;) {
|
|
147
|
+
uint32_t cp = insp_cp_at(data, len, &i);
|
|
148
|
+
if (insp_full_width(cp)) width += 2;
|
|
149
|
+
else if (!insp_zero_width(cp)) width += 1;
|
|
150
|
+
}
|
|
151
|
+
return width;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/* ── number rendering ────────────────────────────────────────────────── */
|
|
155
|
+
|
|
156
|
+
/* formatNumber: JS ToString EXCEPT -0 renders as '-0'. */
|
|
157
|
+
ScrStr *scr_insp_f64(double x) {
|
|
158
|
+
if (x == 0.0 && signbit(x)) return scr_str_new("-0", 2);
|
|
159
|
+
char buf[40];
|
|
160
|
+
size_t n = scr_f64_to_str(x, buf);
|
|
161
|
+
return scr_str_new(buf, n);
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
/* ── string quoting (strEscape) ──────────────────────────────────────── */
|
|
165
|
+
|
|
166
|
+
/* The C0 escape table (inspect.js `meta`, entries 0x00-0x1f). */
|
|
167
|
+
static const char *const INSP_C0[32] = {
|
|
168
|
+
"\\x00", "\\x01", "\\x02", "\\x03", "\\x04", "\\x05", "\\x06", "\\x07",
|
|
169
|
+
"\\b", "\\t", "\\n", "\\x0B", "\\f", "\\r", "\\x0E", "\\x0F",
|
|
170
|
+
"\\x10", "\\x11", "\\x12", "\\x13", "\\x14", "\\x15", "\\x16", "\\x17",
|
|
171
|
+
"\\x18", "\\x19", "\\x1A", "\\x1B", "\\x1C", "\\x1D", "\\x1E", "\\x1F",
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
static bool insp_contains_byte(const char *data, size_t len, char c) {
|
|
175
|
+
return memchr(data, c, len) != NULL;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
static bool insp_contains_dollar_brace(const char *data, size_t len) {
|
|
179
|
+
for (size_t i = 0; i + 1 < len; i++) {
|
|
180
|
+
if (data[i] == '$' && data[i + 1] == '{') return true;
|
|
181
|
+
}
|
|
182
|
+
return false;
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
/* Quote selection: single quotes; double when the text has ' but no ";
|
|
186
|
+
* backtick when it has both but no ` and no ${. -1 = ", -2 = `, 39 = '. */
|
|
187
|
+
static int insp_pick_quote(const char *data, size_t len) {
|
|
188
|
+
if (!insp_contains_byte(data, len, '\'')) return 39;
|
|
189
|
+
if (!insp_contains_byte(data, len, '"')) return -1;
|
|
190
|
+
if (!insp_contains_byte(data, len, '`') && !insp_contains_dollar_brace(data, len)) return -2;
|
|
191
|
+
return 39;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
static char insp_quote_char(int quote) { return quote == -1 ? '"' : quote == -2 ? '`' : '\''; }
|
|
195
|
+
|
|
196
|
+
/* strEscape's body between the quotes: escape backslash, C0 (the meta
|
|
197
|
+
* table), DEL + C1 as \xNN (uppercase), lone surrogates as \udNNN
|
|
198
|
+
* (lowercase — Number.prototype.toString(16)), and the single quote only
|
|
199
|
+
* when quoting with '. */
|
|
200
|
+
static void insp_escape_into(InspBuf *b, const char *data, size_t len, int quote) {
|
|
201
|
+
for (size_t i = 0; i < len;) {
|
|
202
|
+
size_t start = i;
|
|
203
|
+
uint32_t cp = insp_cp_at(data, len, &i);
|
|
204
|
+
if (cp < 0x20) {
|
|
205
|
+
ib_cstr(b, INSP_C0[cp]);
|
|
206
|
+
} else if (cp == '\'' && quote == 39) {
|
|
207
|
+
ib_cstr(b, "\\'");
|
|
208
|
+
} else if (cp == '\\') {
|
|
209
|
+
ib_cstr(b, "\\\\");
|
|
210
|
+
} else if (cp >= 0x7f && cp <= 0x9f) {
|
|
211
|
+
char esc[8];
|
|
212
|
+
snprintf(esc, sizeof esc, "\\x%02X", cp);
|
|
213
|
+
ib_cstr(b, esc);
|
|
214
|
+
} else if (cp >= 0xd800 && cp <= 0xdfff) {
|
|
215
|
+
char esc[8];
|
|
216
|
+
snprintf(esc, sizeof esc, "\\u%x", cp);
|
|
217
|
+
ib_cstr(b, esc);
|
|
218
|
+
} else {
|
|
219
|
+
ib_bytes(b, data + start, i - start);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
static void insp_quote_into(InspBuf *b, const char *data, size_t len) {
|
|
225
|
+
int quote = insp_pick_quote(data, len);
|
|
226
|
+
ib_char(b, insp_quote_char(quote));
|
|
227
|
+
insp_escape_into(b, data, len, quote);
|
|
228
|
+
ib_char(b, insp_quote_char(quote));
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/* ── the frame stack ─────────────────────────────────────────────────── */
|
|
232
|
+
|
|
233
|
+
typedef struct {
|
|
234
|
+
ScrStr **items;
|
|
235
|
+
size_t len;
|
|
236
|
+
size_t cap;
|
|
237
|
+
bool all_num; /* every entry so far flagged numeric (grouping order) */
|
|
238
|
+
} InspFrame;
|
|
239
|
+
|
|
240
|
+
static SCR_TL InspFrame *g_frames;
|
|
241
|
+
static SCR_TL size_t g_nframes;
|
|
242
|
+
static SCR_TL size_t g_frames_cap;
|
|
243
|
+
static SCR_TL size_t g_indent; /* ctx.indentationLvl */
|
|
244
|
+
static SCR_TL double g_cur_depth; /* ctx.currentDepth (last-entered composite) */
|
|
245
|
+
|
|
246
|
+
static InspFrame *insp_top(void) { return &g_frames[g_nframes - 1]; }
|
|
247
|
+
|
|
248
|
+
static void insp_circ_reset(void); /* circular-reference state, below */
|
|
249
|
+
|
|
250
|
+
/* Begin a non-empty composite: formatRaw's `recurseTimes += 1;
|
|
251
|
+
* ctx.currentDepth = recurseTimes` plus the uniform +2 the children
|
|
252
|
+
* format under. `recurse` is the CHILDREN's recursion depth. */
|
|
253
|
+
void scr_insp_begin(double recurse) {
|
|
254
|
+
if (recurse == 1) insp_circ_reset(); /* a fresh top-level value: Node's per-inspect ctx */
|
|
255
|
+
if (g_nframes == g_frames_cap) {
|
|
256
|
+
g_frames_cap = g_frames_cap ? g_frames_cap * 2 : 8;
|
|
257
|
+
g_frames = realloc(g_frames, g_frames_cap * sizeof(InspFrame));
|
|
258
|
+
if (!g_frames) insp_oom();
|
|
259
|
+
}
|
|
260
|
+
InspFrame *f = &g_frames[g_nframes++];
|
|
261
|
+
f->items = NULL;
|
|
262
|
+
f->len = 0;
|
|
263
|
+
f->cap = 0;
|
|
264
|
+
f->all_num = true;
|
|
265
|
+
g_cur_depth = recurse;
|
|
266
|
+
g_indent += 2;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
/* Append one already-rendered entry (borrowed; retained here). is_num
|
|
270
|
+
* mirrors `typeof value[i] === 'number'` — it decides grid grouping's
|
|
271
|
+
* padStart/padEnd order. */
|
|
272
|
+
void scr_insp_entry(ScrStr *s, bool is_num) {
|
|
273
|
+
InspFrame *f = insp_top();
|
|
274
|
+
if (f->len == f->cap) {
|
|
275
|
+
f->cap = f->cap ? f->cap * 2 : 8;
|
|
276
|
+
f->items = realloc(f->items, f->cap * sizeof(ScrStr *));
|
|
277
|
+
if (!f->items) insp_oom();
|
|
278
|
+
}
|
|
279
|
+
f->items[f->len++] = scr_str_retain(s);
|
|
280
|
+
if (!is_num) f->all_num = false;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/* ── circular references (Node's <ref *N> / [Circular *N]) ────────────
|
|
284
|
+
* Recursive record/class types permit runtime reference cycles, and Node
|
|
285
|
+
* renders them with formatValue's seen/circular machinery: a value
|
|
286
|
+
* already ON the current traversal stack renders as `[Circular *N]` (N
|
|
287
|
+
* assigned at first detection, in discovery order), and every rendering
|
|
288
|
+
* of a so-numbered value gets the `<ref *N> ` prefix at its close. The
|
|
289
|
+
* compiler-emitted helpers over CYCLE-CAPABLE composites drive exactly
|
|
290
|
+
* that protocol: circ_check first (before the empty-literal and depth
|
|
291
|
+
* answers — Node's order: a circular value beyond the depth budget still
|
|
292
|
+
* says Circular), seen_push after begin, ref_wrap around end's result.
|
|
293
|
+
* The circular MAP persists for one whole top-level inspect — begin(1)
|
|
294
|
+
* is the per-value reset (a root composite's first frame). */
|
|
295
|
+
typedef struct {
|
|
296
|
+
const void *ptr;
|
|
297
|
+
int id; /* circular id (0 while only on the stack) */
|
|
298
|
+
} InspSeenEnt;
|
|
299
|
+
|
|
300
|
+
static SCR_TL InspSeenEnt *g_seen;
|
|
301
|
+
static SCR_TL size_t g_nseen;
|
|
302
|
+
static SCR_TL size_t g_seen_cap;
|
|
303
|
+
/* Detection-numbered circular targets (persist across the call). */
|
|
304
|
+
static SCR_TL const void *g_circ[64];
|
|
305
|
+
static SCR_TL int g_ncirc;
|
|
306
|
+
|
|
307
|
+
static void insp_circ_reset(void) {
|
|
308
|
+
g_nseen = 0;
|
|
309
|
+
g_ncirc = 0;
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
static int insp_circ_id(const void *v) {
|
|
313
|
+
for (int i = 0; i < g_ncirc; i++) {
|
|
314
|
+
if (g_circ[i] == v) return i + 1;
|
|
315
|
+
}
|
|
316
|
+
return 0;
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
double scr_insp_circ_check(const void *v) {
|
|
320
|
+
for (size_t i = 0; i < g_nseen; i++) {
|
|
321
|
+
if (g_seen[i].ptr != v) continue;
|
|
322
|
+
int id = insp_circ_id(v);
|
|
323
|
+
if (id == 0 && g_ncirc < (int)(sizeof g_circ / sizeof *g_circ)) {
|
|
324
|
+
g_circ[g_ncirc++] = v;
|
|
325
|
+
id = g_ncirc;
|
|
326
|
+
}
|
|
327
|
+
return (double)id;
|
|
328
|
+
}
|
|
329
|
+
return 0;
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
void scr_insp_seen_push(const void *v) {
|
|
333
|
+
if (g_nseen == g_seen_cap) {
|
|
334
|
+
g_seen_cap = g_seen_cap ? g_seen_cap * 2 : 8;
|
|
335
|
+
g_seen = realloc(g_seen, g_seen_cap * sizeof(InspSeenEnt));
|
|
336
|
+
if (!g_seen) insp_oom();
|
|
337
|
+
}
|
|
338
|
+
g_seen[g_nseen].ptr = v;
|
|
339
|
+
g_seen[g_nseen].id = 0;
|
|
340
|
+
g_nseen++;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
ScrStr *scr_insp_circular(double id) {
|
|
344
|
+
char buf[32];
|
|
345
|
+
int n = snprintf(buf, sizeof buf, "[Circular *%.0f]", id);
|
|
346
|
+
return scr_str_new(buf, (size_t)n);
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
ScrStr *scr_insp_ref_wrap(const void *v, ScrStr *s) {
|
|
350
|
+
if (g_nseen > 0) g_nseen--;
|
|
351
|
+
int id = insp_circ_id(v);
|
|
352
|
+
if (id == 0) return scr_str_retain(s);
|
|
353
|
+
char buf[32];
|
|
354
|
+
int n = snprintf(buf, sizeof buf, "<ref *%d> ", id);
|
|
355
|
+
ScrStr *out = scr_str_alloc_raw(s->len + (size_t)n, s->len + (size_t)n);
|
|
356
|
+
memcpy(out->data, buf, (size_t)n);
|
|
357
|
+
memcpy(out->data + n, s->data, s->len);
|
|
358
|
+
out->data[out->len] = '\0';
|
|
359
|
+
return out;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
/* remainingText: the "... N more items" tail entry. */
|
|
363
|
+
ScrStr *scr_insp_more_items(double remaining) {
|
|
364
|
+
char buf[64];
|
|
365
|
+
int n = snprintf(buf, sizeof buf, "... %.0f more item%s", remaining, remaining > 1 ? "s" : "");
|
|
366
|
+
return scr_str_new(buf, (size_t)n);
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
/* groupArrayElements: the grid layout for arrays with more than six
|
|
370
|
+
* entries. Rewrites the frame's items in place when grouping applies. */
|
|
371
|
+
static void insp_group(InspFrame *f, bool trailing_more) {
|
|
372
|
+
size_t output_len = f->len - (trailing_more ? 1 : 0);
|
|
373
|
+
double total_length = 0;
|
|
374
|
+
double max_length = 0;
|
|
375
|
+
size_t *data_len = malloc((output_len ? output_len : 1) * sizeof(size_t));
|
|
376
|
+
if (!data_len) insp_oom();
|
|
377
|
+
for (size_t i = 0; i < output_len; i++) {
|
|
378
|
+
size_t w = insp_width(f->items[i]->data, f->items[i]->len);
|
|
379
|
+
data_len[i] = w;
|
|
380
|
+
total_length += (double)w + 2;
|
|
381
|
+
if ((double)w > max_length) max_length = (double)w;
|
|
382
|
+
}
|
|
383
|
+
double actual_max = max_length + 2;
|
|
384
|
+
if (actual_max * 3 + (double)g_indent < 80 &&
|
|
385
|
+
(total_length / actual_max > 5 || max_length <= 6)) {
|
|
386
|
+
double approx_char_heights = 2.5;
|
|
387
|
+
double average_bias = sqrt(actual_max - total_length / (double)f->len);
|
|
388
|
+
double biased_max = fmax(actual_max - 3 - average_bias, 1);
|
|
389
|
+
double columns_d = fmin(
|
|
390
|
+
fmin(round(sqrt(approx_char_heights * biased_max * (double)output_len) / biased_max),
|
|
391
|
+
floor((80 - (double)g_indent) / actual_max)),
|
|
392
|
+
fmin(3 * 4 /* ctx.compact * 4 */, 15));
|
|
393
|
+
if (columns_d <= 1) {
|
|
394
|
+
free(data_len);
|
|
395
|
+
return;
|
|
396
|
+
}
|
|
397
|
+
size_t columns = (size_t)columns_d;
|
|
398
|
+
size_t *max_line_length = malloc(columns * sizeof(size_t));
|
|
399
|
+
if (!max_line_length) insp_oom();
|
|
400
|
+
for (size_t i = 0; i < columns; i++) {
|
|
401
|
+
size_t line_max = 0;
|
|
402
|
+
for (size_t j = i; j < output_len; j += columns) {
|
|
403
|
+
if (data_len[j] > line_max) line_max = data_len[j];
|
|
404
|
+
}
|
|
405
|
+
max_line_length[i] = line_max + 2;
|
|
406
|
+
}
|
|
407
|
+
bool pad_start = f->all_num;
|
|
408
|
+
ScrStr **tmp = NULL;
|
|
409
|
+
size_t tmp_len = 0, tmp_cap = 0;
|
|
410
|
+
for (size_t i = 0; i < output_len; i += columns) {
|
|
411
|
+
size_t max = i + columns < output_len ? i + columns : output_len;
|
|
412
|
+
InspBuf line = {0};
|
|
413
|
+
size_t j = i;
|
|
414
|
+
for (; j + 1 < max; j++) {
|
|
415
|
+
size_t width = data_len[j];
|
|
416
|
+
size_t target = max_line_length[j - i];
|
|
417
|
+
if (pad_start) {
|
|
418
|
+
if (target > width + 2) ib_spaces(&line, target - width - 2);
|
|
419
|
+
ib_str(&line, f->items[j]);
|
|
420
|
+
ib_cstr(&line, ", ");
|
|
421
|
+
} else {
|
|
422
|
+
ib_str(&line, f->items[j]);
|
|
423
|
+
ib_cstr(&line, ", ");
|
|
424
|
+
if (target > width + 2) ib_spaces(&line, target - width - 2);
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
if (pad_start) {
|
|
428
|
+
size_t width = data_len[j];
|
|
429
|
+
size_t target = max_line_length[j - i] - 2;
|
|
430
|
+
if (target > width) ib_spaces(&line, target - width);
|
|
431
|
+
ib_str(&line, f->items[j]);
|
|
432
|
+
} else {
|
|
433
|
+
ib_str(&line, f->items[j]);
|
|
434
|
+
}
|
|
435
|
+
if (tmp_len == tmp_cap) {
|
|
436
|
+
tmp_cap = tmp_cap ? tmp_cap * 2 : 8;
|
|
437
|
+
tmp = realloc(tmp, tmp_cap * sizeof(ScrStr *));
|
|
438
|
+
if (!tmp) insp_oom();
|
|
439
|
+
}
|
|
440
|
+
tmp[tmp_len++] = ib_take(&line);
|
|
441
|
+
}
|
|
442
|
+
if (trailing_more) {
|
|
443
|
+
if (tmp_len == tmp_cap) {
|
|
444
|
+
tmp_cap += 1;
|
|
445
|
+
tmp = realloc(tmp, tmp_cap * sizeof(ScrStr *));
|
|
446
|
+
if (!tmp) insp_oom();
|
|
447
|
+
}
|
|
448
|
+
tmp[tmp_len++] = scr_str_retain(f->items[f->len - 1]);
|
|
449
|
+
}
|
|
450
|
+
for (size_t i = 0; i < f->len; i++) scr_str_release(f->items[i]);
|
|
451
|
+
free(f->items);
|
|
452
|
+
f->items = tmp;
|
|
453
|
+
f->len = tmp_len;
|
|
454
|
+
f->cap = tmp_cap;
|
|
455
|
+
free(max_line_length);
|
|
456
|
+
}
|
|
457
|
+
free(data_len);
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
/* isBelowBreakLength: UTF-16 lengths against breakLength 80. */
|
|
461
|
+
static bool insp_below_break_length(InspFrame *f, size_t start, const ScrStr *base) {
|
|
462
|
+
size_t total = f->len + start;
|
|
463
|
+
if (total + f->len > 80) return false;
|
|
464
|
+
for (size_t i = 0; i < f->len; i++) {
|
|
465
|
+
total += insp_utf16_len(f->items[i]->data, f->items[i]->len);
|
|
466
|
+
if (total > 80) return false;
|
|
467
|
+
}
|
|
468
|
+
return base->len == 0 || !insp_contains_byte(base->data, base->len, '\n');
|
|
469
|
+
}
|
|
470
|
+
|
|
471
|
+
/* reduceToSingleString for the default options (compact: 3). Pops the
|
|
472
|
+
* frame. base/b0/b1 are borrowed; +1 result. `recurse` is the frame's
|
|
473
|
+
* recurseTimes (the children's depth); array_extras marks kArrayExtrasType
|
|
474
|
+
* (grid grouping applies); trailing_more marks a "... N more items" tail
|
|
475
|
+
* entry (excluded from the grid). */
|
|
476
|
+
ScrStr *scr_insp_end(ScrStr *base, ScrStr *b0, ScrStr *b1, double recurse, bool array_extras,
|
|
477
|
+
bool trailing_more) {
|
|
478
|
+
InspFrame *f = insp_top();
|
|
479
|
+
g_indent -= 2;
|
|
480
|
+
size_t entries = f->len;
|
|
481
|
+
if (array_extras && entries > 6) insp_group(f, trailing_more);
|
|
482
|
+
InspBuf out = {0};
|
|
483
|
+
if (g_cur_depth - recurse < 3 && entries == f->len) {
|
|
484
|
+
size_t start = f->len + g_indent + insp_utf16_len(b0->data, b0->len) +
|
|
485
|
+
insp_utf16_len(base->data, base->len) + 10;
|
|
486
|
+
if (insp_below_break_length(f, start, base)) {
|
|
487
|
+
bool multiline = false;
|
|
488
|
+
for (size_t i = 0; i < f->len && !multiline; i++) {
|
|
489
|
+
multiline = insp_contains_byte(f->items[i]->data, f->items[i]->len, '\n');
|
|
490
|
+
}
|
|
491
|
+
if (!multiline) {
|
|
492
|
+
if (base->len) {
|
|
493
|
+
ib_str(&out, base);
|
|
494
|
+
ib_char(&out, ' ');
|
|
495
|
+
}
|
|
496
|
+
ib_str(&out, b0);
|
|
497
|
+
ib_char(&out, ' ');
|
|
498
|
+
for (size_t i = 0; i < f->len; i++) {
|
|
499
|
+
if (i) ib_cstr(&out, ", ");
|
|
500
|
+
ib_str(&out, f->items[i]);
|
|
501
|
+
}
|
|
502
|
+
ib_char(&out, ' ');
|
|
503
|
+
ib_str(&out, b1);
|
|
504
|
+
goto done;
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
if (base->len) {
|
|
509
|
+
ib_str(&out, base);
|
|
510
|
+
ib_char(&out, ' ');
|
|
511
|
+
}
|
|
512
|
+
ib_str(&out, b0);
|
|
513
|
+
for (size_t i = 0; i < f->len; i++) {
|
|
514
|
+
ib_cstr(&out, i ? ",\n" : "\n");
|
|
515
|
+
ib_spaces(&out, g_indent + 2);
|
|
516
|
+
ib_str(&out, f->items[i]);
|
|
517
|
+
}
|
|
518
|
+
ib_char(&out, '\n');
|
|
519
|
+
ib_spaces(&out, g_indent);
|
|
520
|
+
ib_str(&out, b1);
|
|
521
|
+
done:;
|
|
522
|
+
for (size_t i = 0; i < f->len; i++) scr_str_release(f->items[i]);
|
|
523
|
+
free(f->items);
|
|
524
|
+
g_nframes--;
|
|
525
|
+
return ib_take(&out);
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
/* ── string values (formatPrimitive's string half) ───────────────────── */
|
|
529
|
+
|
|
530
|
+
/* Byte offset of UTF-16 unit `units` — when the boundary splits an astral
|
|
531
|
+
* code point (JS slice splitting a surrogate pair), the left half keeps
|
|
532
|
+
* the HIGH surrogate: *lone_high is set and the offset excludes the
|
|
533
|
+
* 4-byte sequence. */
|
|
534
|
+
static size_t insp_utf16_offset(const char *data, size_t len, size_t units, bool *lone_high,
|
|
535
|
+
uint32_t *high_cp) {
|
|
536
|
+
size_t count = 0;
|
|
537
|
+
*lone_high = false;
|
|
538
|
+
for (size_t i = 0; i < len;) {
|
|
539
|
+
if (count == units) return i;
|
|
540
|
+
size_t start = i;
|
|
541
|
+
uint32_t cp = insp_cp_at(data, len, &i);
|
|
542
|
+
size_t w = cp >= 0x10000 ? 2 : 1;
|
|
543
|
+
if (count + w > units) {
|
|
544
|
+
/* boundary splits this astral pair: keep its high surrogate */
|
|
545
|
+
*lone_high = true;
|
|
546
|
+
*high_cp = 0xd800 + ((cp - 0x10000) >> 10);
|
|
547
|
+
return start;
|
|
548
|
+
}
|
|
549
|
+
count += w;
|
|
550
|
+
}
|
|
551
|
+
return len;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
/* formatPrimitive over a string value under the default options:
|
|
555
|
+
* maxStringLength 10000, then the per-line ` +` continuation when the
|
|
556
|
+
* (truncated) text is longer than 16 chars AND breakLength(80) -
|
|
557
|
+
* indentationLvl - 4, split after each newline; the trailer counts the
|
|
558
|
+
* cut characters. Uses the CURRENT indentation. */
|
|
559
|
+
ScrStr *scr_insp_str(ScrStr *s) {
|
|
560
|
+
InspBuf out = {0};
|
|
561
|
+
const char *data = s->data;
|
|
562
|
+
size_t byte_len = s->len;
|
|
563
|
+
size_t units = insp_utf16_len(data, byte_len);
|
|
564
|
+
char trailer[64] = "";
|
|
565
|
+
char surrogate_tail[4];
|
|
566
|
+
size_t surrogate_tail_len = 0;
|
|
567
|
+
if (units > 10000) {
|
|
568
|
+
size_t remaining = units - 10000;
|
|
569
|
+
bool lone_high;
|
|
570
|
+
uint32_t high_cp = 0;
|
|
571
|
+
byte_len = insp_utf16_offset(data, byte_len, 10000, &lone_high, &high_cp);
|
|
572
|
+
if (lone_high) {
|
|
573
|
+
/* re-encode the kept high surrogate as WTF-8 */
|
|
574
|
+
surrogate_tail[0] = (char)(0xe0 | (high_cp >> 12));
|
|
575
|
+
surrogate_tail[1] = (char)(0x80 | ((high_cp >> 6) & 0x3f));
|
|
576
|
+
surrogate_tail[2] = (char)(0x80 | (high_cp & 0x3f));
|
|
577
|
+
surrogate_tail_len = 3;
|
|
578
|
+
}
|
|
579
|
+
snprintf(trailer, sizeof trailer, "... %zu more character%s", remaining,
|
|
580
|
+
remaining > 1 ? "s" : "");
|
|
581
|
+
units = 10000;
|
|
582
|
+
}
|
|
583
|
+
/* the (possibly truncated) value as one buffer */
|
|
584
|
+
InspBuf val = {0};
|
|
585
|
+
ib_bytes(&val, data, byte_len);
|
|
586
|
+
if (surrogate_tail_len) ib_bytes(&val, surrogate_tail, surrogate_tail_len);
|
|
587
|
+
size_t vlen = val.len;
|
|
588
|
+
const char *v = val.data ? val.data : "";
|
|
589
|
+
if (units > 16 && units > 80 - g_indent - 4 && memchr(v, '\n', vlen) != NULL) {
|
|
590
|
+
/* split after each newline; quote each chunk; join with ` +\n<indent+2>` */
|
|
591
|
+
size_t chunk_start = 0;
|
|
592
|
+
bool first = true;
|
|
593
|
+
for (size_t i = 0; i <= vlen; i++) {
|
|
594
|
+
bool at_end = i == vlen;
|
|
595
|
+
if (at_end ? i > chunk_start : v[i] == '\n') {
|
|
596
|
+
size_t end = at_end ? i : i + 1;
|
|
597
|
+
if (!first) {
|
|
598
|
+
ib_cstr(&out, " +\n");
|
|
599
|
+
ib_spaces(&out, g_indent + 2);
|
|
600
|
+
}
|
|
601
|
+
insp_quote_into(&out, v + chunk_start, end - chunk_start);
|
|
602
|
+
chunk_start = end;
|
|
603
|
+
first = false;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
} else {
|
|
607
|
+
insp_quote_into(&out, v, vlen);
|
|
608
|
+
}
|
|
609
|
+
if (trailer[0]) ib_cstr(&out, trailer);
|
|
610
|
+
free(val.data);
|
|
611
|
+
return ib_take(&out);
|
|
612
|
+
}
|
|
613
|
+
|
|
614
|
+
/* ── regex / Buffer / Error leaves ───────────────────────────────────── */
|
|
615
|
+
|
|
616
|
+
/* RegExp: `/source/flags` (RegExp.prototype.toString — regexes render
|
|
617
|
+
* fully at any depth; our regexes never carry extra own properties). */
|
|
618
|
+
ScrStr *scr_insp_regex(ScrRegex *re) {
|
|
619
|
+
InspBuf out = {0};
|
|
620
|
+
ib_char(&out, '/');
|
|
621
|
+
ib_bytes(&out, re->source->data, re->source->len);
|
|
622
|
+
ib_char(&out, '/');
|
|
623
|
+
ib_bytes(&out, re->flags->data, re->flags->len);
|
|
624
|
+
return ib_take(&out);
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
/* Buffer: the custom-inspect hex form `<Buffer aa bb ...>`, capped at
|
|
628
|
+
* INSPECT_MAX_BYTES (50); renders fully at any depth (custom inspection
|
|
629
|
+
* runs before the depth check in Node). u8 element kind only (the
|
|
630
|
+
* frontend fences the rest). */
|
|
631
|
+
ScrStr *scr_insp_buffer(ScrBytes *b) {
|
|
632
|
+
InspBuf out = {0};
|
|
633
|
+
ib_cstr(&out, "<Buffer ");
|
|
634
|
+
size_t max = b->len < 50 ? b->len : 50;
|
|
635
|
+
for (size_t i = 0; i < max; i++) {
|
|
636
|
+
char hex[4];
|
|
637
|
+
snprintf(hex, sizeof hex, "%02x", ((const unsigned char *)b->data)[i]);
|
|
638
|
+
if (i) ib_char(&out, ' ');
|
|
639
|
+
ib_bytes(&out, hex, 2);
|
|
640
|
+
}
|
|
641
|
+
if (b->len > 50) {
|
|
642
|
+
char more[48];
|
|
643
|
+
size_t remaining = b->len - 50;
|
|
644
|
+
int n = snprintf(more, sizeof more, " ... %zu more byte%s", remaining,
|
|
645
|
+
remaining > 1 ? "s" : "");
|
|
646
|
+
ib_bytes(&out, more, (size_t)n);
|
|
647
|
+
}
|
|
648
|
+
ib_char(&out, '>');
|
|
649
|
+
return ib_take(&out);
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
/* Errors: the STACKLESS rendering — compiled binaries carry no stack, so
|
|
653
|
+
* the base is formatError's bracket form `[Name: message]` / `[Name]`
|
|
654
|
+
* (Node prints these exact forms for an error whose stack is empty;
|
|
655
|
+
* stack-carrying Node output is a documented divergence). A stamped
|
|
656
|
+
* `code` slot renders as the one extra own property Node would show:
|
|
657
|
+
* `[Error: m] { code: 'X' }`, `[Error]` beyond depth. Message newlines
|
|
658
|
+
* indent like Node's formatError tail. */
|
|
659
|
+
ScrStr *scr_insp_error(ScrError *e, double recurse, double depth) {
|
|
660
|
+
bool has_code = e->code != NULL; /* the stamped slot, read directly (borrowed) */
|
|
661
|
+
if (has_code && recurse > depth) {
|
|
662
|
+
/* `[${getCtxStyle(...)}]` with the trailing space sliced: [Name] */
|
|
663
|
+
InspBuf out = {0};
|
|
664
|
+
ib_char(&out, '[');
|
|
665
|
+
ib_str(&out, e->name);
|
|
666
|
+
ib_char(&out, ']');
|
|
667
|
+
return ib_take(&out);
|
|
668
|
+
}
|
|
669
|
+
InspBuf base = {0};
|
|
670
|
+
ib_char(&base, '[');
|
|
671
|
+
ib_str(&base, e->name);
|
|
672
|
+
if (e->message->len) {
|
|
673
|
+
ib_cstr(&base, ": ");
|
|
674
|
+
/* indent embedded newlines by the CURRENT level (formatError's
|
|
675
|
+
* final replaceAll — g_indent is the property's own level here). */
|
|
676
|
+
for (size_t i = 0; i < e->message->len; i++) {
|
|
677
|
+
char c = e->message->data[i];
|
|
678
|
+
ib_char(&base, c);
|
|
679
|
+
if (c == '\n') ib_spaces(&base, g_indent);
|
|
680
|
+
}
|
|
681
|
+
}
|
|
682
|
+
ib_char(&base, ']');
|
|
683
|
+
ScrStr *base_str = ib_take(&base);
|
|
684
|
+
if (!has_code) return base_str;
|
|
685
|
+
scr_insp_begin(recurse + 1);
|
|
686
|
+
{
|
|
687
|
+
InspBuf entry = {0};
|
|
688
|
+
ib_cstr(&entry, "code: ");
|
|
689
|
+
insp_quote_into(&entry, e->code->data, e->code->len);
|
|
690
|
+
ScrStr *entry_str = ib_take(&entry);
|
|
691
|
+
scr_insp_entry(entry_str, false);
|
|
692
|
+
scr_str_release(entry_str);
|
|
693
|
+
}
|
|
694
|
+
ScrStr *b0 = scr_str_new("{", 1);
|
|
695
|
+
ScrStr *b1 = scr_str_new("}", 1);
|
|
696
|
+
ScrStr *out = scr_insp_end(base_str, b0, b1, recurse + 1, false, false);
|
|
697
|
+
scr_str_release(b0);
|
|
698
|
+
scr_str_release(b1);
|
|
699
|
+
scr_str_release(base_str);
|
|
700
|
+
return out;
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
/* ── dyn values (the checked-dynamic JSON dyn) ───────────────────────── */
|
|
704
|
+
|
|
705
|
+
/* Property-name rendering: bare when the key matches Node's keyStrRegExp
|
|
706
|
+
* (/^[a-zA-Z_][a-zA-Z_0-9]*$/, '__proto__' excepted), quoted otherwise. */
|
|
707
|
+
static void insp_key_into(InspBuf *b, const char *key, size_t len) {
|
|
708
|
+
if (len == 9 && memcmp(key, "__proto__", 9) == 0) {
|
|
709
|
+
ib_cstr(b, "['__proto__']");
|
|
710
|
+
return;
|
|
711
|
+
}
|
|
712
|
+
bool bare = len > 0;
|
|
713
|
+
for (size_t i = 0; bare && i < len; i++) {
|
|
714
|
+
char c = key[i];
|
|
715
|
+
bool head_ok = (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || c == '_';
|
|
716
|
+
bool tail_ok = head_ok || (c >= '0' && c <= '9');
|
|
717
|
+
bare = i == 0 ? head_ok : tail_ok;
|
|
718
|
+
}
|
|
719
|
+
if (bare) {
|
|
720
|
+
ib_bytes(b, key, len);
|
|
721
|
+
} else {
|
|
722
|
+
insp_quote_into(b, key, len);
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
|
|
726
|
+
/* Property-name rendering for the synthesized index-signature record
|
|
727
|
+
* helpers (their keys are runtime strings, so the bare-or-quoted ladder
|
|
728
|
+
* must run here): insp_key_into over a ScrStr. Borrows; result +1. */
|
|
729
|
+
ScrStr *scr_insp_key(ScrStr *k) {
|
|
730
|
+
InspBuf b = {0};
|
|
731
|
+
insp_key_into(&b, k->data, k->len);
|
|
732
|
+
return ib_take(&b);
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
/* The full inspect over a dyn tree — the one runtime type whose SHAPE
|
|
736
|
+
* lives in the value, so the traversal lives here instead of a
|
|
737
|
+
* synthesized helper. Same engine, same defaults. dyn-boxed bytes render
|
|
738
|
+
* in the checked-dynamic tree's documented Uint8Array identity (SEMANTICS.md). */
|
|
739
|
+
ScrStr *scr_insp_dyn(ScrDyn *d, double recurse, double depth) {
|
|
740
|
+
if (d->kind == SCR_DYN_PROXY) return scr_insp_dyn(d->v.proxy.target, recurse, depth);
|
|
741
|
+
switch (d->kind) {
|
|
742
|
+
case SCR_DYN_NULL:
|
|
743
|
+
return scr_str_new("null", 4);
|
|
744
|
+
case SCR_DYN_UNDEF:
|
|
745
|
+
return scr_str_new("undefined", 9);
|
|
746
|
+
case SCR_DYN_BOOL:
|
|
747
|
+
return d->v.b ? scr_str_new("true", 4) : scr_str_new("false", 5);
|
|
748
|
+
case SCR_DYN_BIGINT:
|
|
749
|
+
return scr_bigint_inspect(d->v.bigint);
|
|
750
|
+
case SCR_DYN_SYMBOL:
|
|
751
|
+
return d->v.symbol.render(d->v.symbol.value);
|
|
752
|
+
case SCR_DYN_NUM:
|
|
753
|
+
return scr_insp_f64(d->v.num);
|
|
754
|
+
case SCR_DYN_STR:
|
|
755
|
+
return scr_insp_str(d->v.str);
|
|
756
|
+
case SCR_DYN_ARR: {
|
|
757
|
+
if (d->v.arr.len == 0) return scr_str_new("[]", 2);
|
|
758
|
+
if (recurse > depth) return scr_str_new("[Array]", 7);
|
|
759
|
+
scr_insp_begin(recurse + 1);
|
|
760
|
+
size_t shown = d->v.arr.len < 100 ? d->v.arr.len : 100;
|
|
761
|
+
for (size_t i = 0; i < shown; i++) {
|
|
762
|
+
ScrDyn *item = d->v.arr.items[i];
|
|
763
|
+
ScrStr *s = scr_insp_dyn(item, recurse + 1, depth);
|
|
764
|
+
scr_insp_entry(s, item->kind == SCR_DYN_NUM);
|
|
765
|
+
scr_str_release(s);
|
|
766
|
+
}
|
|
767
|
+
bool more = d->v.arr.len > 100;
|
|
768
|
+
if (more) {
|
|
769
|
+
ScrStr *m = scr_insp_more_items((double)(d->v.arr.len - 100));
|
|
770
|
+
scr_insp_entry(m, d->v.arr.items[100]->kind == SCR_DYN_NUM);
|
|
771
|
+
scr_str_release(m);
|
|
772
|
+
}
|
|
773
|
+
ScrStr *base = scr_str_new("", 0);
|
|
774
|
+
ScrStr *b0 = scr_str_new("[", 1);
|
|
775
|
+
ScrStr *b1 = scr_str_new("]", 1);
|
|
776
|
+
ScrStr *out = scr_insp_end(base, b0, b1, recurse + 1, true, more);
|
|
777
|
+
scr_str_release(base);
|
|
778
|
+
scr_str_release(b0);
|
|
779
|
+
scr_str_release(b1);
|
|
780
|
+
return out;
|
|
781
|
+
}
|
|
782
|
+
case SCR_DYN_OBJ: {
|
|
783
|
+
/* Object.create(null)'s dictionary: Node prefixes the rendering
|
|
784
|
+
* with "[Object: null prototype]" (formatValue's constructor-less
|
|
785
|
+
* base), the empty form included, and the beyond-depth answer IS
|
|
786
|
+
* the bare marker (where a plain object says [Object]). */
|
|
787
|
+
if (d->v.obj.len == 0) {
|
|
788
|
+
return d->null_proto ? scr_str_new("[Object: null prototype] {}", 27)
|
|
789
|
+
: scr_str_new("{}", 2);
|
|
790
|
+
}
|
|
791
|
+
if (recurse > depth) {
|
|
792
|
+
return d->null_proto ? scr_str_new("[Object: null prototype]", 24)
|
|
793
|
+
: scr_str_new("[Object]", 8);
|
|
794
|
+
}
|
|
795
|
+
scr_insp_begin(recurse + 1);
|
|
796
|
+
for (size_t i = 0; i < d->v.obj.len; i++) {
|
|
797
|
+
ScrDynEntry *ent = &d->v.obj.entries[i];
|
|
798
|
+
ScrStr *val = scr_insp_dyn(ent->value, recurse + 1, depth);
|
|
799
|
+
InspBuf eb = {0};
|
|
800
|
+
insp_key_into(&eb, ent->key, ent->key_len);
|
|
801
|
+
ib_cstr(&eb, ": ");
|
|
802
|
+
ib_bytes(&eb, val->data, val->len);
|
|
803
|
+
scr_str_release(val);
|
|
804
|
+
ScrStr *entry = ib_take(&eb);
|
|
805
|
+
scr_insp_entry(entry, false);
|
|
806
|
+
scr_str_release(entry);
|
|
807
|
+
}
|
|
808
|
+
ScrStr *base = d->null_proto ? scr_str_new("[Object: null prototype]", 24)
|
|
809
|
+
: scr_str_new("", 0);
|
|
810
|
+
ScrStr *b0 = scr_str_new("{", 1);
|
|
811
|
+
ScrStr *b1 = scr_str_new("}", 1);
|
|
812
|
+
ScrStr *out = scr_insp_end(base, b0, b1, recurse + 1, false, false);
|
|
813
|
+
scr_str_release(base);
|
|
814
|
+
scr_str_release(b0);
|
|
815
|
+
scr_str_release(b1);
|
|
816
|
+
return out;
|
|
817
|
+
}
|
|
818
|
+
case SCR_DYN_FUNC: {
|
|
819
|
+
/* Node's function rendering: [Function: name] / [Function
|
|
820
|
+
* (anonymous)]. The boxed name is the compiler's best-effort static
|
|
821
|
+
* spelling (SEMANTICS.md — reference-site naming). */
|
|
822
|
+
const char *name = d->v.fn.name;
|
|
823
|
+
InspBuf out = {0};
|
|
824
|
+
if (name && name[0]) {
|
|
825
|
+
ib_cstr(&out, "[Function: ");
|
|
826
|
+
ib_cstr(&out, name);
|
|
827
|
+
ib_char(&out, ']');
|
|
828
|
+
} else {
|
|
829
|
+
ib_cstr(&out, "[Function (anonymous)]");
|
|
830
|
+
}
|
|
831
|
+
return ib_take(&out);
|
|
832
|
+
}
|
|
833
|
+
case SCR_DYN_HANDLE: {
|
|
834
|
+
/* Node prints the class's full property dump (ServerResponse {
|
|
835
|
+
* ... }) — internals we do not model. Fence loudly instead of a
|
|
836
|
+
* silent-wrong shape (SEMANTICS.md). */
|
|
837
|
+
InspBuf out = {0};
|
|
838
|
+
ib_cstr(&out, "util.inspect of a dynamic ");
|
|
839
|
+
ib_cstr(&out, scr_dyn_handle_cls(d));
|
|
840
|
+
ib_cstr(&out, " is not supported yet");
|
|
841
|
+
scr_throw_error(SCR_ERR_ERROR, ib_take(&out));
|
|
842
|
+
return scr_str_new("", 0);
|
|
843
|
+
}
|
|
844
|
+
case SCR_DYN_JSVAL: {
|
|
845
|
+
/* An island value inside the checked-dynamic tree: Node prints the engine object's
|
|
846
|
+
* property dump — fence loudly, naming the engine typeof (the
|
|
847
|
+
* scr_insp_jsval wording for bare 'any' composites). */
|
|
848
|
+
ScrStr *t = scr_dyn_typeof(d); /* routes to the engine; +1 */
|
|
849
|
+
InspBuf out = {0};
|
|
850
|
+
ib_cstr(&out, "util.inspect of a composite 'any' value (typeof '");
|
|
851
|
+
ib_bytes(&out, t->data, t->len);
|
|
852
|
+
ib_cstr(&out, "') is not supported yet");
|
|
853
|
+
scr_str_release(t);
|
|
854
|
+
scr_throw_error(SCR_ERR_ERROR, ib_take(&out));
|
|
855
|
+
return scr_str_new("", 0);
|
|
856
|
+
}
|
|
857
|
+
case SCR_DYN_TYPED_REF: {
|
|
858
|
+
ScrDyn *materialized = scr_dyn_typed_ref_materialize(d);
|
|
859
|
+
ScrStr *out = scr_insp_dyn(materialized, recurse, depth);
|
|
860
|
+
scr_dyn_release(materialized);
|
|
861
|
+
return out;
|
|
862
|
+
}
|
|
863
|
+
case SCR_DYN_PROMISE: {
|
|
864
|
+
/* Node renders Promise { <pending> } / Promise { value } — the
|
|
865
|
+
* settled-value rendering pulls in the whole inspector; fence
|
|
866
|
+
* loudly instead of a silent-wrong shape (the handle stance). */
|
|
867
|
+
InspBuf out = {0};
|
|
868
|
+
ib_cstr(&out, "util.inspect of a promise value is not supported yet");
|
|
869
|
+
scr_throw_error(SCR_ERR_ERROR, ib_take(&out));
|
|
870
|
+
return scr_str_new("", 0);
|
|
871
|
+
}
|
|
872
|
+
case SCR_DYN_BYTES: {
|
|
873
|
+
ScrBytes *b = d->v.bytes;
|
|
874
|
+
if (d->buffer) {
|
|
875
|
+
/* Buffer-flavored (a stream chunk): Node's <Buffer ..> form. */
|
|
876
|
+
return scr_insp_buffer(b);
|
|
877
|
+
}
|
|
878
|
+
char prefix[48];
|
|
879
|
+
int pn = snprintf(prefix, sizeof prefix, "%s(%zu) [", scr_bytes_elem_name(b->elem), b->len);
|
|
880
|
+
if (b->len == 0) {
|
|
881
|
+
InspBuf out = {0};
|
|
882
|
+
ib_bytes(&out, prefix, (size_t)pn);
|
|
883
|
+
ib_char(&out, ']');
|
|
884
|
+
return ib_take(&out);
|
|
885
|
+
}
|
|
886
|
+
if (recurse > depth) {
|
|
887
|
+
char tag[32];
|
|
888
|
+
int n = snprintf(tag, sizeof tag, "[%s]", scr_bytes_elem_name(b->elem));
|
|
889
|
+
return scr_str_new(tag, (size_t)n);
|
|
890
|
+
}
|
|
891
|
+
scr_insp_begin(recurse + 1);
|
|
892
|
+
size_t shown = b->len < 100 ? b->len : 100;
|
|
893
|
+
for (size_t i = 0; i < shown; i++) {
|
|
894
|
+
ScrStr *s = scr_insp_f64(scr_bytes_get(b, (double)i));
|
|
895
|
+
scr_insp_entry(s, true);
|
|
896
|
+
scr_str_release(s);
|
|
897
|
+
}
|
|
898
|
+
bool more = b->len > 100;
|
|
899
|
+
if (more) {
|
|
900
|
+
ScrStr *m = scr_insp_more_items((double)(b->len - 100));
|
|
901
|
+
scr_insp_entry(m, true);
|
|
902
|
+
scr_str_release(m);
|
|
903
|
+
}
|
|
904
|
+
ScrStr *base = scr_str_new("", 0);
|
|
905
|
+
ScrStr *b0 = scr_str_new(prefix, (size_t)pn);
|
|
906
|
+
ScrStr *b1 = scr_str_new("]", 1);
|
|
907
|
+
ScrStr *out = scr_insp_end(base, b0, b1, recurse + 1, true, more);
|
|
908
|
+
scr_str_release(base);
|
|
909
|
+
scr_str_release(b0);
|
|
910
|
+
scr_str_release(b1);
|
|
911
|
+
return out;
|
|
912
|
+
}
|
|
913
|
+
}
|
|
914
|
+
return scr_str_new("undefined", 9); /* unreachable */
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
/* util.format's %s over a dyn value: strings pass VERBATIM (Node's
|
|
918
|
+
* `typeof arg === 'string' ? arg : inspect(arg)` — the %s depth is 0,
|
|
919
|
+
* the rest-args depth 2); everything else inspects at the given depth. */
|
|
920
|
+
ScrStr *scr_insp_dyn_s(ScrDyn *d, double depth) {
|
|
921
|
+
if (d->kind == SCR_DYN_STR) return scr_str_retain(d->v.str);
|
|
922
|
+
return scr_insp_dyn(d, 0, depth);
|
|
923
|
+
}
|