Transform compareArray -> assert.compareArray: test/built-ins/Proxy/**/*.js (#3235)

This commit is contained in:
Rick Waldron 2021-10-05 22:42:02 -04:00 committed by GitHub
parent c44eeadcae
commit aea4ae2059
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -23,14 +23,14 @@ for (x in p) {
forInResults.push(x);
}
assert(compareArray(forInResults, ["0", "1", "2"]));
assert.compareArray(forInResults, ["0", "1", "2"]);
var forOfResults = [];
for (x of p) {
forOfResults.push(x);
}
assert(compareArray(forOfResults, [1, 2, 3]));
assert.compareArray(forOfResults, [1, 2, 3]);
var itor = p[Symbol.iterator]();
var next = itor.next();