mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-24 06:14:01 +08:00
* Expand static three.js workflows and host integration * Preserve JavaScript class state in static three.js workflows * Preserve inferred JavaScript behavior across static workflows * Preserve inferred callables and native compatibility boundaries * Retain annotated JavaScript factory exports and bootstrap-safe call spreads * Preserve Buffer and child callback identities in static packages * Clarify JavaScript symbol spread support
12 lines
489 B
TypeScript
12 lines
489 B
TypeScript
// Native checked values and loose equality share this program with
|
|
// island-backed APIs (SC2012) and explicit island evaluation (SC2010).
|
|
const v: any = 21;
|
|
const doubled = v * 2;
|
|
const root = Math.cbrt(81);
|
|
const up = (19.99).toPrecision(3);
|
|
const parsed = Number.parseFloat("1.5"); // the global's string form is static now; the Number static keeps the island
|
|
const raw = __island_eval("6 * 7");
|
|
const unknownScore: unknown = 81;
|
|
const flags = unknownScore == 81;
|
|
console.log("done");
|