Implement other routines of Promise (#1729)
Add Promise.resolve, Promise.reject, Promise.race, Promise.all and Promise.prototype.catch Also it fixes the issue 1763 JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang zidong.jiang@intel.com
This commit is contained in:
@@ -13,4 +13,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
assert (Promise.prototype.length === 1);
|
||||
Promise.resolve("abc").then(function(x)
|
||||
{
|
||||
assert (x === "abc");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user