@scriptc/cli-darwin-x64 0.0.0 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +3847 -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/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 +5758 -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 +1444 -0
- package/dist/lib/runtime-sources/src/scr_assert.c +1537 -0
- package/dist/lib/runtime-sources/src/scr_async.c +3920 -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 +803 -0
- package/dist/lib/runtime-sources/src/scr_bigint.c +890 -0
- package/dist/lib/runtime-sources/src/scr_bigint_assert.c +22 -0
- package/dist/lib/runtime-sources/src/scr_bytes.c +2518 -0
- package/dist/lib/runtime-sources/src/scr_bytes_io.c +755 -0
- package/dist/lib/runtime-sources/src/scr_child.c +5808 -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 +1626 -0
- package/dist/lib/runtime-sources/src/scr_error.c +372 -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 +468 -0
- package/dist/lib/runtime-sources/src/scr_fetch.c +7215 -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 +5808 -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 +9987 -0
- package/dist/lib/runtime-sources/src/scr_island_manifest.h +153 -0
- package/dist/lib/runtime-sources/src/scr_json.c +7928 -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 +705 -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 +281 -0
- package/dist/lib/runtime-sources/src/scr_number.c +192 -0
- package/dist/lib/runtime-sources/src/scr_object.c +80 -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 +1274 -0
- package/dist/lib/runtime-sources/src/scr_runtime.h +7207 -0
- package/dist/lib/runtime-sources/src/scr_stream.c +3149 -0
- package/dist/lib/runtime-sources/src/scr_string.c +1849 -0
- package/dist/lib/runtime-sources/src/scr_symbol.c +234 -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_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 +1231 -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/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,814 @@
|
|
|
1
|
+
/* node:diagnostics_channel — the in-process pub/sub core (scr_runtime.h
|
|
2
|
+
* has the API contract). Linked only when the IR carries dc.* libCalls
|
|
3
|
+
* (native-toolchain.ts; the zlib gating precedent), pure data structure over the checked-dynamic tree —
|
|
4
|
+
* no loop hooks, no platform seams, cross-compiles everywhere.
|
|
5
|
+
*
|
|
6
|
+
* - The registry is process-global and append-only (Node's channels are
|
|
7
|
+
* process-lived too — its WeakRefMap only collects channels nothing
|
|
8
|
+
* references, which a compiled program cannot observe). Handles are
|
|
9
|
+
* 1-based indexes so a zeroed f64 can never alias channel 0.
|
|
10
|
+
* - Subscribers are dyn FUNCTION values. unsubscribe matches by the
|
|
11
|
+
* UNDERLYING closure when both sides are functions (boxing one function
|
|
12
|
+
* twice yields distinct ScrDyn nodes sharing one ScrClosure, and JS has
|
|
13
|
+
* ONE function object), falling back to node identity.
|
|
14
|
+
* - publish iterates a SNAPSHOT of the subscriber list: a subscriber
|
|
15
|
+
* unsubscribing itself mid-publish still lets its siblings fire (the
|
|
16
|
+
* test suite's sync-unsubscribe shape, Node's behavior). A subscriber's
|
|
17
|
+
* throw PROPAGATES out of publish — catchable there — where Node routes
|
|
18
|
+
* it to triggerUncaughtException (SEMANTICS.md divergence).
|
|
19
|
+
* - The atexit teardown releases names and subscribers before the RC
|
|
20
|
+
* audit runs (atexit is LIFO; scr_init registered the audit first), so
|
|
21
|
+
* registry-held values never count as leaks.
|
|
22
|
+
*/
|
|
23
|
+
#include "scr_runtime.h"
|
|
24
|
+
|
|
25
|
+
#include <stdio.h>
|
|
26
|
+
#include <stdlib.h>
|
|
27
|
+
#include <string.h>
|
|
28
|
+
|
|
29
|
+
typedef struct {
|
|
30
|
+
double als_id; /* the bound AsyncLocalStorage handle */
|
|
31
|
+
ScrDyn *transform; /* owned FUNC, or NULL (identity — Node's default) */
|
|
32
|
+
} ScrDcBinding;
|
|
33
|
+
|
|
34
|
+
typedef struct {
|
|
35
|
+
ScrStr *name; /* owned */
|
|
36
|
+
ScrDyn **subs; /* owned entries */
|
|
37
|
+
size_t nsubs, cap;
|
|
38
|
+
/* bindStore entries: set semantics per store (a re-bind replaces the
|
|
39
|
+
* transform), entered around every publish that flows through
|
|
40
|
+
* runStores (and the tracing choreography's runStores points). */
|
|
41
|
+
ScrDcBinding *binds;
|
|
42
|
+
size_t nbinds, binds_cap;
|
|
43
|
+
} ScrDcChannel;
|
|
44
|
+
|
|
45
|
+
static ScrDcChannel *dc_channels = NULL;
|
|
46
|
+
static size_t dc_nchannels = 0, dc_cap = 0;
|
|
47
|
+
static bool dc_teardown_registered = false;
|
|
48
|
+
|
|
49
|
+
static void scr_dc_teardown(void) {
|
|
50
|
+
for (size_t i = 0; i < dc_nchannels; i++) {
|
|
51
|
+
ScrDcChannel *ch = &dc_channels[i];
|
|
52
|
+
scr_str_release(ch->name);
|
|
53
|
+
for (size_t j = 0; j < ch->nsubs; j++) scr_dyn_release(ch->subs[j]);
|
|
54
|
+
free(ch->subs);
|
|
55
|
+
for (size_t j = 0; j < ch->nbinds; j++) scr_dyn_release(ch->binds[j].transform);
|
|
56
|
+
free(ch->binds);
|
|
57
|
+
}
|
|
58
|
+
free(dc_channels);
|
|
59
|
+
dc_channels = NULL;
|
|
60
|
+
dc_nchannels = dc_cap = 0;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/* Get-or-create by name; returns the channel's index. Borrows name. */
|
|
64
|
+
static size_t dc_intern(ScrStr *name) {
|
|
65
|
+
for (size_t i = 0; i < dc_nchannels; i++) {
|
|
66
|
+
if (scr_str_eq(dc_channels[i].name, name)) return i;
|
|
67
|
+
}
|
|
68
|
+
if (dc_nchannels == dc_cap) {
|
|
69
|
+
dc_cap = dc_cap ? dc_cap * 2 : 8;
|
|
70
|
+
dc_channels = realloc(dc_channels, dc_cap * sizeof *dc_channels);
|
|
71
|
+
if (!dc_channels) {
|
|
72
|
+
fputs("scriptc: out of memory\n", stderr);
|
|
73
|
+
abort();
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
if (!dc_teardown_registered) {
|
|
77
|
+
dc_teardown_registered = true;
|
|
78
|
+
atexit(scr_dc_teardown);
|
|
79
|
+
}
|
|
80
|
+
ScrDcChannel *ch = &dc_channels[dc_nchannels];
|
|
81
|
+
ch->name = scr_str_retain(name);
|
|
82
|
+
ch->subs = NULL;
|
|
83
|
+
ch->nsubs = ch->cap = 0;
|
|
84
|
+
ch->binds = NULL;
|
|
85
|
+
ch->nbinds = ch->binds_cap = 0;
|
|
86
|
+
return dc_nchannels++;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
static ScrDcChannel *dc_of(double handle) {
|
|
90
|
+
size_t i = (size_t)handle;
|
|
91
|
+
if (i < 1 || i > dc_nchannels) {
|
|
92
|
+
/* Compiled code can only hold handles dc_intern minted — anything
|
|
93
|
+
* else is a compiler bug, never user-reachable. */
|
|
94
|
+
fputs("scriptc: invalid diagnostics_channel handle\n", stderr);
|
|
95
|
+
abort();
|
|
96
|
+
}
|
|
97
|
+
return &dc_channels[i - 1];
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
/* Node's ERR_INVALID_ARG_TYPE for a non-function subscriber — the
|
|
101
|
+
* "Received ..." tail covers the dyn kinds (determineSpecificType lite;
|
|
102
|
+
* scr_dyn_handle.c's full renderer is not linked here). */
|
|
103
|
+
static void dc_throw_bad_fn_arg(const ScrDyn *cb, const char *arg_name) {
|
|
104
|
+
const char *received = "an instance of Object";
|
|
105
|
+
char detail[64];
|
|
106
|
+
if (cb == NULL) {
|
|
107
|
+
received = "undefined";
|
|
108
|
+
char buf[160];
|
|
109
|
+
int n = snprintf(buf, sizeof buf, "The \"%s\" argument must be of type function. Received %s",
|
|
110
|
+
arg_name, received);
|
|
111
|
+
scr_throw_error_msg_code(SCR_ERR_TYPE, buf, (size_t)n, "ERR_INVALID_ARG_TYPE");
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
switch (cb->kind) {
|
|
115
|
+
case SCR_DYN_NULL: received = "null"; break;
|
|
116
|
+
case SCR_DYN_UNDEF: received = "undefined"; break;
|
|
117
|
+
case SCR_DYN_ARR: received = "an instance of Array"; break;
|
|
118
|
+
case SCR_DYN_BYTES:
|
|
119
|
+
snprintf(detail, sizeof detail, "an instance of %s", scr_bytes_elem_name(cb->v.bytes->elem));
|
|
120
|
+
received = detail;
|
|
121
|
+
break;
|
|
122
|
+
case SCR_DYN_BOOL:
|
|
123
|
+
snprintf(detail, sizeof detail, "type boolean (%s)", cb->v.b ? "true" : "false");
|
|
124
|
+
received = detail;
|
|
125
|
+
break;
|
|
126
|
+
case SCR_DYN_NUM: {
|
|
127
|
+
char num[32];
|
|
128
|
+
size_t n = scr_f64_to_str(cb->v.num, num);
|
|
129
|
+
snprintf(detail, sizeof detail, "type number (%.*s)", (int)n, num);
|
|
130
|
+
received = detail;
|
|
131
|
+
break;
|
|
132
|
+
}
|
|
133
|
+
case SCR_DYN_STR:
|
|
134
|
+
snprintf(detail, sizeof detail, "type string ('%.*s')",
|
|
135
|
+
(int)(cb->v.str->len < 28 ? cb->v.str->len : 28), cb->v.str->data);
|
|
136
|
+
received = detail;
|
|
137
|
+
break;
|
|
138
|
+
case SCR_DYN_JSVAL:
|
|
139
|
+
/* An engine callback may well BE a function — subscribing island
|
|
140
|
+
* values is unarmed (lane dyn-routing-ops); fence loudly rather
|
|
141
|
+
* than claim "Received an instance of Object". */
|
|
142
|
+
scr_dyn_isl_fence(cb, "subscribing");
|
|
143
|
+
return;
|
|
144
|
+
default: break;
|
|
145
|
+
}
|
|
146
|
+
char buf[160];
|
|
147
|
+
int n = snprintf(buf, sizeof buf,
|
|
148
|
+
"The \"%s\" argument must be of type function. Received %s",
|
|
149
|
+
arg_name, received);
|
|
150
|
+
scr_throw_error_msg_code(SCR_ERR_TYPE, buf, (size_t)n, "ERR_INVALID_ARG_TYPE");
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
static void dc_throw_bad_subscriber(const ScrDyn *cb) {
|
|
154
|
+
dc_throw_bad_fn_arg(cb, "subscription");
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/* Subscriber identity: the underlying closure for FUNC pairs, node
|
|
158
|
+
* identity otherwise. */
|
|
159
|
+
static bool dc_sub_matches(const ScrDyn *a, const ScrDyn *b) {
|
|
160
|
+
if (a == b) return true;
|
|
161
|
+
return a->kind == SCR_DYN_FUNC && b->kind == SCR_DYN_FUNC && a->v.fn.clo == b->v.fn.clo;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
static void dc_sub_add(ScrDcChannel *ch, ScrDyn *cb) {
|
|
165
|
+
if (ch->nsubs == ch->cap) {
|
|
166
|
+
ch->cap = ch->cap ? ch->cap * 2 : 4;
|
|
167
|
+
ch->subs = realloc(ch->subs, ch->cap * sizeof *ch->subs);
|
|
168
|
+
if (!ch->subs) {
|
|
169
|
+
fputs("scriptc: out of memory\n", stderr);
|
|
170
|
+
abort();
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
ch->subs[ch->nsubs++] = scr_dyn_retain(cb);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
static bool dc_sub_remove(ScrDcChannel *ch, const ScrDyn *cb) {
|
|
177
|
+
for (size_t i = 0; i < ch->nsubs; i++) {
|
|
178
|
+
if (dc_sub_matches(ch->subs[i], cb)) {
|
|
179
|
+
scr_dyn_release(ch->subs[i]);
|
|
180
|
+
memmove(ch->subs + i, ch->subs + i + 1, (ch->nsubs - i - 1) * sizeof *ch->subs);
|
|
181
|
+
ch->nsubs--;
|
|
182
|
+
return true;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
return false;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
double scr_dc_channel(ScrStr *name) { return (double)(dc_intern(name) + 1); }
|
|
189
|
+
|
|
190
|
+
void scr_dc_chan_subscribe(double handle, ScrDyn *cb) {
|
|
191
|
+
if (cb->kind != SCR_DYN_FUNC) {
|
|
192
|
+
dc_throw_bad_subscriber(cb);
|
|
193
|
+
return;
|
|
194
|
+
}
|
|
195
|
+
dc_sub_add(dc_of(handle), cb);
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
bool scr_dc_chan_unsubscribe(double handle, ScrDyn *cb) {
|
|
199
|
+
if (cb->kind != SCR_DYN_FUNC) {
|
|
200
|
+
dc_throw_bad_subscriber(cb);
|
|
201
|
+
return false;
|
|
202
|
+
}
|
|
203
|
+
return dc_sub_remove(dc_of(handle), cb);
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
/* Node's Channel is ACTIVE with subscribers OR bound stores (bindStore
|
|
207
|
+
* marks active through the same prototype swap subscribe uses), and
|
|
208
|
+
* hasSubscribers answers activeness — so the tracing early exits keep
|
|
209
|
+
* running the store choreography for subscriber-less bound channels. */
|
|
210
|
+
static bool dc_chan_active(const ScrDcChannel *ch) { return ch->nsubs > 0 || ch->nbinds > 0; }
|
|
211
|
+
|
|
212
|
+
bool scr_dc_chan_has_subscribers(double handle) { return dc_chan_active(dc_of(handle)); }
|
|
213
|
+
|
|
214
|
+
ScrStr *scr_dc_chan_name(double handle) { return scr_str_retain(dc_of(handle)->name); }
|
|
215
|
+
|
|
216
|
+
void scr_dc_subscribe(ScrStr *name, ScrDyn *cb) {
|
|
217
|
+
scr_dc_chan_subscribe((double)(dc_intern(name) + 1), cb);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
bool scr_dc_unsubscribe(ScrStr *name, ScrDyn *cb) {
|
|
221
|
+
/* Node's module-level unsubscribe of a never-created channel answers
|
|
222
|
+
* false without creating it; matching an existing list needs no
|
|
223
|
+
* creation either — probe without interning. */
|
|
224
|
+
if (cb->kind != SCR_DYN_FUNC) {
|
|
225
|
+
dc_throw_bad_subscriber(cb);
|
|
226
|
+
return false;
|
|
227
|
+
}
|
|
228
|
+
for (size_t i = 0; i < dc_nchannels; i++) {
|
|
229
|
+
if (scr_str_eq(dc_channels[i].name, name)) return dc_sub_remove(&dc_channels[i], cb);
|
|
230
|
+
}
|
|
231
|
+
return false;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
bool scr_dc_has_subscribers(ScrStr *name) {
|
|
235
|
+
for (size_t i = 0; i < dc_nchannels; i++) {
|
|
236
|
+
if (scr_str_eq(dc_channels[i].name, name)) return dc_chan_active(&dc_channels[i]);
|
|
237
|
+
}
|
|
238
|
+
return false;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/* ── bindStore / runStores (the AsyncLocalStorage integration) ─────────
|
|
242
|
+
* bindStore is per-store SET semantics (a re-bind replaces the
|
|
243
|
+
* transform); runStores enters every bound store with transform(data)
|
|
244
|
+
* (identity without a transform), publishes INSIDE the entered contexts
|
|
245
|
+
* (subscribers observe getStore(), Node's shape), runs fn with thisArg
|
|
246
|
+
* bound and the arguments forwarded, and restores in reverse — the
|
|
247
|
+
* finally, so a throw still restores. A transform throw propagates
|
|
248
|
+
* (Node defers it to reportError and skips the store — SEMANTICS.md). */
|
|
249
|
+
|
|
250
|
+
void scr_dc_chan_bind_store(double handle, double als_id, ScrDyn *transform) {
|
|
251
|
+
ScrDcChannel *ch = dc_of(handle);
|
|
252
|
+
ScrDyn *t = (transform != NULL && transform->kind == SCR_DYN_FUNC)
|
|
253
|
+
? scr_dyn_retain(transform)
|
|
254
|
+
: NULL;
|
|
255
|
+
for (size_t i = 0; i < ch->nbinds; i++) {
|
|
256
|
+
if (ch->binds[i].als_id == als_id) {
|
|
257
|
+
scr_dyn_release(ch->binds[i].transform);
|
|
258
|
+
ch->binds[i].transform = t;
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
if (ch->nbinds == ch->binds_cap) {
|
|
263
|
+
ch->binds_cap = ch->binds_cap ? ch->binds_cap * 2 : 4;
|
|
264
|
+
ch->binds = realloc(ch->binds, ch->binds_cap * sizeof *ch->binds);
|
|
265
|
+
if (!ch->binds) {
|
|
266
|
+
fputs("scriptc: out of memory\n", stderr);
|
|
267
|
+
abort();
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
ch->binds[ch->nbinds].als_id = als_id;
|
|
271
|
+
ch->binds[ch->nbinds].transform = t;
|
|
272
|
+
ch->nbinds++;
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
bool scr_dc_chan_unbind_store(double handle, double als_id) {
|
|
276
|
+
ScrDcChannel *ch = dc_of(handle);
|
|
277
|
+
for (size_t i = 0; i < ch->nbinds; i++) {
|
|
278
|
+
if (ch->binds[i].als_id == als_id) {
|
|
279
|
+
scr_dyn_release(ch->binds[i].transform);
|
|
280
|
+
memmove(ch->binds + i, ch->binds + i + 1, (ch->nbinds - i - 1) * sizeof *ch->binds);
|
|
281
|
+
ch->nbinds--;
|
|
282
|
+
return true;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
return false;
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
/* Enter every bound store (transform(data) or data itself); the returned
|
|
289
|
+
* malloc'd array of PREVIOUS snapshots restores in reverse. On a
|
|
290
|
+
* transform throw the already-entered stores restore here and the
|
|
291
|
+
* exception stays pending (*n_out counts the entered prefix). */
|
|
292
|
+
static ScrAlsCtx **dc_stores_enter(ScrDcChannel *ch, ScrDyn *data, size_t *n_out) {
|
|
293
|
+
*n_out = 0;
|
|
294
|
+
if (ch->nbinds == 0) return NULL;
|
|
295
|
+
ScrAlsCtx **prevs = malloc(ch->nbinds * sizeof *prevs);
|
|
296
|
+
if (!prevs) {
|
|
297
|
+
fputs("scriptc: out of memory\n", stderr);
|
|
298
|
+
abort();
|
|
299
|
+
}
|
|
300
|
+
for (size_t i = 0; i < ch->nbinds; i++) {
|
|
301
|
+
ScrDyn *value;
|
|
302
|
+
if (ch->binds[i].transform != NULL) {
|
|
303
|
+
ScrDyn *args[1] = {data};
|
|
304
|
+
value = scr_dyn_call(ch->binds[i].transform, args, 1, "transform");
|
|
305
|
+
if (value == NULL) return prevs; /* pending; entered prefix restores */
|
|
306
|
+
} else {
|
|
307
|
+
value = scr_dyn_retain(data);
|
|
308
|
+
}
|
|
309
|
+
prevs[i] = scr_als_enter(ch->binds[i].als_id, value);
|
|
310
|
+
scr_dyn_release(value);
|
|
311
|
+
(*n_out)++;
|
|
312
|
+
}
|
|
313
|
+
return prevs;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
static void dc_stores_restore(ScrAlsCtx **prevs, size_t n) {
|
|
317
|
+
if (prevs == NULL) return;
|
|
318
|
+
for (size_t i = n; i > 0; i--) scr_als_restore(prevs[i - 1]);
|
|
319
|
+
free(prevs);
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
ScrDyn *scr_dc_chan_run_stores(double handle, ScrDyn *data, ScrDyn *fn, ScrDyn *this_arg,
|
|
323
|
+
ScrDyn *args) {
|
|
324
|
+
ScrDcChannel *ch = dc_of(handle);
|
|
325
|
+
size_t entered = 0;
|
|
326
|
+
ScrAlsCtx **prevs = dc_stores_enter(ch, data, &entered);
|
|
327
|
+
if (scr_exc_pending()) {
|
|
328
|
+
dc_stores_restore(prevs, entered);
|
|
329
|
+
return NULL;
|
|
330
|
+
}
|
|
331
|
+
scr_dc_publish(handle, data);
|
|
332
|
+
ScrDyn *r = NULL;
|
|
333
|
+
if (!scr_exc_pending()) {
|
|
334
|
+
size_t argc = args->kind == SCR_DYN_ARR ? args->v.arr.len : 0;
|
|
335
|
+
ScrDyn *const *items = args->kind == SCR_DYN_ARR ? args->v.arr.items : NULL;
|
|
336
|
+
scr_dyn_this_push_dyn(this_arg);
|
|
337
|
+
r = scr_dyn_call(fn, items, argc, "runStores");
|
|
338
|
+
scr_dyn_this_pop();
|
|
339
|
+
}
|
|
340
|
+
dc_stores_restore(prevs, entered);
|
|
341
|
+
return r;
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
/* ── TracingChannel ────────────────────────────────────────────────────
|
|
345
|
+
* A registry entry of five channel indexes (start/end/asyncStart/asyncEnd/
|
|
346
|
+
* error), handled as a 1-based f64 like Channel. The trace choreography
|
|
347
|
+
* lives here in C over the checked-dynamic tree: publishes stash the pending traced-call /
|
|
348
|
+
* subscriber exception in a ScrCaught box first (compiled subscriber
|
|
349
|
+
* bodies run with a CLEAR cell — a pending flag would unwind them at
|
|
350
|
+
* their first call) and re-raise after, so throws propagate exactly like
|
|
351
|
+
* scr_dc_publish's documented divergence. */
|
|
352
|
+
|
|
353
|
+
typedef struct {
|
|
354
|
+
size_t ch[5]; /* dc_channels indexes: start, end, asyncStart, asyncEnd, error */
|
|
355
|
+
} ScrDcTracing;
|
|
356
|
+
|
|
357
|
+
enum { DC_TC_START, DC_TC_END, DC_TC_ASYNC_START, DC_TC_ASYNC_END, DC_TC_ERROR };
|
|
358
|
+
|
|
359
|
+
static const char *const dc_trace_events[5] = {"start", "end", "asyncStart", "asyncEnd", "error"};
|
|
360
|
+
|
|
361
|
+
static ScrDcTracing *dc_tracings = NULL;
|
|
362
|
+
static size_t dc_ntracings = 0, dc_tracings_cap = 0;
|
|
363
|
+
static bool dc_tracings_teardown_registered = false;
|
|
364
|
+
|
|
365
|
+
static void scr_dc_tracings_teardown(void) {
|
|
366
|
+
free(dc_tracings);
|
|
367
|
+
dc_tracings = NULL;
|
|
368
|
+
dc_ntracings = dc_tracings_cap = 0;
|
|
369
|
+
}
|
|
370
|
+
|
|
371
|
+
static double dc_tracing_register(const size_t ch[5]) {
|
|
372
|
+
if (dc_ntracings == dc_tracings_cap) {
|
|
373
|
+
dc_tracings_cap = dc_tracings_cap ? dc_tracings_cap * 2 : 4;
|
|
374
|
+
dc_tracings = realloc(dc_tracings, dc_tracings_cap * sizeof *dc_tracings);
|
|
375
|
+
if (!dc_tracings) {
|
|
376
|
+
fputs("scriptc: out of memory\n", stderr);
|
|
377
|
+
abort();
|
|
378
|
+
}
|
|
379
|
+
}
|
|
380
|
+
if (!dc_tracings_teardown_registered) {
|
|
381
|
+
dc_tracings_teardown_registered = true;
|
|
382
|
+
atexit(scr_dc_tracings_teardown);
|
|
383
|
+
}
|
|
384
|
+
for (size_t i = 0; i < 5; i++) dc_tracings[dc_ntracings].ch[i] = ch[i];
|
|
385
|
+
dc_ntracings++;
|
|
386
|
+
return (double)dc_ntracings;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
static ScrDcTracing *dc_tc_of(double handle) {
|
|
390
|
+
size_t i = (size_t)handle;
|
|
391
|
+
if (i < 1 || i > dc_ntracings) {
|
|
392
|
+
fputs("scriptc: invalid tracingChannel handle\n", stderr);
|
|
393
|
+
abort();
|
|
394
|
+
}
|
|
395
|
+
return &dc_tracings[i - 1];
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
double scr_dc_tracing_channel(ScrStr *name) {
|
|
399
|
+
size_t ch[5];
|
|
400
|
+
for (size_t i = 0; i < 5; i++) {
|
|
401
|
+
/* "tracing:<name>:<event>" */
|
|
402
|
+
size_t evlen = strlen(dc_trace_events[i]);
|
|
403
|
+
size_t len = 8 + name->len + 1 + evlen;
|
|
404
|
+
char *buf = malloc(len + 1);
|
|
405
|
+
if (!buf) {
|
|
406
|
+
fputs("scriptc: out of memory\n", stderr);
|
|
407
|
+
abort();
|
|
408
|
+
}
|
|
409
|
+
memcpy(buf, "tracing:", 8);
|
|
410
|
+
memcpy(buf + 8, name->data, name->len);
|
|
411
|
+
buf[8 + name->len] = ':';
|
|
412
|
+
memcpy(buf + 8 + name->len + 1, dc_trace_events[i], evlen);
|
|
413
|
+
buf[len] = '\0';
|
|
414
|
+
ScrStr *s = scr_str_new(buf, len);
|
|
415
|
+
free(buf);
|
|
416
|
+
ch[i] = dc_intern(s);
|
|
417
|
+
scr_str_release(s);
|
|
418
|
+
}
|
|
419
|
+
return dc_tracing_register(ch);
|
|
420
|
+
}
|
|
421
|
+
|
|
422
|
+
double scr_dc_tracing_channel_of(double start, double end, double async_start,
|
|
423
|
+
double async_end, double error) {
|
|
424
|
+
size_t ch[5];
|
|
425
|
+
/* dc_of validates each handle (compiled code only holds minted ones). */
|
|
426
|
+
ch[DC_TC_START] = (size_t)(dc_of(start) - dc_channels);
|
|
427
|
+
ch[DC_TC_END] = (size_t)(dc_of(end) - dc_channels);
|
|
428
|
+
ch[DC_TC_ASYNC_START] = (size_t)(dc_of(async_start) - dc_channels);
|
|
429
|
+
ch[DC_TC_ASYNC_END] = (size_t)(dc_of(async_end) - dc_channels);
|
|
430
|
+
ch[DC_TC_ERROR] = (size_t)(dc_of(error) - dc_channels);
|
|
431
|
+
return dc_tracing_register(ch);
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
double scr_dc_tc_channel(double h, double idx) {
|
|
435
|
+
ScrDcTracing *tc = dc_tc_of(h);
|
|
436
|
+
size_t i = (size_t)idx;
|
|
437
|
+
if (i > 4) {
|
|
438
|
+
fputs("scriptc: invalid tracingChannel event index\n", stderr);
|
|
439
|
+
abort();
|
|
440
|
+
}
|
|
441
|
+
return (double)(tc->ch[i] + 1);
|
|
442
|
+
}
|
|
443
|
+
|
|
444
|
+
bool scr_dc_tc_has_subscribers(double h) {
|
|
445
|
+
ScrDcTracing *tc = dc_tc_of(h);
|
|
446
|
+
for (size_t i = 0; i < 5; i++) {
|
|
447
|
+
if (dc_chan_active(&dc_channels[tc->ch[i]])) return true;
|
|
448
|
+
}
|
|
449
|
+
return false;
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
void scr_dc_tc_subscribe(double h, ScrDyn *handlers) {
|
|
453
|
+
ScrDcTracing *tc = dc_tc_of(h);
|
|
454
|
+
for (size_t i = 0; i < 5; i++) {
|
|
455
|
+
ScrDyn *cb = scr_dyn_obj_get(handlers, dc_trace_events[i], strlen(dc_trace_events[i]));
|
|
456
|
+
if (cb == NULL || !scr_dyn_truthy(cb)) continue; /* falsy slots skip, Node */
|
|
457
|
+
scr_dc_chan_subscribe((double)(tc->ch[i] + 1), cb);
|
|
458
|
+
if (scr_exc_pending()) return; /* a non-function slot threw */
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
|
|
462
|
+
bool scr_dc_tc_unsubscribe(double h, ScrDyn *handlers) {
|
|
463
|
+
ScrDcTracing *tc = dc_tc_of(h);
|
|
464
|
+
bool done = true;
|
|
465
|
+
for (size_t i = 0; i < 5; i++) {
|
|
466
|
+
ScrDyn *cb = scr_dyn_obj_get(handlers, dc_trace_events[i], strlen(dc_trace_events[i]));
|
|
467
|
+
if (cb == NULL || !scr_dyn_truthy(cb)) continue;
|
|
468
|
+
if (!scr_dc_chan_unsubscribe((double)(tc->ch[i] + 1), cb)) done = false;
|
|
469
|
+
if (scr_exc_pending()) return false;
|
|
470
|
+
}
|
|
471
|
+
return done;
|
|
472
|
+
}
|
|
473
|
+
|
|
474
|
+
/* The pending exception as a dyn value for ctx.error: scr_caught_to_dyn
|
|
475
|
+
* (scr_json.c) — identity-preserving for dyn payloads and %Error
|
|
476
|
+
* instances (the identity-cached crossing: the stamped ctx.error compares
|
|
477
|
+
* reference-equal to the thrown error's other boxings). */
|
|
478
|
+
|
|
479
|
+
/* publish while an exception snapshot is parked: the cell is already
|
|
480
|
+
* clear (scr_exc_take), subscribers run normally; a SUBSCRIBER throw
|
|
481
|
+
* replaces the parked one (JS's finally-throw rule) — the caller checks
|
|
482
|
+
* pending after. */
|
|
483
|
+
static void dc_tc_publish(ScrDcTracing *tc, int ev, ScrDyn *ctx) {
|
|
484
|
+
scr_dc_publish((double)(tc->ch[ev] + 1), ctx);
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
/* The traced call: thisArg bound as the ambient receiver. Result +1 or
|
|
488
|
+
* NULL with the exception pending. */
|
|
489
|
+
static ScrDyn *dc_tc_apply(ScrDyn *fn, ScrDyn *this_arg, ScrDyn *const *items, size_t n,
|
|
490
|
+
const char *what) {
|
|
491
|
+
scr_dyn_this_push_dyn(this_arg);
|
|
492
|
+
ScrDyn *r = scr_dyn_call(fn, items, n, what);
|
|
493
|
+
scr_dyn_this_pop();
|
|
494
|
+
return r;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
/* The choreography body, run inside the start channel's entered stores
|
|
498
|
+
* (start.runStores — Node wraps the WHOLE body: the start publish, the
|
|
499
|
+
* traced call, and the finally end publish). */
|
|
500
|
+
static ScrDyn *dc_tc_trace_sync_body(ScrDcTracing *tc, ScrDyn *fn, ScrDyn *ctx,
|
|
501
|
+
ScrDyn *this_arg, ScrDyn *const *items, size_t argc) {
|
|
502
|
+
dc_tc_publish(tc, DC_TC_START, ctx);
|
|
503
|
+
if (scr_exc_pending()) return NULL;
|
|
504
|
+
ScrDyn *r = dc_tc_apply(fn, this_arg, items, argc, "traceSync");
|
|
505
|
+
if (r == NULL) {
|
|
506
|
+
/* context.error = err; error.publish; end.publish (finally); rethrow */
|
|
507
|
+
ScrCaught *c = scr_exc_take();
|
|
508
|
+
if (ctx->kind == SCR_DYN_OBJ) scr_dyn_obj_set(ctx, "error", 5, scr_caught_to_dyn(c));
|
|
509
|
+
dc_tc_publish(tc, DC_TC_ERROR, ctx);
|
|
510
|
+
if (!scr_exc_pending()) dc_tc_publish(tc, DC_TC_END, ctx);
|
|
511
|
+
if (!scr_exc_pending()) scr_rethrow(c);
|
|
512
|
+
scr_caught_release(c);
|
|
513
|
+
return NULL;
|
|
514
|
+
}
|
|
515
|
+
/* context.result = result; end.publish (finally); return result */
|
|
516
|
+
if (ctx->kind == SCR_DYN_OBJ) scr_dyn_obj_set(ctx, "result", 6, scr_dyn_retain(r));
|
|
517
|
+
dc_tc_publish(tc, DC_TC_END, ctx);
|
|
518
|
+
if (scr_exc_pending()) {
|
|
519
|
+
scr_dyn_release(r);
|
|
520
|
+
return NULL;
|
|
521
|
+
}
|
|
522
|
+
return r;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
ScrDyn *scr_dc_tc_trace_sync(double h, ScrDyn *fn, ScrDyn *ctx, ScrDyn *this_arg, ScrDyn *args) {
|
|
526
|
+
ScrDcTracing *tc = dc_tc_of(h);
|
|
527
|
+
size_t argc = args->kind == SCR_DYN_ARR ? args->v.arr.len : 0;
|
|
528
|
+
ScrDyn *const *items = args->kind == SCR_DYN_ARR ? args->v.arr.items : NULL;
|
|
529
|
+
if (!scr_dc_tc_has_subscribers(h)) {
|
|
530
|
+
return dc_tc_apply(fn, this_arg, items, argc, "traceSync");
|
|
531
|
+
}
|
|
532
|
+
/* start.runStores: the body runs inside the start channel's stores. */
|
|
533
|
+
size_t entered = 0;
|
|
534
|
+
ScrAlsCtx **prevs = dc_stores_enter(&dc_channels[tc->ch[DC_TC_START]], ctx, &entered);
|
|
535
|
+
ScrDyn *r = scr_exc_pending() ? NULL
|
|
536
|
+
: dc_tc_trace_sync_body(tc, fn, ctx, this_arg, items, argc);
|
|
537
|
+
dc_stores_restore(prevs, entered);
|
|
538
|
+
return r;
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
/* ── tracePromise ──────────────────────────────────────────────────────
|
|
542
|
+
* Node's choreography: start.runStores(ctx, body) where body calls the
|
|
543
|
+
* traced fn, wraps a non-promise result in a resolved promise, registers
|
|
544
|
+
* the resolve/reject reactions, and publishes end in the finally. The
|
|
545
|
+
* reactions run one microtask later: resolve stamps ctx.result and
|
|
546
|
+
* publishes asyncStart + asyncEnd (plain publishes — promises have no
|
|
547
|
+
* "after" point for a runStores, Node's comment); reject stamps
|
|
548
|
+
* ctx.error, publishes error then asyncStart + asyncEnd, and passes the
|
|
549
|
+
* rejection through. The returned promise is the REACTION's (a rejection
|
|
550
|
+
* nobody observes is the unhandled one, exactly Node's then-chain). A
|
|
551
|
+
* reaction fiber gives the microtask ordering for free. */
|
|
552
|
+
typedef struct {
|
|
553
|
+
ScrPromise *src, *dst; /* owned */
|
|
554
|
+
double h;
|
|
555
|
+
ScrDyn *ctx; /* owned */
|
|
556
|
+
} DcTracePromisePack;
|
|
557
|
+
|
|
558
|
+
static void dc_tp_entry(ScrFiber *self, void *ap) {
|
|
559
|
+
(void)self;
|
|
560
|
+
DcTracePromisePack *a = (DcTracePromisePack *)ap;
|
|
561
|
+
ScrDcTracing *tc = dc_tc_of(a->h);
|
|
562
|
+
ScrDyn *v = scr_await_dyn(a->src);
|
|
563
|
+
if (scr_exc_pending()) {
|
|
564
|
+
ScrCaught *c = scr_exc_take();
|
|
565
|
+
if (a->ctx->kind == SCR_DYN_OBJ) scr_dyn_obj_set(a->ctx, "error", 5, scr_caught_to_dyn(c));
|
|
566
|
+
dc_tc_publish(tc, DC_TC_ERROR, a->ctx);
|
|
567
|
+
if (!scr_exc_pending()) dc_tc_publish(tc, DC_TC_ASYNC_START, a->ctx);
|
|
568
|
+
if (!scr_exc_pending()) dc_tc_publish(tc, DC_TC_ASYNC_END, a->ctx);
|
|
569
|
+
/* A subscriber throw replaced the parked rejection (the finally-throw
|
|
570
|
+
* rule; Node routes it to triggerUncaughtException) — either way the
|
|
571
|
+
* pending exception is what dst rejects with. */
|
|
572
|
+
if (!scr_exc_pending()) scr_rethrow(c);
|
|
573
|
+
scr_promise_reject_pending(a->dst);
|
|
574
|
+
scr_caught_release(c);
|
|
575
|
+
} else {
|
|
576
|
+
if (a->ctx->kind == SCR_DYN_OBJ) scr_dyn_obj_set(a->ctx, "result", 6, scr_dyn_retain(v));
|
|
577
|
+
dc_tc_publish(tc, DC_TC_ASYNC_START, a->ctx);
|
|
578
|
+
if (!scr_exc_pending()) dc_tc_publish(tc, DC_TC_ASYNC_END, a->ctx);
|
|
579
|
+
if (scr_exc_pending()) {
|
|
580
|
+
scr_promise_reject_pending(a->dst); /* the subscriber throw */
|
|
581
|
+
scr_dyn_release(v);
|
|
582
|
+
} else {
|
|
583
|
+
scr_promise_fulfill_ref(a->dst, v, scr_dyn_retain_v, scr_dyn_release_v, NULL);
|
|
584
|
+
}
|
|
585
|
+
}
|
|
586
|
+
scr_dyn_release(a->ctx);
|
|
587
|
+
scr_promise_release(a->src);
|
|
588
|
+
scr_promise_release(a->dst);
|
|
589
|
+
free(a);
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
/* The traced result as a promise (+1): a dyn promise unwraps, anything
|
|
593
|
+
* else is PromiseResolve'd (Node converts non-promise returns; a raw
|
|
594
|
+
* non-promise return on the NO-SUBSCRIBER path wraps too — the lowering
|
|
595
|
+
* types the result Promise<unknown>, a wrap Node skips, SEMANTICS.md). */
|
|
596
|
+
static ScrPromise *dc_tp_promise_of(ScrDyn *r) {
|
|
597
|
+
ScrPromise *p = scr_dyn_promise_of(r);
|
|
598
|
+
if (p != NULL) return scr_promise_retain(p);
|
|
599
|
+
ScrPromise *fresh = scr_promise_new();
|
|
600
|
+
scr_promise_fulfill_ref(fresh, scr_dyn_retain(r), scr_dyn_retain_v, scr_dyn_release_v, NULL);
|
|
601
|
+
return fresh;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
ScrPromise *scr_dc_tc_trace_promise(double h, ScrDyn *fn, ScrDyn *ctx, ScrDyn *this_arg,
|
|
605
|
+
ScrDyn *args) {
|
|
606
|
+
ScrDcTracing *tc = dc_tc_of(h);
|
|
607
|
+
size_t argc = args->kind == SCR_DYN_ARR ? args->v.arr.len : 0;
|
|
608
|
+
ScrDyn *const *items = args->kind == SCR_DYN_ARR ? args->v.arr.items : NULL;
|
|
609
|
+
if (!scr_dc_tc_has_subscribers(h)) {
|
|
610
|
+
ScrDyn *r = dc_tc_apply(fn, this_arg, items, argc, "tracePromise");
|
|
611
|
+
if (r == NULL) return NULL;
|
|
612
|
+
ScrPromise *p = dc_tp_promise_of(r);
|
|
613
|
+
scr_dyn_release(r);
|
|
614
|
+
return p;
|
|
615
|
+
}
|
|
616
|
+
/* start.runStores: the start publish, the traced call, the reaction
|
|
617
|
+
* registration, and the finally end publish run inside the start
|
|
618
|
+
* channel's entered stores — the traced async body's fiber INHERITS
|
|
619
|
+
* them at spawn, so getStore() inside the traced function answers
|
|
620
|
+
* across its awaits (the run-stores suite's shape). The reactions
|
|
621
|
+
* publish OUTSIDE any store (promises have no "after" runStores point,
|
|
622
|
+
* Node's comment). */
|
|
623
|
+
size_t entered = 0;
|
|
624
|
+
ScrAlsCtx **prevs = dc_stores_enter(&dc_channels[tc->ch[DC_TC_START]], ctx, &entered);
|
|
625
|
+
ScrPromise *out = NULL;
|
|
626
|
+
if (!scr_exc_pending()) {
|
|
627
|
+
dc_tc_publish(tc, DC_TC_START, ctx);
|
|
628
|
+
if (!scr_exc_pending()) {
|
|
629
|
+
ScrDyn *r = dc_tc_apply(fn, this_arg, items, argc, "tracePromise");
|
|
630
|
+
if (r == NULL) {
|
|
631
|
+
/* ctx.error = err; error.publish; end.publish (finally); rethrow */
|
|
632
|
+
ScrCaught *c = scr_exc_take();
|
|
633
|
+
if (ctx->kind == SCR_DYN_OBJ) scr_dyn_obj_set(ctx, "error", 5, scr_caught_to_dyn(c));
|
|
634
|
+
dc_tc_publish(tc, DC_TC_ERROR, ctx);
|
|
635
|
+
if (!scr_exc_pending()) dc_tc_publish(tc, DC_TC_END, ctx);
|
|
636
|
+
if (!scr_exc_pending()) scr_rethrow(c);
|
|
637
|
+
scr_caught_release(c);
|
|
638
|
+
} else {
|
|
639
|
+
ScrPromise *src = dc_tp_promise_of(r);
|
|
640
|
+
scr_dyn_release(r);
|
|
641
|
+
DcTracePromisePack *a = malloc(sizeof *a);
|
|
642
|
+
if (!a) {
|
|
643
|
+
fputs("scriptc: out of memory\n", stderr);
|
|
644
|
+
abort();
|
|
645
|
+
}
|
|
646
|
+
a->src = src; /* the +1 moves in */
|
|
647
|
+
a->dst = scr_promise_new();
|
|
648
|
+
a->h = h;
|
|
649
|
+
a->ctx = scr_dyn_retain(ctx);
|
|
650
|
+
out = scr_promise_retain(a->dst);
|
|
651
|
+
ScrPromise *waiter = scr_async_spawn(dc_tp_entry, a);
|
|
652
|
+
scr_promise_release(waiter); /* the entry never rejects; nobody awaits it */
|
|
653
|
+
dc_tc_publish(tc, DC_TC_END, ctx); /* finally */
|
|
654
|
+
if (scr_exc_pending()) {
|
|
655
|
+
scr_promise_release(out);
|
|
656
|
+
out = NULL;
|
|
657
|
+
}
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
dc_stores_restore(prevs, entered);
|
|
662
|
+
return out;
|
|
663
|
+
}
|
|
664
|
+
|
|
665
|
+
/* traceCallback's wrapped callback: caps[0] = the tracing handle (f64),
|
|
666
|
+
* caps[1] = ctx (dyn), caps[2] = the original callback (dyn). Publishes
|
|
667
|
+
* error/result off the (err, res) convention, then asyncStart, runs the
|
|
668
|
+
* original with the ambient receiver and ALL arguments forwarded, then
|
|
669
|
+
* asyncEnd (finally — also on a callback throw). */
|
|
670
|
+
static ScrDyn *dc_tc_wrapped_cb(ScrClosure *clo, ScrDyn *const *cbargs, size_t cbargc) {
|
|
671
|
+
double h = scr_box_get_f64(clo->caps[0]);
|
|
672
|
+
ScrDcTracing *tc = dc_tc_of(h);
|
|
673
|
+
ScrDyn *ctx = scr_box_get_ref(clo->caps[1]);
|
|
674
|
+
ScrDyn *cb = scr_box_get_ref(clo->caps[2]);
|
|
675
|
+
ScrDyn *err = cbargc >= 1 ? cbargs[0] : NULL;
|
|
676
|
+
if (err != NULL && scr_dyn_truthy(err)) {
|
|
677
|
+
if (ctx->kind == SCR_DYN_OBJ) scr_dyn_obj_set(ctx, "error", 5, scr_dyn_retain(err));
|
|
678
|
+
dc_tc_publish(tc, DC_TC_ERROR, ctx);
|
|
679
|
+
} else if (ctx->kind == SCR_DYN_OBJ) {
|
|
680
|
+
ScrDyn *res = cbargc >= 2 ? scr_dyn_retain(cbargs[1]) : scr_dyn_undefined();
|
|
681
|
+
scr_dyn_obj_set(ctx, "result", 6, res);
|
|
682
|
+
}
|
|
683
|
+
ScrDyn *r = NULL;
|
|
684
|
+
if (!scr_exc_pending()) {
|
|
685
|
+
/* asyncStart.runStores: the asyncStart publish, the original
|
|
686
|
+
* callback, and the finally asyncEnd all run inside the asyncStart
|
|
687
|
+
* channel's entered stores (Node's manual context-recovery point). */
|
|
688
|
+
size_t entered = 0;
|
|
689
|
+
ScrAlsCtx **prevs = dc_stores_enter(&dc_channels[tc->ch[DC_TC_ASYNC_START]], ctx, &entered);
|
|
690
|
+
if (!scr_exc_pending()) dc_tc_publish(tc, DC_TC_ASYNC_START, ctx);
|
|
691
|
+
if (!scr_exc_pending()) {
|
|
692
|
+
ScrDyn *this_arg = scr_dyn_this_get();
|
|
693
|
+
scr_dyn_this_push_dyn(this_arg);
|
|
694
|
+
r = scr_dyn_call(cb, cbargs, cbargc, "callback");
|
|
695
|
+
scr_dyn_this_pop();
|
|
696
|
+
scr_dyn_release(this_arg);
|
|
697
|
+
/* finally: asyncEnd fires on the throw path too, exception parked */
|
|
698
|
+
if (r == NULL) {
|
|
699
|
+
ScrCaught *c = scr_exc_take();
|
|
700
|
+
dc_tc_publish(tc, DC_TC_ASYNC_END, ctx);
|
|
701
|
+
if (!scr_exc_pending()) scr_rethrow(c);
|
|
702
|
+
scr_caught_release(c);
|
|
703
|
+
} else {
|
|
704
|
+
dc_tc_publish(tc, DC_TC_ASYNC_END, ctx);
|
|
705
|
+
if (scr_exc_pending()) {
|
|
706
|
+
scr_dyn_release(r);
|
|
707
|
+
r = NULL;
|
|
708
|
+
}
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
dc_stores_restore(prevs, entered);
|
|
712
|
+
}
|
|
713
|
+
scr_dyn_release(ctx);
|
|
714
|
+
scr_dyn_release(cb);
|
|
715
|
+
return r;
|
|
716
|
+
}
|
|
717
|
+
|
|
718
|
+
ScrDyn *scr_dc_tc_trace_callback(double h, ScrDyn *fn, double position, ScrDyn *ctx,
|
|
719
|
+
ScrDyn *this_arg, ScrDyn *args) {
|
|
720
|
+
ScrDcTracing *tc = dc_tc_of(h);
|
|
721
|
+
size_t argc = args->kind == SCR_DYN_ARR ? args->v.arr.len : 0;
|
|
722
|
+
ScrDyn *const *items = args->kind == SCR_DYN_ARR ? args->v.arr.items : NULL;
|
|
723
|
+
if (!scr_dc_tc_has_subscribers(h)) {
|
|
724
|
+
return dc_tc_apply(fn, this_arg, items, argc, "traceCallback");
|
|
725
|
+
}
|
|
726
|
+
/* args.at(position), JS-style negative indexing */
|
|
727
|
+
double pos = position < 0 ? (double)argc + position : position;
|
|
728
|
+
size_t idx = (size_t)pos;
|
|
729
|
+
ScrDyn *cb = (pos >= 0 && idx < argc) ? items[idx] : NULL;
|
|
730
|
+
if (cb == NULL || cb->kind != SCR_DYN_FUNC) {
|
|
731
|
+
dc_throw_bad_fn_arg(cb, "callback");
|
|
732
|
+
return NULL;
|
|
733
|
+
}
|
|
734
|
+
/* Splice the wrapper in (a fresh argument vector; the dyn array is
|
|
735
|
+
* borrowed and Node's splice mutation is unobservable through it — the
|
|
736
|
+
* caller rebuilt it from the call site's arguments). */
|
|
737
|
+
ScrClosure *clo = scr_closure_new((void *)dc_tc_wrapped_cb, 3);
|
|
738
|
+
clo->caps[0] = scr_box_new(SCR_BOX_F64);
|
|
739
|
+
scr_box_set_f64(clo->caps[0], h);
|
|
740
|
+
clo->caps[1] = scr_box_new_obj(scr_dyn_retain_v, scr_dyn_release_v, NULL);
|
|
741
|
+
scr_box_set_ref(clo->caps[1], scr_dyn_retain(ctx));
|
|
742
|
+
clo->caps[2] = scr_box_new_obj(scr_dyn_retain_v, scr_dyn_release_v, NULL);
|
|
743
|
+
scr_box_set_ref(clo->caps[2], scr_dyn_retain(cb));
|
|
744
|
+
ScrDyn *wrapped = scr_dyn_new_func(clo, dc_tc_wrapped_cb, 2, "(err,res)", "wrappedCallback");
|
|
745
|
+
ScrDyn **call_items = NULL;
|
|
746
|
+
if (argc > 0) {
|
|
747
|
+
call_items = malloc(argc * sizeof *call_items);
|
|
748
|
+
if (!call_items) {
|
|
749
|
+
fputs("scriptc: out of memory\n", stderr);
|
|
750
|
+
abort();
|
|
751
|
+
}
|
|
752
|
+
for (size_t i = 0; i < argc; i++) call_items[i] = i == idx ? wrapped : items[i];
|
|
753
|
+
}
|
|
754
|
+
/* start.runStores: the start publish, the traced call, and the finally
|
|
755
|
+
* end publish run inside the start channel's entered stores. */
|
|
756
|
+
size_t entered = 0;
|
|
757
|
+
ScrAlsCtx **prevs = dc_stores_enter(&dc_channels[tc->ch[DC_TC_START]], ctx, &entered);
|
|
758
|
+
ScrDyn *r = NULL;
|
|
759
|
+
if (!scr_exc_pending()) {
|
|
760
|
+
dc_tc_publish(tc, DC_TC_START, ctx);
|
|
761
|
+
if (!scr_exc_pending()) {
|
|
762
|
+
r = dc_tc_apply(fn, this_arg, call_items, argc, "traceCallback");
|
|
763
|
+
if (r == NULL) {
|
|
764
|
+
ScrCaught *c = scr_exc_take();
|
|
765
|
+
if (ctx->kind == SCR_DYN_OBJ) scr_dyn_obj_set(ctx, "error", 5, scr_caught_to_dyn(c));
|
|
766
|
+
dc_tc_publish(tc, DC_TC_ERROR, ctx);
|
|
767
|
+
if (!scr_exc_pending()) dc_tc_publish(tc, DC_TC_END, ctx);
|
|
768
|
+
if (!scr_exc_pending()) scr_rethrow(c);
|
|
769
|
+
scr_caught_release(c);
|
|
770
|
+
} else {
|
|
771
|
+
/* No result stamping here — the traced fn's return value is not the
|
|
772
|
+
* traced RESULT (the callback's res is; wrappedCallback stamps it). */
|
|
773
|
+
dc_tc_publish(tc, DC_TC_END, ctx); /* finally */
|
|
774
|
+
if (scr_exc_pending()) {
|
|
775
|
+
scr_dyn_release(r);
|
|
776
|
+
r = NULL;
|
|
777
|
+
}
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
}
|
|
781
|
+
dc_stores_restore(prevs, entered);
|
|
782
|
+
free(call_items);
|
|
783
|
+
scr_dyn_release(wrapped);
|
|
784
|
+
return r;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
void scr_dc_publish(double handle, ScrDyn *message) {
|
|
788
|
+
ScrDcChannel *ch = dc_of(handle);
|
|
789
|
+
if (ch->nsubs == 0) return;
|
|
790
|
+
/* Snapshot: subscribe/unsubscribe during dispatch affect LATER
|
|
791
|
+
* publishes only (a self-unsubscribing subscriber's siblings still
|
|
792
|
+
* fire this round). */
|
|
793
|
+
size_t n = ch->nsubs;
|
|
794
|
+
ScrDyn **snap = malloc(n * sizeof *snap);
|
|
795
|
+
if (!snap) {
|
|
796
|
+
fputs("scriptc: out of memory\n", stderr);
|
|
797
|
+
abort();
|
|
798
|
+
}
|
|
799
|
+
for (size_t i = 0; i < n; i++) snap[i] = scr_dyn_retain(ch->subs[i]);
|
|
800
|
+
ScrDyn *namev = scr_dyn_new_str(ch->name);
|
|
801
|
+
bool threw = false;
|
|
802
|
+
for (size_t i = 0; i < n && !threw; i++) {
|
|
803
|
+
ScrDyn *args[2] = {message, namev};
|
|
804
|
+
ScrDyn *r = scr_dyn_call(snap[i], args, 2, "onMessage");
|
|
805
|
+
if (r == NULL) {
|
|
806
|
+
threw = true; /* pending exception propagates out of publish */
|
|
807
|
+
} else {
|
|
808
|
+
scr_dyn_release(r);
|
|
809
|
+
}
|
|
810
|
+
}
|
|
811
|
+
scr_dyn_release(namev);
|
|
812
|
+
for (size_t i = 0; i < n; i++) scr_dyn_release(snap[i]);
|
|
813
|
+
free(snap);
|
|
814
|
+
}
|