Sign in
cobalt
/
cobalt
/
3dc8b3855f2b32702936add58a952cac6687ac3d
/
.
/
third_party
/
devtools
/
node_modules
/
p-try
/
index.js
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
;