Implement Promise.any and AggregateError Object (#4623)

JerryScript-DCO-1.0-Signed-off-by: Bence Gabor Kis kisbg@inf.u-szeged.hu
This commit is contained in:
kisbg
2021-03-22 12:42:20 +01:00
committed by GitHub
parent edd2f20397
commit 22ebb00a4c
25 changed files with 744 additions and 174 deletions
+12
View File
@@ -29,3 +29,15 @@ for (var idx = 0; idx < items.length; idx++) {
assert ((new type).name === expected_name);
}
assert (AggregateError.name === "AggregateError");
assert (new AggregateError([]).name === "AggregateError")
try
{
new AggregateError.name === "TypeError";
}
catch(e)
{
assert (e instanceof TypeError)
}