@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,803 @@
|
|
|
1
|
+
/* Checked-dynamic ASYNC surfaces (gated — native-toolchain.ts links this TU only when
|
|
2
|
+
* the IR carries the crossing libCalls or dyn dispatch: the scr_dc.c
|
|
3
|
+
* size-class precedent). Everything here rides scr_async.c's public
|
|
4
|
+
* machinery: the checked-dynamic tree-promise reaction helpers (.then/.catch/.finally
|
|
5
|
+
* over SCR_DYN_PROMISE, await of a checked-dynamic value, the
|
|
6
|
+
* `new Promise(setImmediate)` constructor), the AsyncLocalStorage API
|
|
7
|
+
* over the fiber-carried snapshots (the always-linked core keeps only
|
|
8
|
+
* the active slot + RC pair), the unhandled-rejection listener registry
|
|
9
|
+
* (installed into scr_report_unhandled_rejections' hook at
|
|
10
|
+
* registration), and the process-warning channel (emitWarning + the
|
|
11
|
+
* 'warning' listeners + Node's stderr report). */
|
|
12
|
+
#include "scr_runtime.h"
|
|
13
|
+
|
|
14
|
+
#include <stdio.h>
|
|
15
|
+
#include <stdlib.h>
|
|
16
|
+
#include <string.h>
|
|
17
|
+
|
|
18
|
+
#ifdef _WIN32
|
|
19
|
+
#include <process.h>
|
|
20
|
+
#define SCR_WARN_PID() ((long)_getpid())
|
|
21
|
+
#else
|
|
22
|
+
#include <unistd.h>
|
|
23
|
+
#define SCR_WARN_PID() ((long)getpid())
|
|
24
|
+
#endif
|
|
25
|
+
|
|
26
|
+
static void scr_ad_oom(void) {
|
|
27
|
+
fputs("scriptc: out of memory\n", stderr);
|
|
28
|
+
abort();
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/* Fresh snapshot storage (the layout lives in scr_runtime.h; the RC pair
|
|
32
|
+
* in scr_async.c — spawn/destroy touch it). */
|
|
33
|
+
static ScrAlsCtx *scr_als_ctx_alloc(size_t len) {
|
|
34
|
+
ScrAlsCtx *c = malloc(sizeof *c + len * sizeof(ScrAlsEntry));
|
|
35
|
+
if (!c) scr_ad_oom();
|
|
36
|
+
c->rc = 1;
|
|
37
|
+
c->len = len;
|
|
38
|
+
return c;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
static double scr_als_counter = 0;
|
|
42
|
+
|
|
43
|
+
/* Main-slot teardown (atexit, LIFO after scr_init's audit registration —
|
|
44
|
+
* the dc-registry precedent): a top-level enterWith leaves a context in
|
|
45
|
+
* the main slot at exit; release it before the RC audit counts. */
|
|
46
|
+
static void scr_als_teardown(void) {
|
|
47
|
+
/* atexit runs on the main context — the active slot IS main's. */
|
|
48
|
+
scr_als_ctx_release(*scr_als_active);
|
|
49
|
+
*scr_als_active = NULL;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
double scr_als_new(void) {
|
|
53
|
+
static bool teardown_registered = false;
|
|
54
|
+
if (!teardown_registered) {
|
|
55
|
+
teardown_registered = true;
|
|
56
|
+
atexit(scr_als_teardown);
|
|
57
|
+
}
|
|
58
|
+
return ++scr_als_counter;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
ScrDyn *scr_als_get(double id) {
|
|
62
|
+
const ScrAlsCtx *c = *scr_als_active;
|
|
63
|
+
if (c) {
|
|
64
|
+
for (size_t i = 0; i < c->len; i++) {
|
|
65
|
+
if (c->entries[i].id == id) return scr_dyn_retain(c->entries[i].value);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return scr_dyn_retain(scr_dyn_undefined());
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* Fresh snapshot with (id → value) replaced-or-appended (value borrowed,
|
|
72
|
+
* retained in), installed as the active context; the PREVIOUS snapshot
|
|
73
|
+
* returns (ownership moves out) for scr_als_restore. */
|
|
74
|
+
ScrAlsCtx *scr_als_enter(double id, ScrDyn *value) {
|
|
75
|
+
ScrAlsCtx *prev = *scr_als_active;
|
|
76
|
+
size_t n = prev ? prev->len : 0;
|
|
77
|
+
bool have = false;
|
|
78
|
+
for (size_t i = 0; i < n; i++) {
|
|
79
|
+
if (prev->entries[i].id == id) { have = true; break; }
|
|
80
|
+
}
|
|
81
|
+
ScrAlsCtx *next = scr_als_ctx_alloc(have ? n : n + 1);
|
|
82
|
+
size_t w = 0;
|
|
83
|
+
for (size_t i = 0; i < n; i++) {
|
|
84
|
+
if (prev->entries[i].id == id) continue;
|
|
85
|
+
next->entries[w].id = prev->entries[i].id;
|
|
86
|
+
next->entries[w].value = scr_dyn_retain(prev->entries[i].value);
|
|
87
|
+
w++;
|
|
88
|
+
}
|
|
89
|
+
next->entries[w].id = id;
|
|
90
|
+
next->entries[w].value = scr_dyn_retain(value);
|
|
91
|
+
*scr_als_active = next;
|
|
92
|
+
return prev; /* ownership moves to the caller */
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/* The exit() arm: the id REMOVED from the snapshot. */
|
|
96
|
+
ScrAlsCtx *scr_als_enter_absent(double id) {
|
|
97
|
+
ScrAlsCtx *prev = *scr_als_active;
|
|
98
|
+
size_t n = prev ? prev->len : 0;
|
|
99
|
+
size_t keep = 0;
|
|
100
|
+
for (size_t i = 0; i < n; i++) {
|
|
101
|
+
if (prev->entries[i].id != id) keep++;
|
|
102
|
+
}
|
|
103
|
+
ScrAlsCtx *next = scr_als_ctx_alloc(keep);
|
|
104
|
+
size_t w = 0;
|
|
105
|
+
for (size_t i = 0; i < n; i++) {
|
|
106
|
+
if (prev->entries[i].id == id) continue;
|
|
107
|
+
next->entries[w].id = prev->entries[i].id;
|
|
108
|
+
next->entries[w].value = scr_dyn_retain(prev->entries[i].value);
|
|
109
|
+
w++;
|
|
110
|
+
}
|
|
111
|
+
*scr_als_active = next;
|
|
112
|
+
return prev;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
void scr_als_restore(ScrAlsCtx *prev) {
|
|
116
|
+
scr_als_ctx_release(*scr_als_active);
|
|
117
|
+
*scr_als_active = prev; /* ownership moves back in */
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
void scr_als_enter_with(double id, ScrDyn *value) {
|
|
121
|
+
ScrAlsCtx *prev = scr_als_enter(id, value);
|
|
122
|
+
scr_als_ctx_release(prev); /* no restore point — Node's enterWith */
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
void scr_als_disable(double id) {
|
|
126
|
+
ScrAlsCtx *prev = scr_als_enter_absent(id);
|
|
127
|
+
scr_als_ctx_release(prev); /* minimal core: cleared for the current context */
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/* run(store, fn, ...args) / exit(fn, ...args): enter (or clear), call the
|
|
131
|
+
* dyn function with the forwarded arguments, restore — the finally, so a
|
|
132
|
+
* throw still restores before propagating. Result +1 or NULL pending. */
|
|
133
|
+
static ScrDyn *scr_als_call_in(ScrAlsCtx *prev, ScrDyn *fn, ScrDyn *args) {
|
|
134
|
+
size_t argc = args->kind == SCR_DYN_ARR ? args->v.arr.len : 0;
|
|
135
|
+
ScrDyn *const *items = args->kind == SCR_DYN_ARR ? args->v.arr.items : NULL;
|
|
136
|
+
ScrDyn *r = scr_dyn_call(fn, items, argc, "callback");
|
|
137
|
+
scr_als_restore(prev);
|
|
138
|
+
return r;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
ScrDyn *scr_als_run(double id, ScrDyn *value, ScrDyn *fn, ScrDyn *args) {
|
|
142
|
+
return scr_als_call_in(scr_als_enter(id, value), fn, args);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
ScrDyn *scr_als_exit_run(double id, ScrDyn *fn, ScrDyn *args) {
|
|
146
|
+
return scr_als_call_in(scr_als_enter_absent(id), fn, args);
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/* The two rejection-event registries share one shape: listeners with a
|
|
150
|
+
* `once` flag (auto-removed after one delivery, Node's once) and
|
|
151
|
+
* identity-based removal (the offWarning stance). */
|
|
152
|
+
typedef struct {
|
|
153
|
+
size_t refs;
|
|
154
|
+
bool fired;
|
|
155
|
+
} ScrRejState;
|
|
156
|
+
|
|
157
|
+
typedef struct {
|
|
158
|
+
ScrDyn *fn;
|
|
159
|
+
bool once;
|
|
160
|
+
uint64_t id;
|
|
161
|
+
ScrRejState *state; /* snapshots share the once-fired state */
|
|
162
|
+
} ScrRejListener;
|
|
163
|
+
|
|
164
|
+
static void scr_rej_release(ScrRejListener *l) {
|
|
165
|
+
scr_dyn_release(l->fn);
|
|
166
|
+
if (--l->state->refs == 0) free(l->state);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
static uint64_t scr_rej_id = 0;
|
|
170
|
+
|
|
171
|
+
static ScrRejListener *scr_urj_listeners = NULL;
|
|
172
|
+
static size_t scr_nurj = 0, scr_urj_cap = 0;
|
|
173
|
+
static ScrRejListener *scr_rjh_listeners = NULL;
|
|
174
|
+
static size_t scr_nrjh = 0, scr_rjh_cap = 0;
|
|
175
|
+
|
|
176
|
+
static void scr_urj_teardown(void) {
|
|
177
|
+
for (size_t i = 0; i < scr_nurj; i++) scr_rej_release(&scr_urj_listeners[i]);
|
|
178
|
+
free(scr_urj_listeners);
|
|
179
|
+
scr_urj_listeners = NULL;
|
|
180
|
+
scr_nurj = scr_urj_cap = 0;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
static void scr_rjh_teardown(void) {
|
|
184
|
+
for (size_t i = 0; i < scr_nrjh; i++) scr_rej_release(&scr_rjh_listeners[i]);
|
|
185
|
+
free(scr_rjh_listeners);
|
|
186
|
+
scr_rjh_listeners = NULL;
|
|
187
|
+
scr_nrjh = scr_rjh_cap = 0;
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
static bool scr_urj_dispatch(ScrPromise *p);
|
|
191
|
+
static void scr_rjh_dispatch(ScrPromise *p);
|
|
192
|
+
|
|
193
|
+
/* Node's ERR_INVALID_ARG_TYPE for a non-function listener; true when the
|
|
194
|
+
* value is fine. */
|
|
195
|
+
static bool scr_rej_check_listener(ScrDyn *fn) {
|
|
196
|
+
if (fn->kind == SCR_DYN_FUNC) return true;
|
|
197
|
+
const char *msg = "The \"listener\" argument must be of type function";
|
|
198
|
+
scr_throw_error_msg_code(SCR_ERR_TYPE, msg, strlen(msg), "ERR_INVALID_ARG_TYPE");
|
|
199
|
+
return false;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
static void scr_rej_push(ScrRejListener **list, size_t *n, size_t *cap, ScrDyn *fn, bool once) {
|
|
203
|
+
if (*n == *cap) {
|
|
204
|
+
*cap = *cap ? *cap * 2 : 4;
|
|
205
|
+
*list = realloc(*list, *cap * sizeof **list);
|
|
206
|
+
if (!*list) scr_ad_oom();
|
|
207
|
+
}
|
|
208
|
+
ScrRejState *state = calloc(1, sizeof *state);
|
|
209
|
+
if (!state) scr_ad_oom();
|
|
210
|
+
state->refs = 1;
|
|
211
|
+
(*list)[(*n)++] = (ScrRejListener){scr_dyn_retain(fn), once, ++scr_rej_id, state};
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
static void scr_rej_remove(ScrRejListener *list, size_t *n, ScrDyn *fn) {
|
|
215
|
+
for (size_t left = *n; left > 0; left--) {
|
|
216
|
+
size_t i = left - 1;
|
|
217
|
+
ScrDyn *l = list[i].fn;
|
|
218
|
+
bool same = l == fn || (l->kind == SCR_DYN_FUNC && fn->kind == SCR_DYN_FUNC &&
|
|
219
|
+
scr_dyn_strict_eq(l, fn));
|
|
220
|
+
if (same) {
|
|
221
|
+
scr_rej_release(&list[i]);
|
|
222
|
+
memmove(list + i, list + i + 1, (*n - i - 1) * sizeof *list);
|
|
223
|
+
(*n)--;
|
|
224
|
+
return;
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
/* The hooks arm exactly while their registry is non-empty: Node with
|
|
230
|
+
* every listener removed (off, or once-consumed) reverts to the default
|
|
231
|
+
* report/silence, and the report loop consults the hook per promise. */
|
|
232
|
+
static void scr_urj_sync_hook(void) {
|
|
233
|
+
scr_urj_deliver_fn = scr_nurj > 0 ? scr_urj_dispatch : NULL;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
static void scr_rjh_sync_hook(void) {
|
|
237
|
+
scr_rjh_notify_fn = scr_nrjh > 0 ? scr_rjh_dispatch : NULL;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
void scr_process_on_unhandled_rejection(ScrDyn *fn, bool once) {
|
|
241
|
+
if (!scr_rej_check_listener(fn)) return;
|
|
242
|
+
static bool teardown_armed = false;
|
|
243
|
+
if (!teardown_armed) {
|
|
244
|
+
teardown_armed = true;
|
|
245
|
+
atexit(scr_urj_teardown);
|
|
246
|
+
}
|
|
247
|
+
scr_rej_push(&scr_urj_listeners, &scr_nurj, &scr_urj_cap, fn, once);
|
|
248
|
+
scr_urj_sync_hook();
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
void scr_process_off_unhandled_rejection(ScrDyn *fn) {
|
|
252
|
+
scr_rej_remove(scr_urj_listeners, &scr_nurj, fn);
|
|
253
|
+
scr_urj_sync_hook();
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
void scr_process_on_rejection_handled(ScrDyn *fn, bool once) {
|
|
257
|
+
if (!scr_rej_check_listener(fn)) return;
|
|
258
|
+
static bool teardown_armed = false;
|
|
259
|
+
if (!teardown_armed) {
|
|
260
|
+
teardown_armed = true;
|
|
261
|
+
atexit(scr_rjh_teardown);
|
|
262
|
+
}
|
|
263
|
+
scr_rej_push(&scr_rjh_listeners, &scr_nrjh, &scr_rjh_cap, fn, once);
|
|
264
|
+
scr_rjh_sync_hook();
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
void scr_process_off_rejection_handled(ScrDyn *fn) {
|
|
268
|
+
scr_rej_remove(scr_rjh_listeners, &scr_nrjh, fn);
|
|
269
|
+
scr_rjh_sync_hook();
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
/* Snapshot dispatch preserves EventEmitter mutation rules: removals do
|
|
273
|
+
* not skip a pending listener, additions wait for the next delivery, and
|
|
274
|
+
* once entries leave the live list before invoking user code. */
|
|
275
|
+
static bool scr_rej_fire(ScrRejListener **list, size_t *n, ScrDyn **args, size_t argc) {
|
|
276
|
+
size_t count = *n;
|
|
277
|
+
ScrRejListener *snap = count ? malloc(count * sizeof *snap) : NULL;
|
|
278
|
+
if (count && !snap) scr_ad_oom();
|
|
279
|
+
for (size_t i = 0; i < count; i++) {
|
|
280
|
+
snap[i] = (*list)[i];
|
|
281
|
+
scr_dyn_retain(snap[i].fn);
|
|
282
|
+
snap[i].state->refs++;
|
|
283
|
+
}
|
|
284
|
+
bool ok = true;
|
|
285
|
+
for (size_t i = 0; i < count; i++) {
|
|
286
|
+
if (ok && !(snap[i].once && snap[i].state->fired)) {
|
|
287
|
+
if (snap[i].once) {
|
|
288
|
+
snap[i].state->fired = true;
|
|
289
|
+
for (size_t j = 0; j < *n; j++) {
|
|
290
|
+
if ((*list)[j].id == snap[i].id) {
|
|
291
|
+
scr_rej_release(&(*list)[j]);
|
|
292
|
+
memmove(*list + j, *list + j + 1, (*n - j - 1) * sizeof **list);
|
|
293
|
+
(*n)--;
|
|
294
|
+
break;
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
}
|
|
298
|
+
ScrDyn *r = scr_dyn_call(snap[i].fn, args, argc, "listener");
|
|
299
|
+
ok = !scr_exc_pending();
|
|
300
|
+
scr_dyn_release(r);
|
|
301
|
+
}
|
|
302
|
+
scr_rej_release(&snap[i]);
|
|
303
|
+
}
|
|
304
|
+
free(snap);
|
|
305
|
+
return ok;
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
/* Uncaught exception listeners share the checked-dynamic callback ABI.
|
|
309
|
+
* Monitors run first but do not handle the exception by themselves. */
|
|
310
|
+
static ScrRejListener *scr_uncaught_ls[2];
|
|
311
|
+
static size_t scr_uncaught_n[2], scr_uncaught_cap[2];
|
|
312
|
+
static int scr_uncaught_dispatch(bool from_promise);
|
|
313
|
+
|
|
314
|
+
static void scr_uncaught_sync_hook(void) {
|
|
315
|
+
scr_uncaught_exception_hook = (scr_uncaught_n[0] || scr_uncaught_n[1]) ? scr_uncaught_dispatch : NULL;
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
static void scr_uncaught_teardown(void) {
|
|
319
|
+
for (size_t k = 0; k < 2; k++) {
|
|
320
|
+
for (size_t i = 0; i < scr_uncaught_n[k]; i++) scr_rej_release(&scr_uncaught_ls[k][i]);
|
|
321
|
+
free(scr_uncaught_ls[k]);
|
|
322
|
+
scr_uncaught_ls[k] = NULL;
|
|
323
|
+
scr_uncaught_n[k] = scr_uncaught_cap[k] = 0;
|
|
324
|
+
}
|
|
325
|
+
scr_uncaught_sync_hook();
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
void scr_process_on_uncaught_exception(ScrDyn *fn, bool once, bool monitor) {
|
|
329
|
+
if (!scr_rej_check_listener(fn)) return;
|
|
330
|
+
static bool armed = false;
|
|
331
|
+
if (!armed) { armed = true; atexit(scr_uncaught_teardown); }
|
|
332
|
+
size_t k = monitor ? 1 : 0;
|
|
333
|
+
scr_rej_push(&scr_uncaught_ls[k], &scr_uncaught_n[k], &scr_uncaught_cap[k], fn, once);
|
|
334
|
+
scr_uncaught_sync_hook();
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
void scr_process_off_uncaught_exception(ScrDyn *fn, bool monitor) {
|
|
338
|
+
if (!scr_rej_check_listener(fn)) return;
|
|
339
|
+
size_t k = monitor ? 1 : 0;
|
|
340
|
+
scr_rej_remove(scr_uncaught_ls[k], &scr_uncaught_n[k], fn);
|
|
341
|
+
scr_uncaught_sync_hook();
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
static int scr_uncaught_dispatch(bool from_promise) {
|
|
345
|
+
ScrCaught *caught = scr_exc_take();
|
|
346
|
+
ScrDyn *error = scr_caught_to_dyn(caught);
|
|
347
|
+
const char *origin = from_promise ? "unhandledRejection" : "uncaughtException";
|
|
348
|
+
ScrStr *text = scr_str_new(origin, strlen(origin));
|
|
349
|
+
ScrDyn *args[2] = {error, scr_dyn_new_str(text)};
|
|
350
|
+
scr_str_release(text);
|
|
351
|
+
bool ok = scr_rej_fire(&scr_uncaught_ls[1], &scr_uncaught_n[1], args, 2);
|
|
352
|
+
bool handled = ok && scr_uncaught_n[0] > 0;
|
|
353
|
+
if (handled) ok = scr_rej_fire(&scr_uncaught_ls[0], &scr_uncaught_n[0], args, 2);
|
|
354
|
+
scr_dyn_release(args[0]);
|
|
355
|
+
scr_dyn_release(args[1]);
|
|
356
|
+
scr_uncaught_sync_hook();
|
|
357
|
+
if (ok && !handled) scr_rethrow(caught);
|
|
358
|
+
scr_caught_release(caught);
|
|
359
|
+
return !ok ? -1 : handled ? 1 : 0;
|
|
360
|
+
}
|
|
361
|
+
|
|
362
|
+
/* Dispatch one unhandled rejection to the registered listeners —
|
|
363
|
+
* (reason, promise), Node's signature. A listener throw is an uncaught
|
|
364
|
+
* exception (Node crashes there too): the caller prints it and exits 1.
|
|
365
|
+
* A once-consumed-to-empty registry disarms the hook on the way out, so
|
|
366
|
+
* the report's NEXT promise takes the default print — Node's
|
|
367
|
+
* listener-less behavior. */
|
|
368
|
+
static bool scr_urj_dispatch(ScrPromise *p) {
|
|
369
|
+
ScrDyn *reason = scr_promise_reason_dyn(p);
|
|
370
|
+
ScrDyn *boxed = scr_dyn_new_promise(p);
|
|
371
|
+
ScrDyn *args[2] = {reason, boxed};
|
|
372
|
+
bool ok = scr_rej_fire(&scr_urj_listeners, &scr_nurj, args, 2);
|
|
373
|
+
scr_dyn_release(reason);
|
|
374
|
+
scr_dyn_release(boxed);
|
|
375
|
+
scr_urj_sync_hook();
|
|
376
|
+
return ok;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
/* 'rejectionHandled' delivery — (promise), Node's payload. A listener
|
|
380
|
+
* throw propagates as a pending exception through the attach site. */
|
|
381
|
+
static void scr_rjh_dispatch(ScrPromise *p) {
|
|
382
|
+
ScrDyn *boxed = scr_dyn_new_promise(p);
|
|
383
|
+
(void)scr_rej_fire(&scr_rjh_listeners, &scr_nrjh, &boxed, 1);
|
|
384
|
+
scr_dyn_release(boxed);
|
|
385
|
+
scr_rjh_sync_hook(); /* a once-consumed-to-empty registry disarms */
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
/* `new Promise(setImmediate)` (the Node-suite early-exit shape): the
|
|
389
|
+
* executor IS setImmediate, so resolve rides the immediate queue — a
|
|
390
|
+
* fresh promise an armed immediate fulfills with the undefined dyn value
|
|
391
|
+
* (the executor's resolve receives no argument; the dyn payload keeps
|
|
392
|
+
* promise<dyn> awaiters honest and void awaiters ignore it). +1. */
|
|
393
|
+
static void scr_imm_promise_thunk(ScrClosure *self) {
|
|
394
|
+
ScrPromise *p = (ScrPromise *)scr_box_get_ref(self->caps[0]);
|
|
395
|
+
scr_promise_fulfill_ref(p, scr_dyn_retain(scr_dyn_undefined()), scr_dyn_retain_v,
|
|
396
|
+
scr_dyn_release_v, NULL);
|
|
397
|
+
scr_promise_release(p);
|
|
398
|
+
}
|
|
399
|
+
|
|
400
|
+
ScrPromise *scr_immediate_promise(void) {
|
|
401
|
+
ScrPromise *p = scr_promise_new();
|
|
402
|
+
ScrClosure *cb = scr_closure_new((void *)scr_imm_promise_thunk, 1);
|
|
403
|
+
cb->caps[0] = scr_box_new_obj(scr_promise_retain_v, scr_promise_release_v, NULL);
|
|
404
|
+
scr_box_set_ref(cb->caps[0], scr_promise_retain(p));
|
|
405
|
+
scr_set_immediate(cb); /* ownership of cb moves in */
|
|
406
|
+
return p;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
/* ── .then/.catch/.finally over dyn promises (scr_dyn_invoke's promise
|
|
410
|
+
* arm and the dc tracePromise reactions) ──────────────────────────────
|
|
411
|
+
* One reaction fiber per registration: it awaits src (the settled-await
|
|
412
|
+
* microtask hop keeps JS's ordering — reactions never run synchronously
|
|
413
|
+
* inside settle), runs the checked-dynamic tree handler, and settles dst. A handler
|
|
414
|
+
* returning a dyn promise is ADOPTED (awaited in a loop, like JS's
|
|
415
|
+
* resolve). Non-callable handlers pass the settlement through (JS's
|
|
416
|
+
* PromisePrototypeThen over non-function reactions). The fiber's own
|
|
417
|
+
* promise is dropped unobserved — the entry consumes every exception
|
|
418
|
+
* into dst, so it can never reject. */
|
|
419
|
+
typedef struct {
|
|
420
|
+
ScrPromise *src, *dst; /* owned */
|
|
421
|
+
ScrDyn *onf, *onr, *onfin; /* owned or NULL */
|
|
422
|
+
} ScrDynThenPack;
|
|
423
|
+
|
|
424
|
+
static void scr_dyn_then_entry(ScrFiber *self, void *ap) {
|
|
425
|
+
(void)self;
|
|
426
|
+
ScrDynThenPack *a = (ScrDynThenPack *)ap;
|
|
427
|
+
ScrDyn *v = scr_await_dyn(a->src);
|
|
428
|
+
bool rejected = scr_exc_pending();
|
|
429
|
+
ScrCaught *c = rejected ? scr_exc_take() : NULL;
|
|
430
|
+
ScrDyn *handler = a->onfin ? a->onfin : (rejected ? a->onr : a->onf);
|
|
431
|
+
if (handler != NULL && handler->kind == SCR_DYN_FUNC) {
|
|
432
|
+
ScrDyn *arg = NULL;
|
|
433
|
+
if (a->onfin == NULL) arg = rejected ? scr_caught_to_dyn(c) : scr_dyn_retain(v);
|
|
434
|
+
ScrDyn *r = scr_dyn_call(handler, arg ? &arg : NULL, arg ? 1 : 0, "handler");
|
|
435
|
+
scr_dyn_release(arg);
|
|
436
|
+
if (r == NULL) {
|
|
437
|
+
/* The handler threw: dst rejects with that. */
|
|
438
|
+
scr_promise_reject_pending(a->dst);
|
|
439
|
+
} else if (a->onfin != NULL) {
|
|
440
|
+
/* finally: the callback's value is dropped and the source
|
|
441
|
+
* settlement passes through (JS — a finally callback returning a
|
|
442
|
+
* promise would delay adoption; that refinement waits for a use). */
|
|
443
|
+
scr_dyn_release(r);
|
|
444
|
+
if (rejected) {
|
|
445
|
+
scr_rethrow(c);
|
|
446
|
+
scr_promise_reject_pending(a->dst);
|
|
447
|
+
} else {
|
|
448
|
+
scr_promise_fulfill_ref(a->dst, scr_dyn_retain(v), scr_dyn_retain_v, scr_dyn_release_v, NULL);
|
|
449
|
+
}
|
|
450
|
+
} else {
|
|
451
|
+
/* Adopt dyn-promise results (JS's resolve walk). */
|
|
452
|
+
while (r != NULL && r->kind == SCR_DYN_PROMISE) {
|
|
453
|
+
ScrDyn *inner = scr_await_dyn(r->v.promise);
|
|
454
|
+
scr_dyn_release(r);
|
|
455
|
+
r = inner;
|
|
456
|
+
if (scr_exc_pending()) {
|
|
457
|
+
scr_promise_reject_pending(a->dst);
|
|
458
|
+
break;
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
if (r != NULL) {
|
|
462
|
+
scr_promise_fulfill_ref(a->dst, r, scr_dyn_retain_v, scr_dyn_release_v, NULL);
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
} else if (rejected) {
|
|
466
|
+
scr_rethrow(c);
|
|
467
|
+
scr_promise_reject_pending(a->dst);
|
|
468
|
+
} else {
|
|
469
|
+
scr_promise_fulfill_ref(a->dst, scr_dyn_retain(v), scr_dyn_retain_v, scr_dyn_release_v, NULL);
|
|
470
|
+
}
|
|
471
|
+
scr_caught_release(c);
|
|
472
|
+
scr_dyn_release(v);
|
|
473
|
+
scr_promise_release(a->src);
|
|
474
|
+
scr_promise_release(a->dst);
|
|
475
|
+
scr_dyn_release(a->onf);
|
|
476
|
+
scr_dyn_release(a->onr);
|
|
477
|
+
scr_dyn_release(a->onfin);
|
|
478
|
+
free(a);
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
ScrDyn *scr_dyn_promise_then(ScrPromise *src, ScrDyn *onf, ScrDyn *onr, ScrDyn *onfin) {
|
|
482
|
+
/* A rejection HANDLER marks the source handled at attach (Node's
|
|
483
|
+
* moment; the reaction fiber's await re-marks harmlessly) — this is
|
|
484
|
+
* also what lets a .catch inside an 'unhandledRejection' listener fire
|
|
485
|
+
* 'rejectionHandled' immediately at the attach point. */
|
|
486
|
+
if (onr != NULL) scr_promise_mark_handled(src);
|
|
487
|
+
ScrDynThenPack *a = malloc(sizeof *a);
|
|
488
|
+
if (!a) scr_ad_oom();
|
|
489
|
+
a->src = scr_promise_retain(src);
|
|
490
|
+
a->dst = scr_promise_new();
|
|
491
|
+
a->onf = onf ? scr_dyn_retain(onf) : NULL;
|
|
492
|
+
a->onr = onr ? scr_dyn_retain(onr) : NULL;
|
|
493
|
+
a->onfin = onfin ? scr_dyn_retain(onfin) : NULL;
|
|
494
|
+
ScrDyn *boxed = scr_dyn_new_promise(a->dst);
|
|
495
|
+
ScrPromise *waiter = scr_async_spawn(scr_dyn_then_entry, a);
|
|
496
|
+
scr_promise_release(waiter); /* the entry never rejects; nobody awaits it */
|
|
497
|
+
return boxed;
|
|
498
|
+
}
|
|
499
|
+
/* `await v` where v is a CHECKED-DYNAMIC value: a dyn promise adopts
|
|
500
|
+
* (the boxed promise awaits — rejections re-throw); every other kind is
|
|
501
|
+
* JS's await-of-a-non-thenable — one microtask hop, the value itself
|
|
502
|
+
* (+1). Thenable ADOPTION (a plain object carrying a then method) is not
|
|
503
|
+
* modeled — SEMANTICS.md. */
|
|
504
|
+
ScrDyn *scr_await_dyn_value(ScrDyn *v) {
|
|
505
|
+
if (v->kind == SCR_DYN_PROMISE) return scr_await_dyn(v->v.promise);
|
|
506
|
+
scr_await_hop();
|
|
507
|
+
return scr_dyn_retain(v);
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
/* ── process warnings (emitWarning + the 'warning' event) ─────────────
|
|
511
|
+
* Gated with the rest of this TU (a deprecation-emitting unit's gate
|
|
512
|
+
* must imply the dynAsync link). Listeners are dyn functions; emission
|
|
513
|
+
* is SYNCHRONOUS at the
|
|
514
|
+
* call (Node defers a tick through nextTick — the MaxListenersExceeded
|
|
515
|
+
* precedent, SEMANTICS.md 138) and the default stderr report always
|
|
516
|
+
* prints (Node's own bootstrap listener; a compiled binary has no
|
|
517
|
+
* --no-warnings). The warning VALUE is the dyn error encoding built over
|
|
518
|
+
* an ScrError (identity-cached, so a listener comparing two deliveries
|
|
519
|
+
* of one warning sees one object); a string `detail` joins the dyn node
|
|
520
|
+
* and the report's second line, exactly Node. */
|
|
521
|
+
static ScrDyn **scr_warn_listeners = NULL;
|
|
522
|
+
static size_t scr_nwarn = 0, scr_warn_cap = 0;
|
|
523
|
+
|
|
524
|
+
static void scr_warn_teardown(void) {
|
|
525
|
+
for (size_t i = 0; i < scr_nwarn; i++) scr_dyn_release(scr_warn_listeners[i]);
|
|
526
|
+
free(scr_warn_listeners);
|
|
527
|
+
scr_warn_listeners = NULL;
|
|
528
|
+
scr_nwarn = scr_warn_cap = 0;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
void scr_process_on_warning(ScrDyn *fn) {
|
|
532
|
+
if (fn->kind != SCR_DYN_FUNC) {
|
|
533
|
+
const char *msg = "The \"listener\" argument must be of type function";
|
|
534
|
+
scr_throw_error_msg_code(SCR_ERR_TYPE, msg, strlen(msg), "ERR_INVALID_ARG_TYPE");
|
|
535
|
+
return;
|
|
536
|
+
}
|
|
537
|
+
if (scr_nwarn == scr_warn_cap) {
|
|
538
|
+
scr_warn_cap = scr_warn_cap ? scr_warn_cap * 2 : 4;
|
|
539
|
+
scr_warn_listeners = realloc(scr_warn_listeners, scr_warn_cap * sizeof *scr_warn_listeners);
|
|
540
|
+
if (!scr_warn_listeners) {
|
|
541
|
+
fputs("scriptc: out of memory\n", stderr);
|
|
542
|
+
abort();
|
|
543
|
+
}
|
|
544
|
+
}
|
|
545
|
+
if (scr_nwarn == 0) atexit(scr_warn_teardown);
|
|
546
|
+
scr_warn_listeners[scr_nwarn++] = scr_dyn_retain(fn);
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
void scr_process_off_warning(ScrDyn *fn) {
|
|
550
|
+
for (size_t i = 0; i < scr_nwarn; i++) {
|
|
551
|
+
ScrDyn *l = scr_warn_listeners[i];
|
|
552
|
+
bool same = l == fn || (l->kind == SCR_DYN_FUNC && fn->kind == SCR_DYN_FUNC &&
|
|
553
|
+
scr_dyn_strict_eq(l, fn));
|
|
554
|
+
if (same) {
|
|
555
|
+
scr_dyn_release(l);
|
|
556
|
+
memmove(scr_warn_listeners + i, scr_warn_listeners + i + 1,
|
|
557
|
+
(scr_nwarn - i - 1) * sizeof *scr_warn_listeners);
|
|
558
|
+
scr_nwarn--;
|
|
559
|
+
return;
|
|
560
|
+
}
|
|
561
|
+
}
|
|
562
|
+
}
|
|
563
|
+
|
|
564
|
+
/* Dispatch + the default stderr report over a built warning dyn node.
|
|
565
|
+
* Borrowed. A listener throw propagates (the dc publish stance). */
|
|
566
|
+
static void scr_warning_dispatch(ScrDyn *w) {
|
|
567
|
+
for (size_t i = 0; i < scr_nwarn; i++) {
|
|
568
|
+
ScrDyn *r = scr_dyn_call(scr_warn_listeners[i], &w, 1, "listener");
|
|
569
|
+
if (r == NULL) return; /* pending exception propagates */
|
|
570
|
+
scr_dyn_release(r);
|
|
571
|
+
}
|
|
572
|
+
/* "(node:pid) [CODE] Name: message" + "\n<detail>" — Node's
|
|
573
|
+
* onWarning report. */
|
|
574
|
+
const ScrDyn *en = scr_dyn_obj_get(w, "name", 4);
|
|
575
|
+
const ScrDyn *em = scr_dyn_obj_get(w, "message", 7);
|
|
576
|
+
const ScrDyn *ec = scr_dyn_obj_get(w, "code", 4);
|
|
577
|
+
const ScrDyn *ed = scr_dyn_obj_get(w, "detail", 6);
|
|
578
|
+
fflush(stdout);
|
|
579
|
+
fprintf(stderr, "(node:%ld) ", SCR_WARN_PID());
|
|
580
|
+
if (ec && ec->kind == SCR_DYN_STR) fprintf(stderr, "[%s] ", ec->v.str->data);
|
|
581
|
+
fprintf(stderr, "%s: %s",
|
|
582
|
+
(en && en->kind == SCR_DYN_STR) ? en->v.str->data : "Warning",
|
|
583
|
+
(em && em->kind == SCR_DYN_STR) ? em->v.str->data : "");
|
|
584
|
+
if (ed && ed->kind == SCR_DYN_STR) fprintf(stderr, "\n%s", ed->v.str->data);
|
|
585
|
+
fputc('\n', stderr);
|
|
586
|
+
/* Node's one-time trace hint, after the first report. */
|
|
587
|
+
static bool hinted = false;
|
|
588
|
+
if (!hinted) {
|
|
589
|
+
hinted = true;
|
|
590
|
+
fputs("(Use `node --trace-warnings ...` to show where the warning was created)\n", stderr);
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
|
|
594
|
+
/* A warning built from C parts (the runtime deprecation sites): name
|
|
595
|
+
* defaults to "Warning"; code/detail optional. Borrows message. */
|
|
596
|
+
void scr_emit_warning(const char *name, const char *code, ScrStr *message) {
|
|
597
|
+
ScrError *e = scr_error_new(SCR_ERR_ERROR, message);
|
|
598
|
+
scr_str_release(e->name);
|
|
599
|
+
e->name = scr_str_new(name ? name : "Warning", strlen(name ? name : "Warning"));
|
|
600
|
+
if (code) e->code = scr_str_new(code, strlen(code));
|
|
601
|
+
ScrDyn *w = scr_dyn_from_error(e);
|
|
602
|
+
scr_error_release(e);
|
|
603
|
+
scr_warning_dispatch(w);
|
|
604
|
+
scr_dyn_release(w);
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
static void scr_warn_bad_arg(const char *arg, const char *want) {
|
|
608
|
+
char buf[160];
|
|
609
|
+
int n = snprintf(buf, sizeof buf, "The \"%s\" argument must be of type %s", arg, want);
|
|
610
|
+
scr_throw_error_msg_code(SCR_ERR_TYPE, buf, (size_t)n, "ERR_INVALID_ARG_TYPE");
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
/* process.emitWarning(...) — Node's full argument grammar over dyn
|
|
614
|
+
* values: (warning: string | Error), then for string warnings a type
|
|
615
|
+
* string / ctor function / options object ({type, code, detail}) second
|
|
616
|
+
* and a code string / ctor function third. Wrong kinds throw Node's
|
|
617
|
+
* ERR_INVALID_ARG_TYPE TypeErrors; non-string details are ignored. */
|
|
618
|
+
void scr_process_emit_warning(ScrDyn *args) {
|
|
619
|
+
size_t argc = args->kind == SCR_DYN_ARR ? args->v.arr.len : 0;
|
|
620
|
+
ScrDyn *const *items = args->kind == SCR_DYN_ARR ? args->v.arr.items : NULL;
|
|
621
|
+
ScrDyn *warning = argc >= 1 ? items[0] : NULL;
|
|
622
|
+
/* An Error-encoded warning: type/code arguments are ignored (Node). */
|
|
623
|
+
if (warning != NULL && warning->kind == SCR_DYN_OBJ &&
|
|
624
|
+
scr_dyn_obj_get(warning, "%error", 6) != NULL) {
|
|
625
|
+
scr_warning_dispatch(warning);
|
|
626
|
+
return;
|
|
627
|
+
}
|
|
628
|
+
if (warning == NULL || warning->kind != SCR_DYN_STR) {
|
|
629
|
+
scr_warn_bad_arg("warning", "string or an instance of Error");
|
|
630
|
+
return;
|
|
631
|
+
}
|
|
632
|
+
const ScrStr *type = NULL;
|
|
633
|
+
const ScrStr *code = NULL;
|
|
634
|
+
const ScrStr *detail = NULL;
|
|
635
|
+
size_t i = 1;
|
|
636
|
+
if (i < argc && items[i]->kind != SCR_DYN_UNDEF) {
|
|
637
|
+
ScrDyn *a = items[i];
|
|
638
|
+
if (a->kind == SCR_DYN_STR) {
|
|
639
|
+
type = a->v.str;
|
|
640
|
+
i++;
|
|
641
|
+
} else if (a->kind == SCR_DYN_FUNC) {
|
|
642
|
+
i = argc; /* ctor: consumed, stack-trace trimming only — ignored */
|
|
643
|
+
} else if (a->kind == SCR_DYN_OBJ && scr_dyn_obj_get(a, "%error", 6) == NULL) {
|
|
644
|
+
const ScrDyn *t = scr_dyn_obj_get(a, "type", 4);
|
|
645
|
+
const ScrDyn *c = scr_dyn_obj_get(a, "code", 4);
|
|
646
|
+
const ScrDyn *d = scr_dyn_obj_get(a, "detail", 6);
|
|
647
|
+
if (t && t->kind == SCR_DYN_STR) type = t->v.str;
|
|
648
|
+
else if (t && t->kind != SCR_DYN_UNDEF) {
|
|
649
|
+
scr_warn_bad_arg("options.type", "string");
|
|
650
|
+
return;
|
|
651
|
+
}
|
|
652
|
+
if (c && c->kind == SCR_DYN_STR) code = c->v.str;
|
|
653
|
+
if (d && d->kind == SCR_DYN_STR) detail = d->v.str;
|
|
654
|
+
i = argc; /* options form: no third argument (Node ignores it) */
|
|
655
|
+
} else {
|
|
656
|
+
scr_warn_bad_arg("type", "string");
|
|
657
|
+
return;
|
|
658
|
+
}
|
|
659
|
+
} else if (i < argc) {
|
|
660
|
+
i++; /* explicit undefined type: default */
|
|
661
|
+
}
|
|
662
|
+
if (i < argc && items[i]->kind != SCR_DYN_UNDEF) {
|
|
663
|
+
ScrDyn *a = items[i];
|
|
664
|
+
if (a->kind == SCR_DYN_STR) code = a->v.str;
|
|
665
|
+
else if (a->kind != SCR_DYN_FUNC) {
|
|
666
|
+
scr_warn_bad_arg("code", "string");
|
|
667
|
+
return;
|
|
668
|
+
}
|
|
669
|
+
}
|
|
670
|
+
ScrError *e = scr_error_new(SCR_ERR_ERROR, (ScrStr *)warning->v.str);
|
|
671
|
+
scr_str_release(e->name);
|
|
672
|
+
e->name = type ? scr_str_retain((ScrStr *)type) : scr_str_new("Warning", 7);
|
|
673
|
+
if (code) e->code = scr_str_retain((ScrStr *)code);
|
|
674
|
+
ScrDyn *w = scr_dyn_from_error(e);
|
|
675
|
+
scr_error_release(e);
|
|
676
|
+
if (detail) {
|
|
677
|
+
scr_dyn_obj_set(w, "detail", 6, scr_dyn_new_str((ScrStr *)detail)); /* retains */
|
|
678
|
+
}
|
|
679
|
+
scr_warning_dispatch(w);
|
|
680
|
+
scr_dyn_release(w);
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
|
|
684
|
+
|
|
685
|
+
/* A caught-exception snapshot as a dyn value — identity-preserving for
|
|
686
|
+
* dyn payloads (a dyn-thrown value is retained, not copied), the
|
|
687
|
+
* identity-cached %error encoding above for Error-family objects,
|
|
688
|
+
* scalars by value, the type-erased empty object for the rest
|
|
689
|
+
* (SEMANTICS.md 67). Shared by the dc trace choreography, the checked-dynamic tree
|
|
690
|
+
* promise reactions, and the unhandled-rejection dispatch. Borrows the
|
|
691
|
+
* box; result +1. */
|
|
692
|
+
ScrDyn *scr_caught_to_dyn(const ScrCaught *c) {
|
|
693
|
+
switch (c->kind) {
|
|
694
|
+
case SCR_EXC_F64: return scr_dyn_new_num(c->f64);
|
|
695
|
+
case SCR_EXC_BOOL: return scr_dyn_new_bool(c->b);
|
|
696
|
+
case SCR_EXC_STR: return scr_dyn_new_str((ScrStr *)c->payload);
|
|
697
|
+
case SCR_EXC_REF:
|
|
698
|
+
case SCR_EXC_PRIMITIVE_REF:
|
|
699
|
+
if (c->retain_fn == scr_dyn_retain_v) return scr_dyn_retain((ScrDyn *)c->payload);
|
|
700
|
+
return scr_dyn_new_obj();
|
|
701
|
+
case SCR_EXC_OBJ:
|
|
702
|
+
if (scr_error_is(c->payload)) return scr_dyn_from_error((const ScrError *)c->payload);
|
|
703
|
+
return scr_dyn_new_obj();
|
|
704
|
+
default:
|
|
705
|
+
return scr_dyn_new_obj();
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
|
|
709
|
+
/* Await a dyn-CROSSING promise (SCR_DYN_PROMISE's boundary contract —
|
|
710
|
+
* dyn or void fulfillment): the payload as a dyn value (+1; a void
|
|
711
|
+
* fulfillment answers the undefined value, and the defensive scalar arms
|
|
712
|
+
* cover payload kinds a direct box could theoretically carry), or NULL
|
|
713
|
+
* with the rejection re-thrown into the awaiter. */
|
|
714
|
+
ScrDyn *scr_await_dyn(ScrPromise *p) {
|
|
715
|
+
if (!scr_promise_await_settled(p)) return NULL;
|
|
716
|
+
switch (scr_promise_payload_kind(p)) {
|
|
717
|
+
case SCR_EXC_F64: return scr_dyn_new_num(scr_promise_payload_num(p));
|
|
718
|
+
case SCR_EXC_BOOL: return scr_dyn_new_bool(scr_promise_payload_flag(p));
|
|
719
|
+
case SCR_EXC_STR: {
|
|
720
|
+
ScrStr *v = scr_promise_payload_str(p);
|
|
721
|
+
ScrDyn *d = scr_dyn_new_str(v); /* retains */
|
|
722
|
+
scr_str_release(v);
|
|
723
|
+
return d;
|
|
724
|
+
}
|
|
725
|
+
case SCR_EXC_REF: {
|
|
726
|
+
void *v = scr_promise_payload_ref(p);
|
|
727
|
+
if (v) return (ScrDyn *)v; /* the dyn contract: a retained dyn */
|
|
728
|
+
return scr_dyn_retain(scr_dyn_undefined());
|
|
729
|
+
}
|
|
730
|
+
default:
|
|
731
|
+
return scr_dyn_retain(scr_dyn_undefined());
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
/* The rejection reason as a dyn value — the scr_caught_to_dyn stances
|
|
736
|
+
* over a promise's payload slot (identity-preserving for dyn-thrown
|
|
737
|
+
* values and %Error instances). */
|
|
738
|
+
ScrDyn *scr_promise_reason_dyn(const ScrPromise *p) {
|
|
739
|
+
switch (scr_promise_payload_kind(p)) {
|
|
740
|
+
case SCR_EXC_F64: return scr_dyn_new_num(scr_promise_payload_num(p));
|
|
741
|
+
case SCR_EXC_BOOL: return scr_dyn_new_bool(scr_promise_payload_flag(p));
|
|
742
|
+
case SCR_EXC_STR: {
|
|
743
|
+
ScrStr *v = scr_promise_payload_str((ScrPromise *)p);
|
|
744
|
+
ScrDyn *d = scr_dyn_new_str(v); /* retains */
|
|
745
|
+
scr_str_release(v);
|
|
746
|
+
return d;
|
|
747
|
+
}
|
|
748
|
+
case SCR_EXC_REF:
|
|
749
|
+
case SCR_EXC_PRIMITIVE_REF: {
|
|
750
|
+
void *v = scr_promise_payload_ref((ScrPromise *)p);
|
|
751
|
+
if (v == NULL) return scr_dyn_new_obj();
|
|
752
|
+
if (scr_promise_payload_is_dyn(p)) return (ScrDyn *)v; /* retained */
|
|
753
|
+
ScrDyn *d = scr_dyn_new_obj();
|
|
754
|
+
/* release the generic +1 the accessor took */
|
|
755
|
+
scr_promise_payload_release(p, v);
|
|
756
|
+
return d;
|
|
757
|
+
}
|
|
758
|
+
case SCR_EXC_OBJ: {
|
|
759
|
+
void *v = scr_promise_payload_ref((ScrPromise *)p);
|
|
760
|
+
if (v != NULL && scr_error_is(v)) {
|
|
761
|
+
ScrDyn *d = scr_dyn_from_error((const ScrError *)v);
|
|
762
|
+
scr_promise_payload_release(p, v);
|
|
763
|
+
return d;
|
|
764
|
+
}
|
|
765
|
+
if (v != NULL) scr_promise_payload_release(p, v);
|
|
766
|
+
return scr_dyn_new_obj();
|
|
767
|
+
}
|
|
768
|
+
default:
|
|
769
|
+
return scr_dyn_retain(scr_dyn_undefined());
|
|
770
|
+
}
|
|
771
|
+
}
|
|
772
|
+
|
|
773
|
+
/* ── promises in the checked-dynamic tree (SCR_DYN_PROMISE) ────────────────────────────
|
|
774
|
+
* Reference boxes over the fiber machinery's ScrPromise (scr_runtime.h's
|
|
775
|
+
* design note). The boundary contract — a boxed promise settles with a
|
|
776
|
+
* dyn payload — is the CALLERS' to keep: the compiler's converters box
|
|
777
|
+
* promise<dyn> directly and every other inner type through the adapting
|
|
778
|
+
* constructor below. */
|
|
779
|
+
|
|
780
|
+
ScrDyn *scr_dyn_new_promise(ScrPromise *p) {
|
|
781
|
+
ScrDyn *d = scr_dyn_alloc_promise(scr_promise_release);
|
|
782
|
+
d->v.promise = scr_promise_retain(p);
|
|
783
|
+
return d;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
/* The typed-inner box: a fresh destination promise parked on `src`
|
|
787
|
+
* through the Promise.race cb-waiter machinery — `adapt` (emitted,
|
|
788
|
+
* per-inner-type) converts the fulfillment payload into a dyn value and
|
|
789
|
+
* fulfills the destination; rejections copy raw inside the machinery and
|
|
790
|
+
* count as HANDLED on src (the box is the tracked promise, like a JS
|
|
791
|
+
* .then chain). Already-settled sources adapt inline. Borrows src; +1. */
|
|
792
|
+
ScrDyn *scr_dyn_new_promise_adapting(ScrPromise *src,
|
|
793
|
+
void (*adapt)(ScrPromise *dst, ScrPromise *src)) {
|
|
794
|
+
ScrPromise *dst = scr_promise_new();
|
|
795
|
+
scr_promise_race_add(dst, src, adapt);
|
|
796
|
+
ScrDyn *d = scr_dyn_alloc_promise(scr_promise_release);
|
|
797
|
+
d->v.promise = dst; /* the constructor's +1 moves in */
|
|
798
|
+
return d;
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
ScrPromise *scr_dyn_promise_of(const ScrDyn *d) {
|
|
802
|
+
return d->kind == SCR_DYN_PROMISE ? d->v.promise : NULL;
|
|
803
|
+
}
|