1
0
mirror of https://github.com/tc39/test262.git synced 2025-04-08 19:35:28 +02:00

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

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

@ -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();