Files
5798b6e0b8 Clean up the logic of some helper packages (#17886)
* 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]>
2026-04-16 14:24:32 -04:00

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');