We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b021313 commit 4748eeeCopy full SHA for 4748eee
src/env-inl.h
@@ -773,8 +773,9 @@ inline void Environment::ThrowRangeError(const char* errmsg) {
773
v8::Exception::RangeError(OneByteString(isolate(), errmsg)));
774
}
775
776
-inline void Environment::ThrowError(V8ExceptionConstructorNew fun,
777
- const char* errmsg) {
+inline void Environment::ThrowError(
+ v8::Local<v8::Value> (*fun)(v8::Local<v8::String>, v8::Local<v8::Value>),
778
+ const char* errmsg) {
779
v8::HandleScope handle_scope(isolate());
780
isolate()->ThrowException(fun(OneByteString(isolate(), errmsg), {}));
781
0 commit comments