diff --git a/src/env-inl.h b/src/env-inl.h index 793dc72e0db..56a96def344 100644 --- a/src/env-inl.h +++ b/src/env-inl.h @@ -776,10 +776,10 @@ inline void Environment::ThrowRangeError(const char* errmsg) { } inline void Environment::ThrowError( - v8::Local (*fun)(v8::Local), + v8::Local (*fun)(v8::Local, v8::Local), const char* errmsg) { v8::HandleScope handle_scope(isolate()); - isolate()->ThrowException(fun(OneByteString(isolate(), errmsg))); + isolate()->ThrowException(fun(OneByteString(isolate(), errmsg), {})); } inline void Environment::ThrowErrnoException(int errorno, diff --git a/src/env.h b/src/env.h index afe67d2237a..00acfeb4060 100644 --- a/src/env.h +++ b/src/env.h @@ -1016,7 +1016,7 @@ class Environment : public MemoryRetainer { }; private: - inline void ThrowError(v8::Local (*fun)(v8::Local), + inline void ThrowError(v8::Local (*fun)(v8::Local, v8::Local), const char* errmsg); void TrackContext(v8::Local context); void UntrackContext(v8::Local context);