UNPKG

@whatwg-node/disposablestack

Version:

Cross Platform Smart DisposableStack API Ponyfill

13 lines (12 loc) 374 B
export class PonyfillSuppressedError extends Error { error; suppressed; // eslint-disable-next-line n/handle-callback-err constructor(error, suppressed, message) { super(message); this.error = error; this.suppressed = suppressed; this.name = 'SuppressedError'; Error.captureStackTrace(this, this.constructor); } }