export default class PromiseTimeoutError extends Error {
    constructor(...args) {
        super(...args);

        this.name = 'PromiseTimeoutError';
    }
};
module.exports = function PromiseTimeoutError(message) {
    Error.captureStackTrace(this, this.constructor);
    this.name = this.constructor.name;
    this.message = message;
};

require('util').inherits(module.exports, Error);

Fix PromiseTimeoutError to properly extend Error
Fix PromiseTimeoutError to properly extend Error
