mirror of
https://github.com/tc39/test262.git
synced 2025-07-24 22:45:10 +02:00
Update two constructor tests of Array.fromAsync (#3926)
* Update two constructor tests of Array.fromAsync * Remove extra comment --------- Co-authored-by: Rezvan Mahdavi Hezaveh <rezvan@chromium.org>
This commit is contained in:
parent
59bad89898
commit
79f087814f
@ -58,9 +58,7 @@ asyncTest(async function () {
|
||||
|
||||
actualCalls.splice(0); // reset
|
||||
|
||||
// Note https://github.com/tc39/proposal-array-from-async/issues/35
|
||||
const expectedCallsForArrayLike = [
|
||||
"construct MyArray",
|
||||
"construct MyArray",
|
||||
"defineProperty A[0]",
|
||||
"defineProperty A[1]",
|
||||
|
@ -47,7 +47,6 @@ asyncTest(async function () {
|
||||
assert.sameValue(result.length, 2, "length is set on result");
|
||||
assert.sameValue(result[0], 1, "element 0 is set on result");
|
||||
assert.sameValue(result[1], 2, "element 1 is set on result");
|
||||
assert.sameValue(constructorCalls.length, 2, "constructor is called twice");
|
||||
assert.compareArray(constructorCalls[0], [], "constructor is called first with no arguments");
|
||||
assert.compareArray(constructorCalls[1], [2], "constructor is called second with a length argument");
|
||||
assert.sameValue(constructorCalls.length, 1, "constructor is called once");
|
||||
assert.compareArray(constructorCalls[0], [2], "constructor is called with a length argument");
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user