diff options
Diffstat (limited to 'src/node_url.cc')
-rw-r--r-- | src/node_url.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/node_url.cc b/src/node_url.cc index b9fda6cf43..d5dba61ae4 100644 --- a/src/node_url.cc +++ b/src/node_url.cc @@ -11,6 +11,8 @@ namespace node { +using errors::TryCatchScope; + using v8::Array; using v8::Context; using v8::Function; @@ -25,7 +27,6 @@ using v8::NewStringType; using v8::Null; using v8::Object; using v8::String; -using v8::TryCatch; using v8::Undefined; using v8::Value; @@ -2406,7 +2407,7 @@ const Local<Value> URL::ToObject(Environment* env) const { MaybeLocal<Value> ret; { - FatalTryCatch try_catch(env); + TryCatchScope try_catch(env, TryCatchScope::CatchMode::kFatal); // The SetURLConstructor method must have been called already to // set the constructor function used below. SetURLConstructor is |