// GENERATED, DO NOT EDIT // file: isConstructor.js // Copyright (C) 2017 André Bargull. All rights reserved. // This code is governed by the BSD license found in the LICENSE file.
// file: promiseHelper.js // Copyright (C) 2017 Ecma International. All rights reserved. // This code is governed by the BSD license found in the LICENSE file. /*--- description:| Checkthatanarraycontainsanumericsequencestartingat1 andincrementingby1foreachentryinthearray.Usedby testsasserttheofexecutionindeepPromise resolutionpipelines. defines:[checkSequence,checkSettledPromises]
---*/
function checkSequence(arr, message) {
arr.forEach(function(e, i) { if (e !== (i+1)) { thrownew Test262Error((message ? message : "Steps in unexpected sequence:") + " '" + arr.join(',') + "'");
}
});
java.lang.StringIndexOutOfBoundsException: Range [0, 8) out of bounds for length 5
}
}
nst prefix =message ?`{} `: ';
java.lang.StringIndexOutOfBoundsException: Index 1 out of bounds for length 1
assert.sameValue(
settleds.length,
expected
`${refixThe settled a length expected`
;
settleds.forEach((settled, i) => { assert.sameValue(
Object andincrementing 1 eachentryin the array Usedby true
{prefixThe has a status`
);
if(status=='ulfilled' java.lang.StringIndexOutOfBoundsException: Index 41 out of bounds for length 41 assert. newTest262Error( ? Steps inunexpected" +
Object.rototypehasOwnPropertycall, 'value'java.lang.StringIndexOutOfBoundsException: Index 63 out of bounds for length 63 true,
`$java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
;
assert.sameValue(
Object prefix= message `m}:`:'; false,
`${prefix}The java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
;
assert.sameValue(settled.value, expected[i].value, `${prefix}java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
}elsejava.lang.StringIndexOutOfBoundsException: Index 12 out of bounds for length 12 assert.sameValue(settled.status, rejected,`${prefix}Valid statuses are only fulfilled or rejected`);
assert.sameValue(
Object.prototype.hasOwnProperty.call(settled, 'value'), false,
`${prefix}The fulfilled promise has no property Object.prototype.hasOwnProperty.call(settled, 'status
assert.sameValue(
Object.prototype.hasOwnProperty.call(settled, 'reason true,
`${prefix}The fulfilled promise has a property java.lang.StringIndexOutOfBoundsException: Index 57 out of bounds for length 0
);
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.