@scriptc/cli-darwin-arm64 0.2.0 → 0.2.2
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/THIRD_PARTY_NOTICES +1 -1
- package/dist/bin/scriptc +0 -0
- package/dist/bin/scriptc.json +1 -1
- package/dist/lib/declarations/scriptc-node-fallback.d.ts +84 -19
- package/dist/lib/llvm/bin/scriptc-llvm-codegen +0 -0
- package/dist/lib/llvm/package.json +1 -1
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_array.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_assert.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_async.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_async_dyn.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_bigint.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_bytes_io.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_child.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_console.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_console_native.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_crypto_async.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_dyn_invoke.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_error.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_events.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_exception.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_fetch.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_file_handle.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_grapheme.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_http.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_http2.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_json.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_lib.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_map.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_net.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_node_builtin.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_object.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_qs.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_regex.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_stream.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_string.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_symbol.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/default/scr_url.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_array.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_assert.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_async.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_async_dyn.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_bigint.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_bytes_io.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_child.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_console.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_console_native.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_crypto_async.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_dyn_invoke.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_error.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_events.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_exception.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_file_handle.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_grapheme.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_http.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_http2.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_island.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_json.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_lib.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_map.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_net.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_node_builtin.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_object.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_qs.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_regex.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_stream.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_string.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_symbol.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_url.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic/scr_web.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/dynamic-text-decoder-legacy/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/dev/runtime/text-decoder-legacy/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-dev/runtime/default/scr_array.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-dev/runtime/default/scr_assert.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-dev/runtime/default/scr_bigint.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-dev/runtime/default/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-dev/runtime/default/scr_bytes_io.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-dev/runtime/default/scr_console_native.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-dev/runtime/default/scr_dyn_invoke.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-dev/runtime/default/scr_error.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-dev/runtime/default/scr_exception.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-dev/runtime/default/scr_grapheme.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-dev/runtime/default/scr_json.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-dev/runtime/default/scr_lib.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-dev/runtime/default/scr_map.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-dev/runtime/default/scr_node_builtin.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-dev/runtime/default/scr_object.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-dev/runtime/default/scr_regex.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-dev/runtime/default/scr_string.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-dev/runtime/default/scr_symbol.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-dev/runtime/default/scr_url.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-dev/runtime/text-decoder-legacy/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-release/runtime/default/scr_array.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-release/runtime/default/scr_assert.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-release/runtime/default/scr_bigint.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-release/runtime/default/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-release/runtime/default/scr_bytes_io.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-release/runtime/default/scr_console_native.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-release/runtime/default/scr_dyn_invoke.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-release/runtime/default/scr_error.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-release/runtime/default/scr_exception.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-release/runtime/default/scr_grapheme.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-release/runtime/default/scr_json.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-release/runtime/default/scr_lib.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-release/runtime/default/scr_map.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-release/runtime/default/scr_node_builtin.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-release/runtime/default/scr_object.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-release/runtime/default/scr_regex.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-release/runtime/default/scr_string.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-release/runtime/default/scr_symbol.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-release/runtime/default/scr_url.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-release/runtime/text-decoder-legacy/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-dev/runtime/default/scr_array.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-dev/runtime/default/scr_assert.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-dev/runtime/default/scr_bigint.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-dev/runtime/default/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-dev/runtime/default/scr_bytes_io.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-dev/runtime/default/scr_console_native.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-dev/runtime/default/scr_dyn_invoke.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-dev/runtime/default/scr_error.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-dev/runtime/default/scr_exception.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-dev/runtime/default/scr_grapheme.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-dev/runtime/default/scr_json.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-dev/runtime/default/scr_lib.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-dev/runtime/default/scr_map.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-dev/runtime/default/scr_node_builtin.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-dev/runtime/default/scr_object.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-dev/runtime/default/scr_regex.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-dev/runtime/default/scr_string.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-dev/runtime/default/scr_symbol.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-dev/runtime/default/scr_url.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-dev/runtime/text-decoder-legacy/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-release/runtime/default/scr_array.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-release/runtime/default/scr_assert.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-release/runtime/default/scr_bigint.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-release/runtime/default/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-release/runtime/default/scr_bytes_io.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-release/runtime/default/scr_console_native.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-release/runtime/default/scr_dyn_invoke.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-release/runtime/default/scr_error.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-release/runtime/default/scr_exception.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-release/runtime/default/scr_grapheme.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-release/runtime/default/scr_json.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-release/runtime/default/scr_lib.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-release/runtime/default/scr_map.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-release/runtime/default/scr_node_builtin.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-release/runtime/default/scr_object.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-release/runtime/default/scr_regex.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-release/runtime/default/scr_string.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-release/runtime/default/scr_symbol.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-release/runtime/default/scr_url.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/library-thread-release/runtime/text-decoder-legacy/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/licenses/v8-number-radix.txt +61 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_array.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_assert.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_async.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_async_dyn.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_bigint.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_bytes_io.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_child.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_console.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_console_native.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_crypto_async.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_dyn_invoke.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_error.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_events.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_exception.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_fetch.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_file_handle.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_grapheme.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_http.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_http2.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_json.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_lib.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_map.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_net.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_node_builtin.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_object.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_qs.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_regex.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_stream.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_string.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_symbol.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/default/scr_url.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_array.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_assert.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_async.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_async_dyn.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_bigint.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_bytes_io.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_child.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_console.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_console_native.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_crypto_async.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_dyn_invoke.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_error.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_events.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_exception.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_file_handle.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_grapheme.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_http.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_http2.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_island.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_json.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_lib.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_map.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_net.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_node_builtin.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_object.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_qs.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_regex.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_stream.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_string.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_symbol.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_url.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic/scr_web.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/dynamic-text-decoder-legacy/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-arm64/artifacts/release/runtime/text-decoder-legacy/scr_bytes.o +0 -0
- package/dist/lib/runtime-darwin-arm64/package.json +1 -1
- package/dist/lib/runtime-darwin-arm64/runtime-pack.json +549 -545
- package/dist/lib/runtime-sources/package.json +1 -1
- package/dist/lib/runtime-sources/src/scr_abort.c +5 -0
- package/dist/lib/runtime-sources/src/scr_array.c +16 -0
- package/dist/lib/runtime-sources/src/scr_assert.c +1 -0
- package/dist/lib/runtime-sources/src/scr_async.c +38 -5
- package/dist/lib/runtime-sources/src/scr_async_dyn.c +208 -40
- package/dist/lib/runtime-sources/src/scr_bigint.c +8 -0
- package/dist/lib/runtime-sources/src/scr_bytes.c +431 -41
- package/dist/lib/runtime-sources/src/scr_bytes_io.c +628 -12
- package/dist/lib/runtime-sources/src/scr_child.c +544 -17
- package/dist/lib/runtime-sources/src/scr_console.c +1 -1
- package/dist/lib/runtime-sources/src/scr_crypto_async.c +22 -2
- package/dist/lib/runtime-sources/src/scr_dyn_invoke.c +344 -73
- package/dist/lib/runtime-sources/src/scr_error.c +52 -5
- package/dist/lib/runtime-sources/src/scr_exception.c +21 -5
- package/dist/lib/runtime-sources/src/scr_fetch.c +311 -3
- package/dist/lib/runtime-sources/src/scr_file_handle.c +31 -0
- package/dist/lib/runtime-sources/src/scr_http.c +3 -0
- package/dist/lib/runtime-sources/src/scr_island.c +1226 -405
- package/dist/lib/runtime-sources/src/scr_island_manifest.h +11 -9
- package/dist/lib/runtime-sources/src/scr_json.c +1594 -139
- package/dist/lib/runtime-sources/src/scr_json.test.ts +1 -0
- package/dist/lib/runtime-sources/src/scr_lib.c +816 -34
- package/dist/lib/runtime-sources/src/scr_map.c +47 -0
- package/dist/lib/runtime-sources/src/scr_node_builtin.c +10 -0
- package/dist/lib/runtime-sources/src/scr_object.c +11 -0
- package/dist/lib/runtime-sources/src/scr_qs.c +10 -0
- package/dist/lib/runtime-sources/src/scr_regex.c +148 -72
- package/dist/lib/runtime-sources/src/scr_runtime.h +257 -41
- package/dist/lib/runtime-sources/src/scr_stream.c +197 -0
- package/dist/lib/runtime-sources/src/scr_string.c +16 -1
- package/dist/lib/runtime-sources/src/scr_symbol.c +5 -0
- package/dist/lib/runtime-sources/src/scr_text_decoder_labels.h +225 -0
- package/dist/lib/runtime-sources/src/scr_url.c +206 -10
- package/dist/lib/runtime-sources/src/scr_web.c +129 -26
- package/dist/lib/runtime-sources/vendor/v8-number-radix/LICENSE +61 -0
- package/package.json +1 -1
|
@@ -2446,6 +2446,59 @@ void scr_stream_unshift_str(ScrStream *s, ScrStr *str) {
|
|
|
2446
2446
|
scr_bytes_release(b);
|
|
2447
2447
|
}
|
|
2448
2448
|
|
|
2449
|
+
static void scr_stream_listener_error(ScrClosure *adapter, ScrError *error) {
|
|
2450
|
+
ScrDyn *fn = scr_dyn_listener_fn(adapter);
|
|
2451
|
+
ScrDyn *arg = scr_dyn_from_error(error);
|
|
2452
|
+
ScrDyn *answer = scr_dyn_call(fn, &arg, 1, "listener");
|
|
2453
|
+
scr_dyn_release(answer);
|
|
2454
|
+
scr_dyn_release(arg);
|
|
2455
|
+
scr_dyn_release(fn);
|
|
2456
|
+
}
|
|
2457
|
+
|
|
2458
|
+
static void scr_stream_listener_data(ScrClosure *adapter, ScrBytes *bytes, ScrStr *string) {
|
|
2459
|
+
ScrDyn *fn = scr_dyn_listener_fn(adapter);
|
|
2460
|
+
ScrDyn *arg = string ? scr_dyn_new_str(string) : scr_dyn_new_bytes(bytes);
|
|
2461
|
+
ScrDyn *answer = scr_dyn_call(fn, &arg, 1, "listener");
|
|
2462
|
+
scr_dyn_release(answer);
|
|
2463
|
+
scr_dyn_release(arg);
|
|
2464
|
+
scr_dyn_release(fn);
|
|
2465
|
+
}
|
|
2466
|
+
|
|
2467
|
+
ScrStream *scr_stream_on_dyn(ScrStream *s, ScrStr *name, ScrDyn *cb, bool once, bool prepend) {
|
|
2468
|
+
if (name->len == 4 && !memcmp(name->data, "data", 4)) {
|
|
2469
|
+
return (ScrStream *)scr_emitter_on_dyn((ScrEmitter *)s, name, cb,
|
|
2470
|
+
scr_dyn_listener_closure_fn(cb, (void *)scr_stream_listener_data),
|
|
2471
|
+
scr_ee_inv_fixed2, once, prepend);
|
|
2472
|
+
}
|
|
2473
|
+
bool error = name->len == 5 && memcmp(name->data, "error", 5) == 0;
|
|
2474
|
+
bool empty = (name->len == 8 && memcmp(name->data, "readable", 8) == 0) ||
|
|
2475
|
+
(name->len == 3 && memcmp(name->data, "end", 3) == 0) ||
|
|
2476
|
+
(name->len == 5 && memcmp(name->data, "close", 5) == 0) ||
|
|
2477
|
+
(name->len == 6 && memcmp(name->data, "finish", 6) == 0) ||
|
|
2478
|
+
(name->len == 5 && memcmp(name->data, "drain", 5) == 0) ||
|
|
2479
|
+
(name->len == 6 && memcmp(name->data, "resume", 6) == 0) ||
|
|
2480
|
+
(name->len == 5 && memcmp(name->data, "pause", 5) == 0) ||
|
|
2481
|
+
(name->len == 9 && memcmp(name->data, "prefinish", 9) == 0);
|
|
2482
|
+
if (error || empty) {
|
|
2483
|
+
ScrClosure *adapter = error ? scr_dyn_listener_closure_fn(cb, (void *)&scr_stream_listener_error) : scr_dyn_listener_closure0(cb);
|
|
2484
|
+
return (ScrStream *)scr_emitter_on_dyn((ScrEmitter *)s, name, cb, adapter,
|
|
2485
|
+
error ? scr_ee_inv_fixed1 : scr_ee_inv_fixed0, once, prepend);
|
|
2486
|
+
}
|
|
2487
|
+
static const char message[] = "this stream event has no checked-dynamic listener adapter";
|
|
2488
|
+
scr_throw_error_msg_code(SCR_ERR_ERROR, message, sizeof message - 1, "SC2020");
|
|
2489
|
+
return NULL;
|
|
2490
|
+
}
|
|
2491
|
+
|
|
2492
|
+
ScrDyn *scr_stream_read_dyn(ScrStream *s, ScrDyn *size) {
|
|
2493
|
+
double n = size && size->kind != SCR_DYN_UNDEF ? scr_dyn_number_coerce(size) : -1;
|
|
2494
|
+
if (scr_exc_pending()) return scr_dyn_undefined();
|
|
2495
|
+
void *chunk = s->st->has_r ? scr_stream_read_n(s, n) : NULL;
|
|
2496
|
+
if (!chunk) return scr_dyn_new_null();
|
|
2497
|
+
ScrDyn *result = s->st->r.encoded ? scr_dyn_new_str(chunk) : scr_dyn_new_buffer(chunk);
|
|
2498
|
+
scr_stream_entry_release(s->st, chunk);
|
|
2499
|
+
return result;
|
|
2500
|
+
}
|
|
2501
|
+
|
|
2449
2502
|
ScrBytes *scr_stream_read(ScrStream *s, double size) {
|
|
2450
2503
|
/* a destroyed readable still DRAINS its buffer (Node: destroy leaves
|
|
2451
2504
|
* buffered chunks readable; only _read refills are blocked) */
|
|
@@ -3147,3 +3200,147 @@ void scr_stream_install(void) {
|
|
|
3147
3200
|
scr_emitter_on_hook = &scr_stream_on_listener;
|
|
3148
3201
|
scr_loop_set_stream(&scr_stream_ticks_pending, &scr_stream_dispatch);
|
|
3149
3202
|
}
|
|
3203
|
+
|
|
3204
|
+
/* Child stdio uses the standard stream machinery once it crosses generic
|
|
3205
|
+
* storage. Child-only programs never reference this optional table. */
|
|
3206
|
+
static void scr_stream_child_read(ScrClosure *cb, ScrStream *s, double size) {
|
|
3207
|
+
(void)cb; (void)s; (void)size;
|
|
3208
|
+
}
|
|
3209
|
+
static ScrStream *scr_stream_child_readable(void) {
|
|
3210
|
+
return scr_stream_new_readable(-1, true, true,
|
|
3211
|
+
scr_closure_new((void *)scr_stream_child_read, 0), scr_stream_child_read,
|
|
3212
|
+
NULL, NULL);
|
|
3213
|
+
}
|
|
3214
|
+
static ScrStream *scr_stream_child_writable(ScrClosure *write, ScrStreamChunkInv write_inv,
|
|
3215
|
+
ScrClosure *final_cb, ScrStreamPlainInv final_inv) {
|
|
3216
|
+
return scr_stream_new_writable(-1, true, true, write, write_inv,
|
|
3217
|
+
final_cb, final_inv, NULL, NULL);
|
|
3218
|
+
}
|
|
3219
|
+
const ScrChildStreamOps scr_stream_child_ops = {
|
|
3220
|
+
scr_stream_child_readable, scr_stream_child_writable,
|
|
3221
|
+
scr_stream_retain_v, scr_stream_release_v, scr_stream_trace,
|
|
3222
|
+
scr_stream_push, scr_stream_push_null,
|
|
3223
|
+
scr_stream_write_done, scr_stream_final_done,
|
|
3224
|
+
};
|
|
3225
|
+
|
|
3226
|
+
static ScrStream *scr_stream_view_receiver(const ScrDyn *value) {
|
|
3227
|
+
if (value->kind == SCR_DYN_TYPED_REF && value->v.typed_ref.type_key_len > 7 &&
|
|
3228
|
+
!memcmp(value->v.typed_ref.type_key, "object:", 7)) {
|
|
3229
|
+
ScrStream *stream = scr_dyn_typed_ref_unbox(value);
|
|
3230
|
+
const ScrVt *vt = stream->vt;
|
|
3231
|
+
if ((vt->pre >= scr_readable_vt.pre && vt->pre <= scr_readable_vt.post) ||
|
|
3232
|
+
(vt->pre >= scr_writable_vt.pre && vt->pre <= scr_writable_vt.post)) return stream;
|
|
3233
|
+
value->v.typed_ref.release(stream);
|
|
3234
|
+
}
|
|
3235
|
+
scr_dyn_arg_type_fail("destination", "an instance of Stream", value);
|
|
3236
|
+
return NULL;
|
|
3237
|
+
}
|
|
3238
|
+
|
|
3239
|
+
static ScrDyn *scr_stream_view_call(ScrClosure *cb, ScrDyn *const *args, size_t argc) {
|
|
3240
|
+
ScrStream *stream = scr_box_get_ref(cb->caps[0]);
|
|
3241
|
+
ScrStr *name = scr_box_get_ref(cb->caps[1]);
|
|
3242
|
+
const char *method = name->data;
|
|
3243
|
+
ScrDyn *result = NULL;
|
|
3244
|
+
ScrDyn *first = argc ? args[0] : scr_dyn_undefined();
|
|
3245
|
+
if (!strcmp(method, "on") || !strcmp(method, "once") || !strcmp(method, "addListener") ||
|
|
3246
|
+
!strcmp(method, "prependListener") || !strcmp(method, "prependOnceListener")) {
|
|
3247
|
+
if (first->kind != SCR_DYN_STR) scr_dyn_arg_type_fail("event", "of type string", first);
|
|
3248
|
+
else {
|
|
3249
|
+
ScrStream *registered = scr_stream_on_dyn(stream, first->v.str,
|
|
3250
|
+
argc > 1 ? args[1] : scr_dyn_undefined(),
|
|
3251
|
+
!strcmp(method, "once") || !strcmp(method, "prependOnceListener"),
|
|
3252
|
+
!strncmp(method, "prepend", 7));
|
|
3253
|
+
scr_stream_release(registered);
|
|
3254
|
+
}
|
|
3255
|
+
} else if (!strcmp(method, "off") || !strcmp(method, "removeListener")) {
|
|
3256
|
+
if (first->kind != SCR_DYN_STR) scr_dyn_arg_type_fail("event", "of type string", first);
|
|
3257
|
+
else {
|
|
3258
|
+
ScrEmitter *registered = scr_emitter_off_dyn((ScrEmitter *)stream, first->v.str,
|
|
3259
|
+
argc > 1 ? args[1] : scr_dyn_undefined());
|
|
3260
|
+
scr_emitter_release(registered);
|
|
3261
|
+
}
|
|
3262
|
+
} else if (!strcmp(method, "pipe") || !strcmp(method, "unpipe")) {
|
|
3263
|
+
ScrStream *destination = first->kind == SCR_DYN_UNDEF && !strcmp(method, "unpipe")
|
|
3264
|
+
? NULL : scr_stream_view_receiver(first);
|
|
3265
|
+
if (!scr_exc_pending()) {
|
|
3266
|
+
bool end = true;
|
|
3267
|
+
if (argc > 1 && args[1]->kind != SCR_DYN_UNDEF) {
|
|
3268
|
+
ScrDyn *option = scr_dyn_obj_read(args[1], "end", 3);
|
|
3269
|
+
end = option->kind == SCR_DYN_UNDEF || scr_dyn_truthy(option);
|
|
3270
|
+
scr_dyn_release(option);
|
|
3271
|
+
}
|
|
3272
|
+
ScrStream *returned = !strcmp(method, "pipe")
|
|
3273
|
+
? scr_stream_pipe(stream, destination, end) : scr_stream_unpipe(stream, destination);
|
|
3274
|
+
scr_stream_release(returned);
|
|
3275
|
+
if (!strcmp(method, "pipe") && !scr_exc_pending()) result = scr_dyn_retain(first);
|
|
3276
|
+
}
|
|
3277
|
+
scr_stream_release(destination);
|
|
3278
|
+
} else if (!strcmp(method, "read")) result = scr_stream_read_dyn(stream, first);
|
|
3279
|
+
else if (!strcmp(method, "pause") || !strcmp(method, "resume")) {
|
|
3280
|
+
ScrStream *returned = !strcmp(method, "pause") ? scr_stream_pause(stream) : scr_stream_resume(stream);
|
|
3281
|
+
scr_stream_release(returned);
|
|
3282
|
+
} else if (!strcmp(method, "isPaused")) result = scr_dyn_new_bool(scr_stream_is_paused(stream));
|
|
3283
|
+
else if (!strcmp(method, "setEncoding")) {
|
|
3284
|
+
if (first->kind != SCR_DYN_STR) scr_dyn_arg_type_fail("encoding", "of type string", first);
|
|
3285
|
+
else scr_stream_release(scr_stream_set_encoding(stream, first->v.str));
|
|
3286
|
+
} else if (!strcmp(method, "write")) {
|
|
3287
|
+
if (argc > 1 && args[1]->kind != SCR_DYN_UNDEF) {
|
|
3288
|
+
static const char message[] = "Native stream method values with write encodings or callbacks have no lowering";
|
|
3289
|
+
scr_throw_error_msg_code(SCR_ERR_ERROR, message, sizeof message - 1, "SC2020");
|
|
3290
|
+
} else result = scr_dyn_new_bool(scr_stream_write_dyn(stream, first, NULL));
|
|
3291
|
+
} else if (!strcmp(method, "end")) {
|
|
3292
|
+
if (argc > 1 && args[1]->kind != SCR_DYN_UNDEF) {
|
|
3293
|
+
static const char message[] = "Native stream method values with end encodings or callbacks have no lowering";
|
|
3294
|
+
scr_throw_error_msg_code(SCR_ERR_ERROR, message, sizeof message - 1, "SC2020");
|
|
3295
|
+
} else if (first->kind == SCR_DYN_UNDEF || first->kind == SCR_DYN_NULL) {
|
|
3296
|
+
scr_stream_release(scr_stream_end(stream, NULL, NULL, NULL));
|
|
3297
|
+
} else if (first->kind == SCR_DYN_STR) {
|
|
3298
|
+
scr_stream_release(scr_stream_end(stream, NULL, first->v.str, NULL));
|
|
3299
|
+
} else if (first->kind == SCR_DYN_BYTES) {
|
|
3300
|
+
scr_stream_release(scr_stream_end(stream, first->v.bytes, NULL, NULL));
|
|
3301
|
+
} else scr_dyn_arg_type_fail("chunk", "of type string or an instance of Buffer or Uint8Array", first);
|
|
3302
|
+
} else if (!strcmp(method, "destroy")) {
|
|
3303
|
+
ScrError *error = first->kind == SCR_DYN_UNDEF || first->kind == SCR_DYN_NULL ? NULL : scr_error_from_dyn(first);
|
|
3304
|
+
scr_stream_release(scr_stream_destroy(stream, error));
|
|
3305
|
+
scr_error_release(error);
|
|
3306
|
+
} else if (!strcmp(method, "cork")) scr_stream_cork(stream);
|
|
3307
|
+
else if (!strcmp(method, "uncork")) scr_stream_uncork(stream);
|
|
3308
|
+
if (!result && !scr_exc_pending()) result = scr_dyn_this_get();
|
|
3309
|
+
scr_str_release(name);
|
|
3310
|
+
scr_stream_release(stream);
|
|
3311
|
+
return result;
|
|
3312
|
+
}
|
|
3313
|
+
|
|
3314
|
+
ScrDyn *scr_stream_dyn_view(ScrStream *stream) {
|
|
3315
|
+
ScrDyn *view = scr_dyn_new_obj();
|
|
3316
|
+
ScrDyn *prototype = scr_dyn_new_obj();
|
|
3317
|
+
static const char *const methods[] = {
|
|
3318
|
+
"on", "once", "addListener", "prependListener", "prependOnceListener",
|
|
3319
|
+
"off", "removeListener", "pipe", "unpipe", "read", "pause", "resume", "isPaused",
|
|
3320
|
+
"setEncoding", "write", "end", "destroy", "cork", "uncork",
|
|
3321
|
+
};
|
|
3322
|
+
for (size_t i = 0; i < sizeof methods / sizeof *methods; i++) {
|
|
3323
|
+
ScrClosure *cb = scr_closure_new((void *)scr_stream_view_call, 2);
|
|
3324
|
+
cb->caps[0] = scr_box_new_obj(scr_stream_retain_v, scr_stream_release_v, scr_stream_trace);
|
|
3325
|
+
cb->caps[1] = scr_box_new(SCR_BOX_STR);
|
|
3326
|
+
scr_box_set_ref(cb->caps[0], scr_stream_retain(stream));
|
|
3327
|
+
scr_box_set_ref(cb->caps[1], scr_str_new(methods[i], strlen(methods[i])));
|
|
3328
|
+
scr_dyn_obj_set(prototype, methods[i], strlen(methods[i]),
|
|
3329
|
+
scr_dyn_new_func(cb, scr_stream_view_call, 0, "native stream method", methods[i]));
|
|
3330
|
+
}
|
|
3331
|
+
static const char *const properties[] = {
|
|
3332
|
+
"readable", "readableEnded", "readableLength", "readableHighWaterMark",
|
|
3333
|
+
"writable", "writableEnded", "writableFinished", "writableLength", "writableHighWaterMark",
|
|
3334
|
+
"writableNeedDrain", "destroyed", "closed",
|
|
3335
|
+
};
|
|
3336
|
+
for (size_t i = 0; i < sizeof properties / sizeof *properties; i++) {
|
|
3337
|
+
double value = scr_stream_prop(stream, properties[i]);
|
|
3338
|
+
bool number = strstr(properties[i], "Length") || strstr(properties[i], "HighWaterMark");
|
|
3339
|
+
scr_dyn_obj_set(view, properties[i], strlen(properties[i]),
|
|
3340
|
+
number ? scr_dyn_new_num(value) : scr_dyn_new_bool(value != 0));
|
|
3341
|
+
}
|
|
3342
|
+
ScrDyn *attached = scr_dyn_set_prototype(view, prototype);
|
|
3343
|
+
scr_dyn_release(attached);
|
|
3344
|
+
scr_dyn_release(prototype);
|
|
3345
|
+
return view;
|
|
3346
|
+
}
|
|
@@ -1790,7 +1790,7 @@ static int scr_uri_hex_byte(const char *p, size_t rem) {
|
|
|
1790
1790
|
* querystring unit's unescape needs exactly the try/catch shape Node's
|
|
1791
1791
|
* qsUnescape wraps around decodeURIComponent (scr_qs.c), and the throwing
|
|
1792
1792
|
* entry point below stays byte-identical by rethrowing over NULL. */
|
|
1793
|
-
ScrStr *
|
|
1793
|
+
static ScrStr *scr_str_decode_uri_try(ScrStr *s, bool reserved) {
|
|
1794
1794
|
/* Decoding only ever shrinks (%XX → 1 byte), so len is a safe cap. */
|
|
1795
1795
|
ScrStr *out = scr_str_alloc_raw(0, s->len);
|
|
1796
1796
|
size_t w = 0;
|
|
@@ -1805,6 +1805,11 @@ ScrStr *scr_str_decode_uri_component_try(ScrStr *s) {
|
|
|
1805
1805
|
if (b0 < 0) goto malformed;
|
|
1806
1806
|
i += 3;
|
|
1807
1807
|
if (b0 < 0x80) {
|
|
1808
|
+
if (reserved && b0 != 0 && strchr(";/?:@&=+$,#", b0)) {
|
|
1809
|
+
memcpy(out->data + w, p + i - 3, 3);
|
|
1810
|
+
w += 3;
|
|
1811
|
+
continue;
|
|
1812
|
+
}
|
|
1808
1813
|
/* The empty component reserved set: every ASCII escape decodes. */
|
|
1809
1814
|
out->data[w++] = (char)b0;
|
|
1810
1815
|
continue;
|
|
@@ -1839,6 +1844,16 @@ malformed:
|
|
|
1839
1844
|
return NULL;
|
|
1840
1845
|
}
|
|
1841
1846
|
|
|
1847
|
+
ScrStr *scr_str_decode_uri_component_try(ScrStr *s) {
|
|
1848
|
+
return scr_str_decode_uri_try(s, false);
|
|
1849
|
+
}
|
|
1850
|
+
|
|
1851
|
+
ScrStr *scr_str_decode_uri(ScrStr *s) {
|
|
1852
|
+
ScrStr *out = scr_str_decode_uri_try(s, true);
|
|
1853
|
+
if (!out) scr_uri_malformed();
|
|
1854
|
+
return out;
|
|
1855
|
+
}
|
|
1856
|
+
|
|
1842
1857
|
ScrStr *scr_str_decode_uri_component(ScrStr *s) {
|
|
1843
1858
|
ScrStr *out = scr_str_decode_uri_component_try(s);
|
|
1844
1859
|
if (!out) {
|
|
@@ -85,6 +85,11 @@ ScrSym *scr_sym_well_known(ScrStr *name) {
|
|
|
85
85
|
scr_dyn_install_iterator_symbol(key);
|
|
86
86
|
scr_dyn_release(key);
|
|
87
87
|
}
|
|
88
|
+
if (name->len == 13 && !memcmp(name->data, "asyncIterator", 13)) {
|
|
89
|
+
ScrDyn *key = scr_dyn_new_symbol(symbol);
|
|
90
|
+
scr_dyn_install_async_iterator_symbol(key);
|
|
91
|
+
scr_dyn_release(key);
|
|
92
|
+
}
|
|
88
93
|
return symbol;
|
|
89
94
|
}
|
|
90
95
|
|
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
/* Generated by scripts/gen-text-decoder-labels.mts. Do not edit by hand. */
|
|
2
|
+
static const struct { const char *label; int encoding; } scr_td_labels[] = {
|
|
3
|
+
{"unicode-1-1-utf-8", -1},
|
|
4
|
+
{"unicode11utf8", -1},
|
|
5
|
+
{"unicode20utf8", -1},
|
|
6
|
+
{"utf-8", -1},
|
|
7
|
+
{"utf8", -1},
|
|
8
|
+
{"x-unicode20utf8", -1},
|
|
9
|
+
{"866", 0},
|
|
10
|
+
{"cp866", 0},
|
|
11
|
+
{"csibm866", 0},
|
|
12
|
+
{"ibm866", 0},
|
|
13
|
+
{"csisolatin2", 1},
|
|
14
|
+
{"iso-8859-2", 1},
|
|
15
|
+
{"iso-ir-101", 1},
|
|
16
|
+
{"iso8859-2", 1},
|
|
17
|
+
{"iso88592", 1},
|
|
18
|
+
{"iso_8859-2", 1},
|
|
19
|
+
{"iso_8859-2:1987", 1},
|
|
20
|
+
{"l2", 1},
|
|
21
|
+
{"latin2", 1},
|
|
22
|
+
{"csisolatin3", 2},
|
|
23
|
+
{"iso-8859-3", 2},
|
|
24
|
+
{"iso-ir-109", 2},
|
|
25
|
+
{"iso8859-3", 2},
|
|
26
|
+
{"iso88593", 2},
|
|
27
|
+
{"iso_8859-3", 2},
|
|
28
|
+
{"iso_8859-3:1988", 2},
|
|
29
|
+
{"l3", 2},
|
|
30
|
+
{"latin3", 2},
|
|
31
|
+
{"csisolatin4", 3},
|
|
32
|
+
{"iso-8859-4", 3},
|
|
33
|
+
{"iso-ir-110", 3},
|
|
34
|
+
{"iso8859-4", 3},
|
|
35
|
+
{"iso88594", 3},
|
|
36
|
+
{"iso_8859-4", 3},
|
|
37
|
+
{"iso_8859-4:1988", 3},
|
|
38
|
+
{"l4", 3},
|
|
39
|
+
{"latin4", 3},
|
|
40
|
+
{"csisolatincyrillic", 4},
|
|
41
|
+
{"cyrillic", 4},
|
|
42
|
+
{"iso-8859-5", 4},
|
|
43
|
+
{"iso-ir-144", 4},
|
|
44
|
+
{"iso8859-5", 4},
|
|
45
|
+
{"iso88595", 4},
|
|
46
|
+
{"iso_8859-5", 4},
|
|
47
|
+
{"iso_8859-5:1988", 4},
|
|
48
|
+
{"arabic", 5},
|
|
49
|
+
{"asmo-708", 5},
|
|
50
|
+
{"csiso88596e", 5},
|
|
51
|
+
{"csiso88596i", 5},
|
|
52
|
+
{"csisolatinarabic", 5},
|
|
53
|
+
{"ecma-114", 5},
|
|
54
|
+
{"iso-8859-6", 5},
|
|
55
|
+
{"iso-8859-6-e", 5},
|
|
56
|
+
{"iso-8859-6-i", 5},
|
|
57
|
+
{"iso-ir-127", 5},
|
|
58
|
+
{"iso8859-6", 5},
|
|
59
|
+
{"iso88596", 5},
|
|
60
|
+
{"iso_8859-6", 5},
|
|
61
|
+
{"iso_8859-6:1987", 5},
|
|
62
|
+
{"csisolatingreek", 6},
|
|
63
|
+
{"ecma-118", 6},
|
|
64
|
+
{"elot_928", 6},
|
|
65
|
+
{"greek", 6},
|
|
66
|
+
{"greek8", 6},
|
|
67
|
+
{"iso-8859-7", 6},
|
|
68
|
+
{"iso-ir-126", 6},
|
|
69
|
+
{"iso8859-7", 6},
|
|
70
|
+
{"iso88597", 6},
|
|
71
|
+
{"iso_8859-7", 6},
|
|
72
|
+
{"iso_8859-7:1987", 6},
|
|
73
|
+
{"sun_eu_greek", 6},
|
|
74
|
+
{"csiso88598e", 7},
|
|
75
|
+
{"csiso88598i", 36},
|
|
76
|
+
{"csisolatinhebrew", 7},
|
|
77
|
+
{"hebrew", 7},
|
|
78
|
+
{"iso-8859-8", 7},
|
|
79
|
+
{"iso-8859-8-e", 7},
|
|
80
|
+
{"iso-8859-8-i", 36},
|
|
81
|
+
{"iso-ir-138", 7},
|
|
82
|
+
{"iso8859-8", 7},
|
|
83
|
+
{"iso88598", 7},
|
|
84
|
+
{"iso_8859-8", 7},
|
|
85
|
+
{"iso_8859-8:1988", 7},
|
|
86
|
+
{"logical", 36},
|
|
87
|
+
{"visual", 7},
|
|
88
|
+
{"csisolatin6", 8},
|
|
89
|
+
{"iso-8859-10", 8},
|
|
90
|
+
{"iso-ir-157", 8},
|
|
91
|
+
{"iso8859-10", 8},
|
|
92
|
+
{"iso885910", 8},
|
|
93
|
+
{"l6", 8},
|
|
94
|
+
{"latin6", 8},
|
|
95
|
+
{"iso-8859-13", 9},
|
|
96
|
+
{"iso8859-13", 9},
|
|
97
|
+
{"iso885913", 9},
|
|
98
|
+
{"iso-8859-14", 10},
|
|
99
|
+
{"iso8859-14", 10},
|
|
100
|
+
{"iso885914", 10},
|
|
101
|
+
{"csisolatin9", 11},
|
|
102
|
+
{"iso-8859-15", 11},
|
|
103
|
+
{"iso8859-15", 11},
|
|
104
|
+
{"iso885915", 11},
|
|
105
|
+
{"iso_8859-15", 11},
|
|
106
|
+
{"l9", 11},
|
|
107
|
+
{"iso-8859-16", 12},
|
|
108
|
+
{"cskoi8r", 13},
|
|
109
|
+
{"koi", 13},
|
|
110
|
+
{"koi8", 13},
|
|
111
|
+
{"koi8-r", 13},
|
|
112
|
+
{"koi8_r", 13},
|
|
113
|
+
{"koi8-ru", 14},
|
|
114
|
+
{"koi8-u", 14},
|
|
115
|
+
{"csmacintosh", 15},
|
|
116
|
+
{"mac", 15},
|
|
117
|
+
{"macintosh", 15},
|
|
118
|
+
{"x-mac-roman", 15},
|
|
119
|
+
{"dos-874", 16},
|
|
120
|
+
{"iso-8859-11", 16},
|
|
121
|
+
{"iso8859-11", 16},
|
|
122
|
+
{"iso885911", 16},
|
|
123
|
+
{"tis-620", 16},
|
|
124
|
+
{"windows-874", 16},
|
|
125
|
+
{"cp1250", 17},
|
|
126
|
+
{"windows-1250", 17},
|
|
127
|
+
{"x-cp1250", 17},
|
|
128
|
+
{"cp1251", 18},
|
|
129
|
+
{"windows-1251", 18},
|
|
130
|
+
{"x-cp1251", 18},
|
|
131
|
+
{"ansi_x3.4-1968", 19},
|
|
132
|
+
{"ascii", 19},
|
|
133
|
+
{"cp1252", 19},
|
|
134
|
+
{"cp819", 19},
|
|
135
|
+
{"csisolatin1", 19},
|
|
136
|
+
{"ibm819", 19},
|
|
137
|
+
{"iso-8859-1", 19},
|
|
138
|
+
{"iso-ir-100", 19},
|
|
139
|
+
{"iso8859-1", 19},
|
|
140
|
+
{"iso88591", 19},
|
|
141
|
+
{"iso_8859-1", 19},
|
|
142
|
+
{"iso_8859-1:1987", 19},
|
|
143
|
+
{"l1", 19},
|
|
144
|
+
{"latin1", 19},
|
|
145
|
+
{"us-ascii", 19},
|
|
146
|
+
{"windows-1252", 19},
|
|
147
|
+
{"x-cp1252", 19},
|
|
148
|
+
{"cp1253", 20},
|
|
149
|
+
{"windows-1253", 20},
|
|
150
|
+
{"x-cp1253", 20},
|
|
151
|
+
{"cp1254", 21},
|
|
152
|
+
{"csisolatin5", 21},
|
|
153
|
+
{"iso-8859-9", 21},
|
|
154
|
+
{"iso-ir-148", 21},
|
|
155
|
+
{"iso8859-9", 21},
|
|
156
|
+
{"iso88599", 21},
|
|
157
|
+
{"iso_8859-9", 21},
|
|
158
|
+
{"iso_8859-9:1989", 21},
|
|
159
|
+
{"l5", 21},
|
|
160
|
+
{"latin5", 21},
|
|
161
|
+
{"windows-1254", 21},
|
|
162
|
+
{"x-cp1254", 21},
|
|
163
|
+
{"cp1255", 22},
|
|
164
|
+
{"windows-1255", 22},
|
|
165
|
+
{"x-cp1255", 22},
|
|
166
|
+
{"cp1256", 23},
|
|
167
|
+
{"windows-1256", 23},
|
|
168
|
+
{"x-cp1256", 23},
|
|
169
|
+
{"cp1257", 24},
|
|
170
|
+
{"windows-1257", 24},
|
|
171
|
+
{"x-cp1257", 24},
|
|
172
|
+
{"cp1258", 25},
|
|
173
|
+
{"windows-1258", 25},
|
|
174
|
+
{"x-cp1258", 25},
|
|
175
|
+
{"x-mac-cyrillic", 26},
|
|
176
|
+
{"x-mac-ukrainian", 26},
|
|
177
|
+
{"x-user-defined", 27},
|
|
178
|
+
{"csunicode", 28},
|
|
179
|
+
{"iso-10646-ucs-2", 28},
|
|
180
|
+
{"ucs-2", 28},
|
|
181
|
+
{"unicode", 28},
|
|
182
|
+
{"unicodefeff", 28},
|
|
183
|
+
{"utf-16", 28},
|
|
184
|
+
{"utf-16le", 28},
|
|
185
|
+
{"unicodefffe", 29},
|
|
186
|
+
{"utf-16be", 29},
|
|
187
|
+
{"chinese", 37},
|
|
188
|
+
{"csgb2312", 37},
|
|
189
|
+
{"csiso58gb231280", 37},
|
|
190
|
+
{"gb18030", 30},
|
|
191
|
+
{"gb2312", 37},
|
|
192
|
+
{"gb_2312", 37},
|
|
193
|
+
{"gb_2312-80", 37},
|
|
194
|
+
{"gbk", 37},
|
|
195
|
+
{"iso-ir-58", 37},
|
|
196
|
+
{"x-gbk", 37},
|
|
197
|
+
{"big5", 31},
|
|
198
|
+
{"big5-hkscs", 31},
|
|
199
|
+
{"cn-big5", 31},
|
|
200
|
+
{"csbig5", 31},
|
|
201
|
+
{"x-x-big5", 31},
|
|
202
|
+
{"cseucpkdfmtjapanese", 32},
|
|
203
|
+
{"euc-jp", 32},
|
|
204
|
+
{"x-euc-jp", 32},
|
|
205
|
+
{"csiso2022jp", 33},
|
|
206
|
+
{"iso-2022-jp", 33},
|
|
207
|
+
{"csshiftjis", 34},
|
|
208
|
+
{"ms932", 34},
|
|
209
|
+
{"ms_kanji", 34},
|
|
210
|
+
{"shift-jis", 34},
|
|
211
|
+
{"shift_jis", 34},
|
|
212
|
+
{"sjis", 34},
|
|
213
|
+
{"windows-31j", 34},
|
|
214
|
+
{"x-sjis", 34},
|
|
215
|
+
{"cseuckr", 35},
|
|
216
|
+
{"csksc56011987", 35},
|
|
217
|
+
{"euc-kr", 35},
|
|
218
|
+
{"iso-ir-149", 35},
|
|
219
|
+
{"korean", 35},
|
|
220
|
+
{"ks_c_5601-1987", 35},
|
|
221
|
+
{"ks_c_5601-1989", 35},
|
|
222
|
+
{"ksc5601", 35},
|
|
223
|
+
{"ksc_5601", 35},
|
|
224
|
+
{"windows-949", 35},
|
|
225
|
+
};
|