1'use strict'; 2 3const pTry = (fn, ...arguments_) => new Promise(resolve => { 4 resolve(fn(...arguments_)); 5}); 6 7module.exports = pTry; 8// TODO: remove this in the next major version 9module.exports.default = pTry; 10