Skip to content
This repository has been archived by the owner on Aug 4, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1 from thomashoneyman/master
Browse files Browse the repository at this point in the history
Refer to Promise functions via the Promise object in FFI
  • Loading branch information
natefaubion authored Mar 30, 2020
2 parents 2c84b58 + bb259eb commit 95243a4
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions src/Web/Promise/Internal.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,18 @@ exports.finally = function(k, p) {
return p.finally(k);
};

exports.resolve = Promise.resolve;
exports.reject = Promise.reject;
exports.all = Promise.all;
exports.race = Promise.race;
exports.resolve = function(a) {
return Promise.resolve(a);
};

exports.reject = function(a) {
return Promise.reject(a);
};

exports.all = function(a) {
return Promise.all(a);
};

exports.race = function(a) {
return Promise.race(a);
};

0 comments on commit 95243a4

Please sign in to comment.