mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-21 05:50:55 +08:00
* 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
9 lines
328 B
TypeScript
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";
|
|
}
|
|
}
|