mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-24 06:14:01 +08:00
- Run published three.js vector, matrix, and quaternion operations natively and as Wasm without a JavaScript engine. - Preserve shared class prototype data and JavaScript overload arguments. - Support Math function values and distinct npm import and require entries.
62 lines
2.3 KiB
Plaintext
62 lines
2.3 KiB
Plaintext
stdlib.ts:8:40 - error SC1090: a builtin function alias as an escaping value (call 'read' directly) is not supported yet
|
|
|
|
7 | import { writeFile } from "node:fs/promises";
|
|
8 | const read = readFileSync; console.log(read);
|
|
| ^~~~
|
|
9 | const cwd = process.cwd;
|
|
|
|
stdlib.ts:9:13 - error SC1090: process methods as values (call 'cwd' directly) are not supported yet
|
|
|
|
8 | const read = readFileSync; console.log(read);
|
|
9 | const cwd = process.cwd;
|
|
| ^~~~~~~~~~~
|
|
10 | const p = process;
|
|
|
|
stdlib.ts:13:15 - error SC1090: string methods as values (call 'toUpperCase' directly) are not supported yet
|
|
|
|
12 | const flo = Math.floor; // fixed-arity Math functions have native value forms
|
|
13 | const upper = "abc".toUpperCase;
|
|
| ^~~~~~~~~~~~~~~~~
|
|
14 | const fix = (1.5).toFixed;
|
|
|
|
stdlib.ts:14:13 - error SC1090: number methods as values (call 'toFixed' directly) are not supported yet
|
|
|
|
13 | const upper = "abc".toUpperCase;
|
|
14 | const fix = (1.5).toFixed;
|
|
| ^~~~~~~~~~~~~
|
|
15 | const pf = parseFloat;
|
|
|
|
stdlib.ts:15:12 - error SC1090: library functions as values (call 'parseFloat' directly) are not supported yet
|
|
|
|
14 | const fix = (1.5).toFixed;
|
|
15 | const pf = parseFloat;
|
|
| ^~~~~~~~~~
|
|
16 | // Options-sensitive filesystem APIs remain call-only. TypeScript admits
|
|
|
|
stdlib.ts:32:16 - error SC1090: library functions as values (call 'writeFileSync' directly) are not supported yet
|
|
|
|
31 | }
|
|
32 | takeSyncWriter(writeFileSync);
|
|
| ^~~~~~~~~~~~~
|
|
33 | takeAsyncWriter(writeFile);
|
|
|
|
stdlib.ts:33:17 - error SC1090: library functions as values (call 'writeFile' directly) are not supported yet
|
|
|
|
32 | takeSyncWriter(writeFileSync);
|
|
33 | takeAsyncWriter(writeFile);
|
|
| ^~~~~~~~~
|
|
34 | takeMkdir(mkdirSync);
|
|
|
|
stdlib.ts:34:11 - error SC1090: library functions as values (call 'mkdirSync' directly) are not supported yet
|
|
|
|
33 | takeAsyncWriter(writeFile);
|
|
34 | takeMkdir(mkdirSync);
|
|
| ^~~~~~~~~
|
|
35 | takeOpen(openSync);
|
|
|
|
stdlib.ts:35:10 - error SC1090: library functions as values (call 'openSync' directly) are not supported yet
|
|
|
|
34 | takeMkdir(mkdirSync);
|
|
35 | takeOpen(openSync);
|
|
| ^~~~~~~~
|
|
36 | // Reached: every unsafe value use above must retain its compile-time fence. |