Spaces:
Paused
Paused
File size: 361 Bytes
8c741f6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | 'use strict';
const internals = {};
module.exports = class AssertError extends Error {
name = 'AssertError';
constructor(message, ctor) {
super(message || 'Unknown error');
if (typeof Error.captureStackTrace === 'function') { // $lab:coverage:ignore$
Error.captureStackTrace(this, ctor);
}
}
};
|