UNPKG

@typed/test

Version:
13 lines 246 B
export function throws(fn) { var error = new Error("Did not throw"); try { fn(); throw error; } catch (e) { if (e === error) throw e; return e; } } //# sourceMappingURL=throws.js.map