Files
julia-buildpkg/node_modules/p-try/index.js
David Anthoff c0c6ce37ca Add node deps
2019-09-14 21:05:22 -07:00

10 lines
211 B
JavaScript

'use strict';
const pTry = (fn, ...arguments_) => new Promise(resolve => {
resolve(fn(...arguments_));
});
module.exports = pTry;
// TODO: remove this in the next major version
module.exports.default = pTry;