UNPKG

@altostra/core

Version:

Core library for shared types and logic

1 lines 270 B
"use strict";function assertThrowing(r,t){let e=!1;try{r()}catch(r){e=!0}if(!e)throw new Error(null!=t?t:`Function ${r.name||"fn"} did not throw`)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.assertThrowing=void 0,exports.assertThrowing=assertThrowing;