Files
NapCatQQ/.pnpm-store/v3/files/bb/c55e7b6042e6dfe07807ad6102bcd7f15674237af74016c0b511d46b420fec9bbcaeadbfe87e27587df95693f55b3a8b89688dd53146152e6d34736e16cc97
T
TanTan e311ca3275
Build NapCat Artifacts / Type Check & Test (push) Waiting to run
docs: 仓库链接指向本镜像仓库
2026-11-13 09:25:58 +08:00

19 lines
380 B
Plaintext

'use strict';
/** @type {import('.').AsyncFunctionConstructor | false} */
var cached;
/** @type {import('.')} */
module.exports = function getAsyncFunction() {
if (typeof cached === 'undefined') {
try {
// eslint-disable-next-line no-new-func
cached = Function('return async function () {}')().constructor;
} catch (e) {
cached = false;
}
}
return cached;
};