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:
Rezvan Mahdavi Hezaveh 2023-09-18 17:45:49 -07:00 committed by GitHub
parent 59bad89898
commit 79f087814f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 5 deletions

View File

@ -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]",

View File

@ -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");
});