diff --git a/util/src/util_js.ts b/util/src/util_js.ts index c3f91ac13bd9a3bc1aa6bd014025d970112fc1cd..63f115836f10c1485694d21cf8b4b930cf68004e 100644 --- a/util/src/util_js.ts +++ b/util/src/util_js.ts @@ -441,7 +441,7 @@ function callbackWrapper(original : Fn) : void Object.defineProperties(cb, descriptors); } -function promiseWrapper(func : Function) : Function +function promisify(func : Function) : Function { return function (...args : Array) { return new Promise((resolve, reject) => { @@ -1011,7 +1011,7 @@ export default { printf: printf, getErrorString: getErrorString, callbackWrapper: callbackWrapper, - promiseWrapper: promiseWrapper, + promisify: promisify, createExternalType: createExternalType, TextEncoder: TextEncoder, TextDecoder: TextDecoder,