Submit
Path:
~
/
/
usr
/
share
/
nodejs
/
make-async-function
/
File Content:
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(); };
Edit
Rename
Chmod
Delete
FILE
FOLDER
Name
Size
Permission
Action
index.js
448 bytes
0644
package.json
1031 bytes
0644
N4ST4R_ID | Naxtarrr