Files
scriptc/tests/harness/__snapshots__/fetch-static.ts.txt
T
Chris Tate 24ab670305 Keep numeric typed arrays native across JavaScript boundaries
- Support integer widths and clamped arrays with shared storage and exact runtime brands.
- Preserve typed-array values through untyped fields, iteration, and byte I/O.
- Compile native ArrayBuffer response bodies and checked Number predicates.
2026-09-28 21:15:01 -05:00

17 lines
1023 B
Plaintext

fetch-static.ts:27:23 - error SC2020: 'Response.arrayBuffer in a static build' is part of the standard library types but has no scriptc lowering yet
26 | async function bracketArrayBufferRead(url: string): Promise<void> {
27 | const unsupported = (await fetch(url))["arrayBuffer"];
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
28 | }
hint: the native static Response surface is status/ok/statusText/url/redirected/headers/body/bodyUsed plus json(), text(), bytes(), and arrayBuffer(); use --dynamic for the wider Web API
fetch-static.ts:30:17 - error SC2020: 'new Headers' is part of the standard library types but has no scriptc lowering yet
29 | bracketArrayBufferRead("http://localhost/e");
30 | const headers = new Headers();
| ^~~~~~~~~~~~~
31 | // The Headers constructor remains fenced even though response.headers is native.
hint: the type checker sees the full standard library, but only the supported surface compiles (https://scriptc.dev/limitations)