in x-test.js [938:953]
static bail(context, error, options) {
if (!context.state.ended) {
if (error && error.stack) {
XTestRoot.log(context, XTestTap.diagnostic(error.stack));
}
if (options?.testId) {
const test = context.state.tests[options.testId]; // eslint-disable-line no-shadow
test.error = error;
const href = test.href;
XTestRoot.log(context, XTestTap.bailOut(href));
} else {
XTestRoot.log(context, XTestTap.bailOut());
}
XTestRoot.end(context);
}
}