Fix IE10 explosion on instantiation of ErrorEvent.