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