static _deserializeError(value) {
    const error = new Error(value.message);
    error.stack = value.stack;
    Object.assign(error, value);
    delete error.__type;
    return error;
  }
Used internally by {@link SerializableEvent.deserialize}; creates an `Error`
from an `Error`-like (serialized) object
@ignore
@param {Object} value - An Error-like value
@returns {Error} Real error