/
buuded
/
app-web-project
Обзор
Документация
Войти
/
buuded
/
app-web-project
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
node_modules/async-function/legacy.js
17 строк
380 B
buuded
first-commit
27 янв 2025, 10:32
27 янв 2025, 10:32
9efc400
Код
Авторство
О чём код?
'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; };