sitegen/framework/debug.safe.ts

13 lines
277 B
TypeScript
Raw Normal View History

2025-07-07 20:58:02 -07:00
globalThis.UNWRAP = (t, ...args) => {
if (t == null) {
throw new Error(
args.length > 0 ? util.format(...args) : "UNWRAP(" + t + ")",
);
}
return t;
};
2025-07-30 11:21:52 -07:00
globalThis.ASSERT = assert.ok;
2025-07-07 20:58:02 -07:00
import * as util from "node:util";
2025-07-30 11:21:52 -07:00
import * as assert from 'node:assert'