mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-02 00:25:34 +08:00
- 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.
17 lines
1023 B
Plaintext
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) |