Files
Jan JonesandGitHub 24ac865e9e Revert "Improve output when wrapping functions" (#15979)
* Add a test

* Revert "Improve output when wrapping functions (e.g. `async` functions) (#15922)"

This reverts commit f64c854415.

* Update snapshot
2023-09-16 18:09:27 +02:00

20 lines
449 B
JavaScript

"use strict";
function mandatory(paramName) {
throw new Error(`Missing parameter: ${paramName}`);
}
function foo(_x) {
return _foo.apply(this, arguments);
}
function _foo() {
_foo = babelHelpers.asyncToGenerator(function (_ref) {
let a = _ref.a,
_ref$b = _ref.b,
b = _ref$b === void 0 ? mandatory("b") : _ref$b;
return function* () {
return Promise.resolve(b);
}();
});
return _foo.apply(this, arguments);
}