Update Promise.race and Promise.all to ES11 (#3954)
Changes based on ECMA-262 v11, 25.6.4.4 and 26.6.4.1 step 3 JerryScript-DCO-1.0-Signed-off-by: Adam Szilagyi aszilagy@inf.u-szeged.hu
This commit is contained in:
@@ -79,3 +79,7 @@ var closed = false;
|
||||
delete Promise.resolve;
|
||||
Promise.all(createIterable([1,2,3], {'return': function () { closed = true; }}));
|
||||
assert (closed);
|
||||
|
||||
var arr = [];
|
||||
Object.defineProperty(arr, Symbol.species, { get: function () { assert(false) }});
|
||||
Promise.all(arr);
|
||||
|
||||
Reference in New Issue
Block a user