blob: db858da29252b8f5772d6ec4df23577718211c19 [file] [log] [blame]
'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;