function supportsErrorEvent() {
  try {
    new ErrorEvent('');
    return true;
  } catch (e) {
    return false;
  }
}
Tells whether current environment supports DOMError objects
{@link supportsDOMError}.

@returns Answer to the given question.