Files
scriptc/packages/compiler/src/errors.ts
T
Chris Tate f5f04a5f49 Improve compiler lint and error classification (#208)
* Warn on non-null assertions

- Surface non-null assertions during linting without making them blocking.

- Preserve existing assertion sites for opportunistic cleanup.

* Classify internal compiler errors

- Export InternalCompilerError and migrate compiler invariant throws without changing messages.

- Rename the native cache test to match cc.ts and update test scheduling references.

- Document test placement by unit, package integration, and cross-package scope.

* Fix internal compiler error classification
2026-08-23 00:02:28 -05:00

9 lines
328 B
TypeScript

/** A compiler invariant failed. Callers can distinguish these bugs from
* environmental failures such as filesystem and toolchain errors. */
export class InternalCompilerError extends Error {
constructor(message?: string, options?: ErrorOptions) {
super(message, options);
this.name = "InternalCompilerError";
}
}