function isBuiltin(wat, className) {
  return objectToString.call(wat) === `[object ${className}]`;
}
Checks whether given value's type is ErrorEvent
{@link isErrorEvent}.

@param wat A value to be checked.
@returns A boolean representing the result.