feat(es/compat): Add pure comments for generator and async transform (#5463)

This commit is contained in:
Austaras 2022-08-12 21:39:26 +08:00 committed by GitHub
parent d9fc50f14d
commit 5a06271116
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
429 changed files with 1339 additions and 3176 deletions

View File

@ -265,6 +265,7 @@ impl<'a, 'b, P: swc_ecma_visit::Fold> PassBuilder<'a, 'b, P> {
ignore_function_length: assumptions.ignore_function_length
},
},
comments,
self.unresolved_mark
),
should_enable(self.target, EsVersion::Es2017)

View File

@ -1,5 +1,5 @@
import regeneratorRuntime from "custom";
var _marked = regeneratorRuntime.mark(gen);
var _marked = /*#__PURE__*/ regeneratorRuntime.mark(gen);
function gen() {
return regeneratorRuntime.wrap(function gen$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -8,7 +8,7 @@ function request(path) {
return _request.apply(this, arguments);
}
function _request() {
_request = _async_to_generator(regeneratorRuntime.mark(function _callee(path) {
_request = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee(path) {
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:
@ -21,7 +21,7 @@ function _request() {
}));
return _request.apply(this, arguments);
}
_async_to_generator(regeneratorRuntime.mark(function _callee() {
_async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
var obj;
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -8,7 +8,7 @@ function request(path) {
return _request.apply(this, arguments);
}
function _request() {
_request = _async_to_generator(regeneratorRuntime.mark(function _callee(path) {
_request = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee(path) {
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:
@ -21,7 +21,7 @@ function _request() {
}));
return _request.apply(this, arguments);
}
_async_to_generator(regeneratorRuntime.mark(function _callee() {
_async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
var obj;
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -1,5 +1,5 @@
import regeneratorRuntime from "regenerator-runtime";
var _marked = regeneratorRuntime.mark(foo);
var _marked = /*#__PURE__*/ regeneratorRuntime.mark(foo);
function foo() {
var val;
return regeneratorRuntime.wrap(function foo$(_ctx) {

View File

@ -5,7 +5,7 @@ function foo() {
return _foo.apply(this, arguments);
}
function _foo() {
_foo = _async_to_generator(regeneratorRuntime.mark(function _callee() {
_foo = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
var tmp, ref, ref;
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -8,7 +8,7 @@ var obj = {
};
},
byPlatform: function() {
var _ref = _async_to_generator(regeneratorRuntime.mark(function _callee(platform) {
var _ref = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee(platform) {
var result;
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -5,7 +5,7 @@ function f(a, b) {
return _f.apply(this, arguments);
}
function _f() {
_f = _async_to_generator(regeneratorRuntime.mark(function _callee(a, b) {
_f = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee(a, b) {
var ref, ref1, tmp, a_;
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -3,7 +3,7 @@ import regeneratorRuntime from "regenerator-runtime";
Vue.component("test", {
methods: {
onSend: function onSend() {
return _async_to_generator(regeneratorRuntime.mark(function _callee() {
return _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -3,7 +3,7 @@ import regeneratorRuntime from "regenerator-runtime";
var obj = {
foo: 5,
method: function method() {
return _async_to_generator(regeneratorRuntime.mark(function _callee() {
return _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -11,7 +11,7 @@ import { Button, ConfigProvider } from "antd";
function App() {
var ref = _sliced_to_array(useState({}), 2), state = ref[0], setState = ref[1];
useEffect(function() {
_async_to_generator(regeneratorRuntime.mark(function _callee() {
_async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -4,13 +4,13 @@ function scanUser(groups) {
return _scanUser.apply(this, arguments);
}
function _scanUser() {
_scanUser = _async_to_generator(regeneratorRuntime.mark(function _callee(groups) {
_scanUser = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee(groups) {
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:
_ctx.next = 2;
return Promise.all(groups.map(function() {
var _ref = _async_to_generator(regeneratorRuntime.mark(function _callee(param) {
var _ref = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee(param) {
var users, _iteratorNormalCompletion, _didIteratorError, _iteratorError, _iterator, _step, user;
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -4,7 +4,7 @@ function lol() {
return _lol.apply(this, arguments);
}
function _lol() {
_lol = _wrap_async_generator(regeneratorRuntime.mark(function _callee() {
_lol = _wrap_async_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -6,7 +6,7 @@ function lol() {
return _lol.apply(this, arguments);
}
function _lol() {
_lol = _wrap_async_generator(regeneratorRuntime.mark(function _callee() {
_lol = _wrap_async_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:
@ -27,7 +27,7 @@ function main() {
return _main.apply(this, arguments);
}
function _main() {
_main = _async_to_generator(regeneratorRuntime.mark(function _callee() {
_main = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
var _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, _value, x;
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -1,7 +1,7 @@
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
import regeneratorRuntime from "regenerator-runtime";
(function() {
var _main = _async_to_generator(regeneratorRuntime.mark(function _callee() {
var _main = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -14,7 +14,7 @@ var _regeneratorRuntime = /*#__PURE__*/ _interopRequireDefault(require("regenera
var _react = /*#__PURE__*/ _interopRequireDefault(require("react"));
function Foo() {
return /*#__PURE__*/ _react.default.createElement("div", {
onClick: _asyncToGenerator(_regeneratorRuntime.default.mark(function _callee(e) {
onClick: /*#__PURE__*/ _asyncToGenerator(/*#__PURE__*/ _regeneratorRuntime.default.mark(function _callee(e) {
return _regeneratorRuntime.default.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -11,7 +11,7 @@ const _interopRequireDefault = require("@swc/helpers/lib/_interop_require_defaul
const _react = /*#__PURE__*/ _interopRequireDefault(require("react"));
function Foo() {
return /*#__PURE__*/ _react.default.createElement("div", {
onClick: _asyncToGenerator(function*(e) {
onClick: /*#__PURE__*/ _asyncToGenerator(function*(e) {
yield doSomething();
})
});

View File

@ -11,7 +11,7 @@ const _interopRequireDefault = require("@swc/helpers/lib/_interop_require_defaul
const _react = /*#__PURE__*/ _interopRequireDefault(require("react"));
function Foo() {
return /*#__PURE__*/ _react.default.createElement("div", {
onClick: _asyncToGenerator(function*(e) {
onClick: /*#__PURE__*/ _asyncToGenerator(function*(e) {
yield doSomething();
})
});

View File

@ -13,7 +13,7 @@ var _interopRequireDefault = require("@swc/helpers/lib/_interop_require_default.
var _regeneratorRuntime = /*#__PURE__*/ _interopRequireDefault(require("regenerator-runtime"));
var _react = /*#__PURE__*/ _interopRequireDefault(require("react"));
function Foo() {
return call(_asyncToGenerator(_regeneratorRuntime.default.mark(function _callee(e) {
return call(/*#__PURE__*/ _asyncToGenerator(/*#__PURE__*/ _regeneratorRuntime.default.mark(function _callee(e) {
return _regeneratorRuntime.default.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -48,7 +48,7 @@ function _asyncToGenerator(fn) {
});
};
}
_asyncToGenerator(_regeneratorRuntime.default.mark(function _callee() {
_asyncToGenerator(/*#__PURE__*/ _regeneratorRuntime.default.mark(function _callee() {
var counter, resolve, promise, iterable, res, _i, _iter, v, oldresolve;
return _regeneratorRuntime.default.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
@ -65,7 +65,7 @@ _asyncToGenerator(_regeneratorRuntime.default.mark(function _callee() {
}
};
});
res = _asyncToGenerator(_regeneratorRuntime.default.mark(function _callee() {
res = _asyncToGenerator(/*#__PURE__*/ _regeneratorRuntime.default.mark(function _callee() {
var _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, _value, value;
return _regeneratorRuntime.default.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -7,7 +7,7 @@ var _asyncToGenerator = require("@swc/helpers/lib/_async_to_generator.js").defau
var _defineProperty = require("@swc/helpers/lib/_define_property.js").default;
var _interopRequireDefault = require("@swc/helpers/lib/_interop_require_default.js").default;
var _regeneratorRuntime = /*#__PURE__*/ _interopRequireDefault(require("regenerator-runtime"));
_asyncToGenerator(_regeneratorRuntime.default.mark(function _callee() {
_asyncToGenerator(/*#__PURE__*/ _regeneratorRuntime.default.mark(function _callee() {
var counter, resolve, promise, iterable, res, _i, _iter, v, oldresolve;
return _regeneratorRuntime.default.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
@ -24,7 +24,7 @@ _asyncToGenerator(_regeneratorRuntime.default.mark(function _callee() {
}
};
});
res = _asyncToGenerator(_regeneratorRuntime.default.mark(function _callee() {
res = _asyncToGenerator(/*#__PURE__*/ _regeneratorRuntime.default.mark(function _callee() {
var _iteratorAbruptCompletion, _didIteratorError, _iteratorError, _iterator, _step, _value, value;
return _regeneratorRuntime.default.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
});
var _interopRequireDefault = require("@swc/helpers/lib/_interop_require_default.js").default;
var _regeneratorRuntime = /*#__PURE__*/ _interopRequireDefault(require("regenerator-runtime"));
var _marked = _regeneratorRuntime.default.mark(foo);
var _marked = /*#__PURE__*/ _regeneratorRuntime.default.mark(foo);
function foo() {
return _regeneratorRuntime.default.wrap(function foo$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
var _asyncToGenerator = require("@swc/helpers/lib/_async_to_generator.js").default;
var _interopRequireDefault = require("@swc/helpers/lib/_interop_require_default.js").default;
var _regeneratorRuntime = /*#__PURE__*/ _interopRequireDefault(require("regenerator-runtime"));
_asyncToGenerator(_regeneratorRuntime.default.mark(function _callee() {
_asyncToGenerator(/*#__PURE__*/ _regeneratorRuntime.default.mark(function _callee() {
var sleep, result;
return _regeneratorRuntime.default.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -1,6 +1,6 @@
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
import regeneratorRuntime from "regenerator-runtime";
_async_to_generator(regeneratorRuntime.mark(function _callee() {
_async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
var sleep, result;
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -4,7 +4,7 @@ function fn() {
return _fn.apply(this, arguments);
}
function _fn() {
_fn = _async_to_generator(regeneratorRuntime.mark(function _callee() {
_fn = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
var key;
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -12,7 +12,7 @@ var Foo = /*#__PURE__*/ function() {
{
key: "sendSomeMessage",
value: function sendSomeMessage(_parent, _param, _param1) {
return _async_to_generator(regeneratorRuntime.mark(function _callee() {
return _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
var _input, toNumber, messageBody, all, dataSources;
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -3,7 +3,7 @@ import _object_without_properties from "@swc/helpers/src/_object_without_propert
import regeneratorRuntime from "regenerator-runtime";
var resolver = {
sendSomeMessage: function sendSomeMessage(_parent, _param, _param1) {
return _async_to_generator(regeneratorRuntime.mark(function _callee() {
return _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
var _input, toNumber, messageBody, all, dataSources;
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -1,7 +1,7 @@
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
import regeneratorRuntime from "regenerator-runtime";
export var foo = function() {
var _ref = _async_to_generator(regeneratorRuntime.mark(function _callee() {
var _ref = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -1,6 +1,6 @@
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
import regeneratorRuntime from "regenerator-runtime";
var handleSubmit = useMutation(_async_to_generator(regeneratorRuntime.mark(function _callee() {
var handleSubmit = useMutation(/*#__PURE__*/ _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
var res, errors;
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -5,7 +5,7 @@ import regeneratorRuntime from "regenerator-runtime";
import { Transaction } from "@solana/web3.js";
import { WalletNotConnectedError } from "@solana/wallet-adapter-base";
export var getErrorForTransaction = function() {
var _ref = _async_to_generator(regeneratorRuntime.mark(function _callee(connection, txid) {
var _ref = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee(connection, txid) {
var tx, errors;
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
@ -54,7 +54,7 @@ export function sendTransactionsWithManualRetry(connection, wallet, instructions
return _sendTransactionsWithManualRetry.apply(this, arguments);
}
function _sendTransactionsWithManualRetry() {
_sendTransactionsWithManualRetry = _async_to_generator(regeneratorRuntime.mark(function _callee(connection, wallet, instructions, signers) {
_sendTransactionsWithManualRetry = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee(connection, wallet, instructions, signers) {
var stopPoint, tries, lastInstructionsLength, toRemoveSigners, ids, filteredSigners, id, txs;
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
@ -133,7 +133,7 @@ function _sendTransactionsWithManualRetry() {
return _sendTransactionsWithManualRetry.apply(this, arguments);
}
export var sendTransactions = function() {
var _ref = _async_to_generator(regeneratorRuntime.mark(function _callee(connection, wallet, instructionSet, signersSet) {
var _ref = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee(connection, wallet, instructionSet, signersSet) {
var _loop, sequenceType, commitment, successCallback, failCallback, block, beforeTransactions, afterTransactions, _unsignedTxns, unsignedTxns, i, partiallySignedTransactions, fullySignedTransactions, signedTxns, pendingTxns, i1, signedTxnPromise, result, _args = arguments;
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
@ -294,7 +294,7 @@ export var sendTransactions = function() {
};
}();
export var sendTransaction = function() {
var _ref = _async_to_generator(regeneratorRuntime.mark(function _callee(connection, wallet, instructions, signers) {
var _ref = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee(connection, wallet, instructions, signers) {
var awaitConfirmation, commitment, includesFeePayer, block, transaction, _transaction, _transaction1, _transaction2, rawTransaction, options, txid, slot, confirmation, errors, _args = arguments;
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
@ -410,7 +410,7 @@ export var sendTransaction = function() {
};
}();
export var sendTransactionWithRetry = function() {
var _ref = _async_to_generator(regeneratorRuntime.mark(function _callee(connection, wallet, instructions, signers) {
var _ref = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee(connection, wallet, instructions, signers) {
var commitment, includesFeePayer, block, beforeSend, transaction, _transaction, _transaction1, _transaction2, ref, txid, slot, _args = arguments;
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
@ -498,7 +498,7 @@ export function sendSignedTransaction(_) {
return _sendSignedTransaction.apply(this, arguments);
}
function _sendSignedTransaction() {
_sendSignedTransaction = _async_to_generator(regeneratorRuntime.mark(function _callee(param) {
_sendSignedTransaction = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee(param) {
var signedTransaction, connection, _timeout, timeout, rawTransaction, startTime, slot, txid, done, confirmation, simulateResult, i, line;
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
@ -515,7 +515,7 @@ function _sendSignedTransaction() {
txid = _ctx.sent;
console.log("Started awaiting confirmation for", txid);
done = false;
_async_to_generator(regeneratorRuntime.mark(function _callee() {
_async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:
@ -639,7 +639,7 @@ function simulateTransaction(connection, transaction, commitment) {
return _simulateTransaction.apply(this, arguments);
}
function _simulateTransaction() {
_simulateTransaction = _async_to_generator(regeneratorRuntime.mark(function _callee(connection, transaction, commitment) {
_simulateTransaction = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee(connection, transaction, commitment) {
var signData, wireTransaction, encodedTransaction, config, args, res;
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
@ -684,7 +684,7 @@ function awaitTransactionSignatureConfirmation(txid, timeout, connection) {
return _awaitTransactionSignatureConfirmation.apply(this, arguments);
}
function _awaitTransactionSignatureConfirmation() {
_awaitTransactionSignatureConfirmation = _async_to_generator(regeneratorRuntime.mark(function _callee(txid, timeout, connection) {
_awaitTransactionSignatureConfirmation = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee(txid, timeout, connection) {
var commitment, queryStatus, done, status, subId, _args = arguments;
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
@ -699,7 +699,7 @@ function _awaitTransactionSignatureConfirmation() {
subId = 0;
_ctx.next = 6;
return new Promise(function() {
var _ref = _async_to_generator(regeneratorRuntime.mark(function _callee(resolve, reject) {
var _ref = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee(resolve, reject) {
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:
@ -739,7 +739,7 @@ function _awaitTransactionSignatureConfirmation() {
break;
}
// eslint-disable-next-line no-loop-func
_async_to_generator(regeneratorRuntime.mark(function _callee() {
_async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
var signatureStatuses;
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -5,7 +5,7 @@ var A = function A() {
"use strict";
_class_call_check(this, A);
var _this = this;
this.foo = _async_to_generator(regeneratorRuntime.mark(function _callee() {
this.foo = /*#__PURE__*/ _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:
@ -17,7 +17,7 @@ var A = function A() {
}, _callee);
}));
var _this1 = this;
this.bar = _async_to_generator(regeneratorRuntime.mark(function _callee() {
this.bar = /*#__PURE__*/ _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -2,11 +2,11 @@ import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
class A {
constructor(){
var _this = this;
this.foo = _async_to_generator(function*() {
this.foo = /*#__PURE__*/ _async_to_generator(function*() {
_this.x();
});
var _this1 = this;
this.bar = _async_to_generator(function*() {
this.bar = /*#__PURE__*/ _async_to_generator(function*() {
_this1.x();
});
}

View File

@ -12,7 +12,7 @@ var A = /*#__PURE__*/ function() {
key: "method",
value: function method() {
var _this = this;
this.foo = _async_to_generator(regeneratorRuntime.mark(function _callee() {
this.foo = /*#__PURE__*/ _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:
@ -24,7 +24,7 @@ var A = /*#__PURE__*/ function() {
}, _callee);
}));
var _this1 = this;
this.bar = _async_to_generator(regeneratorRuntime.mark(function _callee() {
this.bar = /*#__PURE__*/ _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -9,7 +9,7 @@ var Router = /*#__PURE__*/ function() {
var _proto = Router.prototype;
_proto.change = function change(method, url, as, options, forcedScroll) {
var _this = this;
return _async_to_generator(regeneratorRuntime.mark(function _callee() {
return _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
var shouldResolveHref, prevLocale, parsedAs, localePathResult, didNavigate, ref, detectedDomain, asNoBasePath, _shallow, shallow, routeProps, cleanedAs, localeChange, parsed, pathname, query, pages, rewrites, ref1, resolvedAs, rewritesResult, route, parsedAs1, asPathname, routeRegex, routeMatch, shouldInterpolate, interpolatedAs, missingParams, ref2, ref3, routeInfo, error, props, __N_SSG, __N_SSP, destination, parsedHref, ref4, newUrl, newAs, notFoundRoute, isValidShallowRoute, _scroll, shouldScroll, resetScroll;
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -8,7 +8,7 @@ export function getStaticProps() {
return _getStaticProps.apply(this, arguments);
}
function _getStaticProps() {
_getStaticProps = _async_to_generator(regeneratorRuntime.mark(function _callee() {
_getStaticProps = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -1,5 +1,5 @@
{
"mappings": "AAAA;;AAAA,eAAe,SAASA,UAAU,CAAC,KAAQ,EAAE;QAAV,AAAEC,IAAI,GAAN,KAAQ,CAANA,IAAI,AAAE;IACvC,qBAAO,oBAACC,KAAG,QAAED,IAAI,CAACE,GAAG,CAAO,CAAC;CAChC,CAAA;AAED,gBAAsBC,cAAc;WAAdA,eAAc;CAQnC;SARqBA,eAAc;IAAdA,eAAc,GAA7B,4CAAA,mBAAgC;;;;iDAC5B;wBACHC,KAAK,EAAE;4BACHJ,IAAI,EAAE;gCACFE,GAAG,EAAE,KAAK;6BACb;yBACJ;qBACJ;;;;;;KACJ,EAAA;WARqBC,eAAc",
"mappings": "AAAA;;AAAA,eAAe,SAASA,UAAU,CAAC,KAAQ,EAAE;QAAV,AAAEC,IAAI,GAAN,KAAQ,CAANA,IAAI,AAAE;IACvC,qBAAO,oBAACC,KAAG,QAAED,IAAI,CAACE,GAAG,CAAO,CAAC;CAChC,CAAA;AAED,gBAAsBC,cAAc;WAAdA,eAAc;CAQnC;SARqBA,eAAc;IAAdA,eAAc,GAA7B,0DAAA,mBAAgC;;;;iDAC5B;wBACHC,KAAK,EAAE;4BACHJ,IAAI,EAAE;gCACFE,GAAG,EAAE,KAAK;6BACb;yBACJ;qBACJ;;;;;;KACJ,EAAA;WARqBC,eAAc",
"names": [
"StaticPage",
"data",

View File

@ -1,6 +1,6 @@
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
import regeneratorRuntime from "regenerator-runtime";
it("should compress avif smaller than webp and smaller than jpg", _async_to_generator(regeneratorRuntime.mark(function _callee() {
it("should compress avif smaller than webp and smaller than jpg", /*#__PURE__*/ _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
var query, res1, res2, res3, avif, webp, jpeg;
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -1,5 +1,5 @@
{
"mappings": "AAAAA;;AAAAA,EAAE,CAAC,6DAA6D,EAAE,4CAAA,mBAAY;QACpEC,KAAK,EACLC,IAAI,EAQJC,IAAI,EAQJC,IAAI,EAQJC,IAAI,EACJC,IAAI,EACJC,IAAI;;;;gBA3BJN,KAAK,GAAG;oBAAEO,GAAG,EAAE,WAAW;oBAAEC,CAAC,EAADA,CAAC;oBAAEC,CAAC,EAAE,EAAE;iBAAE,CAAC;;uBAC1BC,YAAY,CAACC,OAAO,EAAE,cAAc,EAAEX,KAAK,EAAE;oBAC5DY,OAAO,EAAE;wBACLC,MAAM,EAAE,YAAY;qBACvB;iBACJ,CAAC;;gBAJIZ,IAAI,YAIR,CAAA;gBACFa,MAAM,CAACb,IAAI,CAACc,MAAM,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC,CAAC;gBAC9BF,MAAM,CAACb,IAAI,CAACW,OAAO,CAACK,GAAG,CAAC,cAAc,CAAC,CAAC,CAACD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,MAAM,CAACX,IAAI,CAACY,MAAM,CAAC,CAACC,IAAI,CAAC,GAAG,CAAC,CAAC;gBAC9BF,MAAM,CAACX,IAAI,CAACS,OAAO,CAACK,GAAG,CAAC,cAAc,CAAC,CAAC,CAACD,IAAI,CAAC,YAAY,CAAC,CAAC;;uBAExCf,IAAI,CAACiB,MAAM,EAAE;;gBAA3Bd,IAAI,GAAG,UAAsBe,UAAU,CAAA;;uBACzBjB,IAAI,CAACgB,MAAM,EAAE;;gBAA3Bb,IAAI,GAAG,UAAsBc,UAAU,CAAA;;uBACzBhB,IAAI,CAACe,MAAM,EAAE;;gBAA3BZ,IAAI,GAAG,UAAsBa,UAAU,CAAA;gBAE7CC,OAAO,CAACC,GAAG,CAAC;oBAAEC,OAAO,EAAPA,OAAO;oBAAEd,CAAC,EAADA,CAAC;oBAAEJ,IAAI,EAAJA,IAAI;oBAAEC,IAAI,EAAJA,IAAI;oBAAEC,IAAI,EAAJA,IAAI;iBAAE,CAAC,CAAC;gBAE9CQ,MAAM,CAACT,IAAI,CAAC,CAACkB,YAAY,CAACjB,IAAI,CAAC,CAAC;gBAChCQ,MAAM,CAACV,IAAI,CAAC,CAACmB,YAAY,CAAClB,IAAI,CAAC,CAAC;;;;;;CACnC,EAAA,CAAC,CAAC",
"names": [
"it",
"query",

View File

@ -1,6 +1,6 @@
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
import regeneratorRuntime from "regenerator-runtime";
it("should compress avif smaller than webp and smaller than jpg", _async_to_generator(regeneratorRuntime.mark(function _callee() {
it("should compress avif smaller than webp and smaller than jpg", /*#__PURE__*/ _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
var query, res1, res2, res3, avif, webp, jpeg;
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -1,5 +1,5 @@
{
"mappings": "AAAAA;;AAAAA,EAAE,CAAC,6DAA6D,EAAE,4CAAA,mBAAY;QAOpEC,KA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CAAC,CAACmB,YAAY,CAAClB,IAAI,CAAC,CAAC;;;;;;CACnC,EAAA,CAAC,CAAC",
"names": [
"it",
"query",

View File

@ -1,6 +1,6 @@
// @target: es6
import regeneratorRuntime from "regenerator-runtime";
var _marked = regeneratorRuntime.mark(foo);
var _marked = /*#__PURE__*/ regeneratorRuntime.mark(foo);
function foo() {
var v;
return regeneratorRuntime.wrap(function foo$(_ctx) {

View File

@ -1,6 +1,6 @@
// @target: es6
import regeneratorRuntime from "regenerator-runtime";
var _marked = regeneratorRuntime.mark(foo);
var _marked = /*#__PURE__*/ regeneratorRuntime.mark(foo);
function foo() {
return regeneratorRuntime.wrap(function foo$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -1,7 +1,7 @@
// @target: es6
import _define_property from "@swc/helpers/src/_define_property.mjs";
import regeneratorRuntime from "regenerator-runtime";
var _marked = regeneratorRuntime.mark(foo);
var _marked = /*#__PURE__*/ regeneratorRuntime.mark(foo);
function foo() {
var v;
return regeneratorRuntime.wrap(function foo$(_ctx) {

View File

@ -1,6 +1,6 @@
// @target: es6
import regeneratorRuntime from "regenerator-runtime";
var v = regeneratorRuntime.mark(function v() {
var v = /*#__PURE__*/ regeneratorRuntime.mark(function v() {
return regeneratorRuntime.wrap(function v$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -1,6 +1,6 @@
// @target: es6
import regeneratorRuntime from "regenerator-runtime";
var v = regeneratorRuntime.mark(function foo() {
var v = /*#__PURE__*/ regeneratorRuntime.mark(function foo() {
return regeneratorRuntime.wrap(function foo$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -1,10 +1 @@
import regeneratorRuntime from "regenerator-runtime";
regeneratorRuntime.mark(function foo() {
return regeneratorRuntime.wrap(function(_ctx) {
for(;;)switch(_ctx.prev = _ctx.next){
case 0:
case "end":
return _ctx.stop();
}
}, foo);
});

View File

@ -1,7 +1,7 @@
// @target: es6
import regeneratorRuntime from "regenerator-runtime";
var v = {
foo: regeneratorRuntime.mark(function foo() {
foo: /*#__PURE__*/ regeneratorRuntime.mark(function foo() {
return regeneratorRuntime.wrap(function foo$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -1,10 +1 @@
import regeneratorRuntime from "regenerator-runtime";
regeneratorRuntime.mark(function foo() {
return regeneratorRuntime.wrap(function(_ctx) {
for(;;)switch(_ctx.prev = _ctx.next){
case 0:
case "end":
return _ctx.stop();
}
}, foo);
});

View File

@ -1,7 +1,7 @@
// @target: es6
import _define_property from "@swc/helpers/src/_define_property.mjs";
import regeneratorRuntime from "regenerator-runtime";
var v = _define_property({}, foo(), regeneratorRuntime.mark(function _callee() {
var v = _define_property({}, foo(), /*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -7,7 +7,7 @@ var C = /*#__PURE__*/ function() {
_class_call_check(this, C);
}
var _proto = C.prototype;
_proto.foo = regeneratorRuntime.mark(function foo() {
_proto.foo = /*#__PURE__*/ regeneratorRuntime.mark(function foo() {
return regeneratorRuntime.wrap(function foo$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -7,7 +7,7 @@ var C = /*#__PURE__*/ function() {
_class_call_check(this, C);
}
var _proto = C.prototype;
_proto.foo = regeneratorRuntime.mark(function foo() {
_proto.foo = /*#__PURE__*/ regeneratorRuntime.mark(function foo() {
return regeneratorRuntime.wrap(function foo$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -7,7 +7,7 @@ var C = /*#__PURE__*/ function() {
_class_call_check(this, C);
}
var _proto = C.prototype;
_proto[foo] = regeneratorRuntime.mark(function _callee() {
_proto[foo] = /*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -7,7 +7,7 @@ var C = /*#__PURE__*/ function() {
_class_call_check(this, C);
}
var _proto = C.prototype;
_proto.foo = regeneratorRuntime.mark(function foo() {
_proto.foo = /*#__PURE__*/ regeneratorRuntime.mark(function foo() {
return regeneratorRuntime.wrap(function foo$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -1,7 +1,7 @@
// @target: es6
import regeneratorRuntime from "regenerator-runtime";
var v = {
foo: regeneratorRuntime.mark(function foo1() {
foo: /*#__PURE__*/ regeneratorRuntime.mark(function foo1() {
return regeneratorRuntime.wrap(function foo$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -1,12 +1 @@
import regeneratorRuntime from "regenerator-runtime";
regeneratorRuntime.mark(function foo1() {
return regeneratorRuntime.wrap(function(_ctx) {
for(;;)switch(_ctx.prev = _ctx.next){
case 0:
return _ctx.next = 2, foo;
case 2:
case "end":
return _ctx.stop();
}
}, foo1);
});

View File

@ -7,7 +7,7 @@ var C = /*#__PURE__*/ function() {
_class_call_check(this, C);
}
var _proto = C.prototype;
_proto.foo = regeneratorRuntime.mark(function foo1() {
_proto.foo = /*#__PURE__*/ regeneratorRuntime.mark(function foo1() {
return regeneratorRuntime.wrap(function foo$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -1,6 +1,6 @@
// @target: es6
import regeneratorRuntime from "regenerator-runtime";
var _marked = regeneratorRuntime.mark(foo);
var _marked = /*#__PURE__*/ regeneratorRuntime.mark(foo);
function foo() {
return regeneratorRuntime.wrap(function foo$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -1,13 +1,13 @@
// @target: es6
import regeneratorRuntime from "regenerator-runtime";
var _marked = regeneratorRuntime.mark(foo);
var _marked = /*#__PURE__*/ regeneratorRuntime.mark(foo);
function foo() {
var bar;
return regeneratorRuntime.wrap(function foo$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:
bar = function bar() {
var _marked = regeneratorRuntime.mark(quux);
var _marked = /*#__PURE__*/ regeneratorRuntime.mark(quux);
function quux() {
return regeneratorRuntime.wrap(function quux$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -1,6 +1,6 @@
// @target: es6
import regeneratorRuntime from "regenerator-runtime";
var _marked = regeneratorRuntime.mark(foo);
var _marked = /*#__PURE__*/ regeneratorRuntime.mark(foo);
function foo() {
return regeneratorRuntime.wrap(function foo$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -1,6 +1,6 @@
// @target: es6
import regeneratorRuntime from "regenerator-runtime";
var _marked = regeneratorRuntime.mark(foo);
var _marked = /*#__PURE__*/ regeneratorRuntime.mark(foo);
function foo() {
return regeneratorRuntime.wrap(function foo$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -1,6 +1,6 @@
// @target: es6
import regeneratorRuntime from "regenerator-runtime";
var _marked = regeneratorRuntime.mark(foo);
var _marked = /*#__PURE__*/ regeneratorRuntime.mark(foo);
function foo() {
return regeneratorRuntime.wrap(function foo$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -1,6 +1,6 @@
// @target: es6
import regeneratorRuntime from "regenerator-runtime";
var _marked = regeneratorRuntime.mark(foo);
var _marked = /*#__PURE__*/ regeneratorRuntime.mark(foo);
function foo() {
return regeneratorRuntime.wrap(function foo$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -1,6 +1,6 @@
// @target: es6
import regeneratorRuntime from "regenerator-runtime";
var v = regeneratorRuntime.mark(function v() {
var v = /*#__PURE__*/ regeneratorRuntime.mark(function v() {
return regeneratorRuntime.wrap(function v$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -1,6 +1,6 @@
// @target: es6
import regeneratorRuntime from "regenerator-runtime";
var _marked = regeneratorRuntime.mark(g);
var _marked = /*#__PURE__*/ regeneratorRuntime.mark(g);
function g() {
return regeneratorRuntime.wrap(function g$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -7,7 +7,7 @@ function f() {
return _f.apply(this, arguments);
}
function _f() {
_f = _async_to_generator(regeneratorRuntime.mark(function _callee() {
_f = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -6,7 +6,7 @@ function f() {
return _f.apply(this, arguments);
}
function _f() {
_f = _async_to_generator(regeneratorRuntime.mark(function _callee() {
_f = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -1,2 +1 @@
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
_async_to_generator(function*() {});

View File

@ -3,7 +3,7 @@
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
import regeneratorRuntime from "regenerator-runtime";
var foo = function() {
var _ref = _async_to_generator(regeneratorRuntime.mark(function _callee() {
var _ref = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
var v;
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -1,12 +1,2 @@
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
import regeneratorRuntime from "regenerator-runtime";
_async_to_generator(regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function(_ctx) {
for(;;)switch(_ctx.prev = _ctx.next){
case 0:
case 1:
case "end":
return _ctx.stop();
}
}, _callee);
}));

View File

@ -1,2 +1 @@
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
_async_to_generator(function*() {});

View File

@ -4,7 +4,7 @@
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
import regeneratorRuntime from "regenerator-runtime";
var foo = function() {
var _ref = _async_to_generator(regeneratorRuntime.mark(function _callee() {
var _ref = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
var v;
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -1,12 +1,2 @@
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
import regeneratorRuntime from "regenerator-runtime";
_async_to_generator(regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function(_ctx) {
for(;;)switch(_ctx.prev = _ctx.next){
case 0:
case 1:
case "end":
return _ctx.stop();
}
}, _callee);
}));

View File

@ -1,2 +1 @@
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
_async_to_generator(function*() {});

View File

@ -3,7 +3,7 @@
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
import regeneratorRuntime from "regenerator-runtime";
var foo = function() {
var _ref = _async_to_generator(regeneratorRuntime.mark(function _callee() {
var _ref = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
var v;
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -1,12 +1,2 @@
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
import regeneratorRuntime from "regenerator-runtime";
_async_to_generator(regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function(_ctx) {
for(;;)switch(_ctx.prev = _ctx.next){
case 0:
case 1:
case "end":
return _ctx.stop();
}
}, _callee);
}));

View File

@ -6,7 +6,7 @@ import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
class A {
constructor(){
var _this = this;
this.b = _async_to_generator(function*(...args) {
this.b = /*#__PURE__*/ _async_to_generator(function*(...args) {
yield Promise.resolve();
const obj = {
["a"]: ()=>_this

View File

@ -10,7 +10,7 @@ var A = function A() {
"use strict";
_class_call_check(this, A);
var _this = this;
this.b = _async_to_generator(regeneratorRuntime.mark(function _callee() {
this.b = /*#__PURE__*/ _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
var _len, args, _key, obj, _args = arguments;
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){

View File

@ -1,2 +1 @@
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
_async_to_generator(function*() {});

View File

@ -3,7 +3,7 @@
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
import regeneratorRuntime from "regenerator-runtime";
var foo = function() {
var _ref = _async_to_generator(regeneratorRuntime.mark(function _callee() {
var _ref = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -1,11 +1,2 @@
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
import regeneratorRuntime from "regenerator-runtime";
_async_to_generator(regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function(_ctx) {
for(;;)switch(_ctx.prev = _ctx.next){
case 0:
case "end":
return _ctx.stop();
}
}, _callee);
}));

View File

@ -1,2 +1 @@
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
_async_to_generator(function*() {});

View File

@ -4,7 +4,7 @@
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
import regeneratorRuntime from "regenerator-runtime";
var foo = function() {
var _ref = _async_to_generator(regeneratorRuntime.mark(function _callee() {
var _ref = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -1,11 +1,2 @@
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
import regeneratorRuntime from "regenerator-runtime";
_async_to_generator(regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function(_ctx) {
for(;;)switch(_ctx.prev = _ctx.next){
case 0:
case "end":
return _ctx.stop();
}
}, _callee);
}));

View File

@ -1,2 +1 @@
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
_async_to_generator(function*() {});

View File

@ -3,7 +3,7 @@
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
import regeneratorRuntime from "regenerator-runtime";
var foo = function() {
var _ref = _async_to_generator(regeneratorRuntime.mark(function _callee() {
var _ref = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -1,11 +1,2 @@
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
import regeneratorRuntime from "regenerator-runtime";
_async_to_generator(regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function(_ctx) {
for(;;)switch(_ctx.prev = _ctx.next){
case 0:
case "end":
return _ctx.stop();
}
}, _callee);
}));

View File

@ -13,7 +13,7 @@ var C = /*#__PURE__*/ function() {
var other = function other() {};
var _this = this, _arguments = arguments;
var fn = function() {
var _ref = _async_to_generator(regeneratorRuntime.mark(function _callee() {
var _ref = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -3,9 +3,7 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import regeneratorRuntime from "regenerator-runtime";
var C = function() {
"use strict";
function C() {
_class_call_check(this, C);
}
function C() {}
return C.prototype.method = function() {
var other = function() {}, _this = this, _arguments = arguments;
_async_to_generator(regeneratorRuntime.mark(function _callee() {

View File

@ -14,7 +14,7 @@ var C = /*#__PURE__*/ function() {
var other = function other() {};
var _this = this, _arguments = arguments;
var fn = function() {
var _ref = _async_to_generator(regeneratorRuntime.mark(function _callee() {
var _ref = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -3,9 +3,7 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import regeneratorRuntime from "regenerator-runtime";
var C = function() {
"use strict";
function C() {
_class_call_check(this, C);
}
function C() {}
return C.prototype.method = function() {
var other = function() {}, _this = this, _arguments = arguments;
_async_to_generator(regeneratorRuntime.mark(function _callee() {

View File

@ -13,7 +13,7 @@ var C = /*#__PURE__*/ function() {
var other = function other() {};
var _this = this, _arguments = arguments;
var fn = function() {
var _ref = _async_to_generator(regeneratorRuntime.mark(function _callee() {
var _ref = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -3,9 +3,7 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import regeneratorRuntime from "regenerator-runtime";
var C = function() {
"use strict";
function C() {
_class_call_check(this, C);
}
function C() {}
return C.prototype.method = function() {
var other = function() {}, _this = this, _arguments = arguments;
_async_to_generator(regeneratorRuntime.mark(function _callee() {

View File

@ -12,7 +12,7 @@ var C = /*#__PURE__*/ function() {
_proto.method = function method() {
var _this = this;
var fn = function() {
var _ref = _async_to_generator(regeneratorRuntime.mark(function _callee() {
var _ref = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -3,9 +3,7 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import regeneratorRuntime from "regenerator-runtime";
var C = function() {
"use strict";
function C() {
_class_call_check(this, C);
}
function C() {}
return C.prototype.method = function() {
var _this = this;
_async_to_generator(regeneratorRuntime.mark(function _callee() {

View File

@ -13,7 +13,7 @@ var C = /*#__PURE__*/ function() {
_proto.method = function method() {
var _this = this;
var fn = function() {
var _ref = _async_to_generator(regeneratorRuntime.mark(function _callee() {
var _ref = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -3,9 +3,7 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import regeneratorRuntime from "regenerator-runtime";
var C = function() {
"use strict";
function C() {
_class_call_check(this, C);
}
function C() {}
return C.prototype.method = function() {
var _this = this;
_async_to_generator(regeneratorRuntime.mark(function _callee() {

View File

@ -12,7 +12,7 @@ var C = /*#__PURE__*/ function() {
_proto.method = function method() {
var _this = this;
var fn = function() {
var _ref = _async_to_generator(regeneratorRuntime.mark(function _callee() {
var _ref = _async_to_generator(/*#__PURE__*/ regeneratorRuntime.mark(function _callee() {
return regeneratorRuntime.wrap(function _callee$(_ctx) {
while(1)switch(_ctx.prev = _ctx.next){
case 0:

View File

@ -3,9 +3,7 @@ import _class_call_check from "@swc/helpers/src/_class_call_check.mjs";
import regeneratorRuntime from "regenerator-runtime";
var C = function() {
"use strict";
function C() {
_class_call_check(this, C);
}
function C() {}
return C.prototype.method = function() {
var _this = this;
_async_to_generator(regeneratorRuntime.mark(function _callee() {

View File

@ -26,6 +26,6 @@ const a = ()=>0;
}();
/** @type {function(function(): string): void} */ const f = (p)=>{};
// Error (good)
f(_async_to_generator(function*() {
f(/*#__PURE__*/ _async_to_generator(function*() {
return 0;
}));

View File

@ -1,8 +1 @@
import _async_to_generator from "@swc/helpers/src/_async_to_generator.mjs";
_async_to_generator(function*() {
return 0;
}), _async_to_generator(function*() {
return 0;
}), _async_to_generator(function*() {
return 0;
});

Some files were not shown because too many files have changed in this diff Show More