Require dispatchEvent to return void.