Skip to content

Commit 4748eee

Browse files
pthiervictorgomes
authored andcommitted
[env] Fix ThrowError
Error introduced when resolving merge-conflict.
1 parent b021313 commit 4748eee

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/env-inl.h

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,8 +773,9 @@ inline void Environment::ThrowRangeError(const char* errmsg) {
773773
v8::Exception::RangeError(OneByteString(isolate(), errmsg)));
774774
}
775775

776-
inline void Environment::ThrowError(V8ExceptionConstructorNew fun,
777-
const char* errmsg) {
776+
inline void Environment::ThrowError(
777+
v8::Local<v8::Value> (*fun)(v8::Local<v8::String>, v8::Local<v8::Value>),
778+
const char* errmsg) {
778779
v8::HandleScope handle_scope(isolate());
779780
isolate()->ThrowException(fun(OneByteString(isolate(), errmsg), {}));
780781
}

0 commit comments

Comments
 (0)