HEX
Server: Apache
System: Linux vps52061 6.8.0-85-generic #85~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Fri Sep 19 16:18:59 UTC 2 x86_64
User: design11 (105868)
PHP: 8.4.14
Disabled: NONE
Upload Files
File: //usr/share/nodejs/make-async-function/index.js
'use strict';

var getAsyncs = function getAsyncFunctions() {
	return [
		Function('return async (a, b) => a * b;')(),
		Function('return async () => {};')(),
		Function('return async function foo() {}')()
	];
};
var asyncFuncs = [];
try {
	asyncFuncs = getAsyncs();
} catch (e) { /**/ }

module.exports = function makeAsyncFunction() {
	return asyncFuncs[0];
};
module.exports.list = function makeAsyncFunctions() {
	return asyncFuncs.slice();
};