test262/harness/PromiseHelper.js

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(',') + "'");
}
});
}