projects
/
platform
/
framework
/
web
/
wrtjs.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[SignalingServer] Optimize dependent modules
[platform/framework/web/wrtjs.git]
/
device_home
/
node_modules
/
p-try
/
index.js
1
'use strict';
2
3
const pTry = (fn, ...arguments_) => new Promise(resolve => {
4
resolve(fn(...arguments_));
5
});
6
7
module.exports = pTry;
8
// TODO: remove this in the next major version
9
module.exports.default = pTry;