/
opt
/
canhelp
/
node_modules
/
standard-as-callback
/
built
/
/opt/canhelp/node_modules/standard-as-callback/built
mkdir
upload
Name
Size
Mode
Actions
index.d.ts
218
0644
edit
dl
rm
index.js
1305
0644
edit
dl
rm
types.d.ts
98
0644
edit
dl
rm
types.js
77
0644
edit
dl
rm
utils.d.ts
262
0644
edit
dl
rm
utils.js
602
0644
edit
dl
rm
Edit:
/opt/canhelp/node_modules/standard-as-callback/built/utils.js
(602B)
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.tryCatch = exports.errorObj = void 0; //Try catch is not supported in optimizing //compiler, so it is isolated exports.errorObj = { e: {} }; let tryCatchTarget; function tryCatcher(err, val) { try { const target = tryCatchTarget; tryCatchTarget = null; return target.apply(this, arguments); } catch (e) { exports.errorObj.e = e; return exports.errorObj; } } function tryCatch(fn) { tryCatchTarget = fn; return tryCatcher; } exports.tryCatch = tryCatch;
Save
cmd:
run