mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-02 08:35:07 +08:00
10 lines
407 B
TypeScript
10 lines
407 B
TypeScript
// @exit: 1
|
|
// An UNCAUGHT shape mismatch: the AssertionError's Comparison diff
|
|
// travels the uncaught path — stdout keeps everything printed before
|
|
// the failure, the process exits 1 (stderr is the uncompared report).
|
|
import assert from "node:assert";
|
|
|
|
console.log("before");
|
|
assert.throws(() => { throw new RangeError("boom"); }, { name: "TypeError", message: "boom" });
|
|
console.log("never reached");
|