mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
* improve * Update packages/babel-helper-replace-supers/src/index.ts Co-authored-by: Huáng Jùnliàng <[email protected]> --------- Co-authored-by: Huáng Jùnliàng <[email protected]>
29 lines
794 B
JavaScript
29 lines
794 B
JavaScript
var replay = /*#__PURE__*/function () {
|
|
var _replay = babelHelpers.asyncToGenerator(/*#__PURE__*/babelHelpers.regenerator().m(function _callee() {
|
|
var _t;
|
|
return babelHelpers.regenerator().w(function (_context) {
|
|
while (1) switch (_context.p = _context.n) {
|
|
case 0:
|
|
_context.p = 0;
|
|
_context.n = 2;
|
|
break;
|
|
case 1:
|
|
_context.p = 1;
|
|
_t = _context.v;
|
|
return _context.a(2, false);
|
|
case 2:
|
|
throw new Error('@kira throw');
|
|
case 3:
|
|
return _context.a(2);
|
|
}
|
|
}, _callee, null, [[0, 1]]);
|
|
}));
|
|
function replay() {
|
|
return _replay.apply(this, arguments);
|
|
}
|
|
return replay;
|
|
}();
|
|
return expect(function () {
|
|
return replay();
|
|
}).rejects.toThrow('@kira throw');
|