Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGus Caplan <me@gus.host>2018-11-30 17:13:45 +0300
committerGus Caplan <me@gus.host>2018-12-03 19:25:06 +0300
commitf084e06de7b03750a80925a7aa1aefe3aed47504 (patch)
treea014956efe76cd2c1273811eb5efd4d30f784b94 /src/node_url.cc
parentdbdc9081fa723f62126ef857ee9365425e41dd9f (diff)
src: use custom TryCatch subclass
PR-URL: https://github.com/nodejs/node/pull/24751 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com>
Diffstat (limited to 'src/node_url.cc')
-rw-r--r--src/node_url.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/node_url.cc b/src/node_url.cc
index b9fda6cf43e..d5dba61ae4c 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