update v8 patch to handle error cases