test262/harness/compareArray.js

16 lines
277 B
JavaScript
Raw Normal View History

//-----------------------------------------------------------------------------
function compareArray(a, b) {
if (b.length !== a.length) {
return false;
}
for (var i = 0; i < a.length; i++) {
if (b[i] !== a[i]) {
return false;
}
}
return true;
}