UNPKG

@typed/test

Version:
16 lines 341 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); function throws(fn) { var error = new Error("Did not throw"); try { fn(); throw error; } catch (e) { if (e === error) throw e; return e; } } exports.throws = throws; //# sourceMappingURL=throws.js.map