mirror of https://github.com/tc39/test262.git
parent
e06ede9a65
commit
e1ec3c29b3
|
@ -1193,6 +1193,7 @@ function isCanonicalizedStructurallyValidTimeZoneName(timeZone) {
|
||||||
* @exception if the test fails.
|
* @exception if the test fails.
|
||||||
*/
|
*/
|
||||||
function testArraysAreSame(expected, actual) {
|
function testArraysAreSame(expected, actual) {
|
||||||
|
var i;
|
||||||
for (i = 0; i < Math.max(actual.length, expected.length); i++) {
|
for (i = 0; i < Math.max(actual.length, expected.length); i++) {
|
||||||
if (actual[i] !== expected[i]) {
|
if (actual[i] !== expected[i]) {
|
||||||
$ERROR("Result array element at index " + i + " should be \"" +
|
$ERROR("Result array element at index " + i + " should be \"" +
|
||||||
|
|
Loading…
Reference in New Issue