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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user