electron/spec-main/fixtures/remote/promise.js

6 lines
116 B
JavaScript
Raw Normal View History

exports.twicePromise = function (promise) {
return promise.then(function (value) {
2020-03-20 20:28:31 +00:00
return value * 2;
});
};