mirror of https://github.com/tc39/test262.git
12 lines
314 B
JavaScript
12 lines
314 B
JavaScript
//-----------------------------------------------------------------------------
|
|
function checkSequence(arr, message) {
|
|
arr.forEach(function(e, i) {
|
|
if (e !== (i+1)) {
|
|
$ERROR((message ? message : "Steps in unexpected sequence:") +
|
|
" '" + arr.join(',') + "'");
|
|
}
|
|
});
|
|
|
|
return true;
|
|
}
|