Files
scriptc/tests/diagnostics/checker-panic-infinity.ts
Chris Tate 81afd2bdd7 perf: avoid repeated type queries and JavaScript binding scans (#630)
* perf: skip island type probes in static compilation

* test: retain reached declaration checker panic diagnostics

* test: make child backpressure event ordering deterministic

* perf: index JavaScript binding writes once per scope

* test: record preflight baseline for binding writes fixture
2026-10-03 07:40:13 -05:00

7 lines
308 B
TypeScript

// `1e999` as a type crosses the API as +Inf, which tsgo cannot JSON-marshal
// (upstream signature 03): the collection-side panic fence defers the
// SC0004 until f() is reached, reporting the declaration and call site.
type A = 1e999;
export function f(): A { throw new Error("x"); }
export const m = f();