From abfd71b64c977f5915ad8d9f029fb7a18dc8a312 Mon Sep 17 00:00:00 2001 From: Darshan Sen Date: Tue, 17 Aug 2021 20:32:38 +0530 Subject: [PATCH] src: call overload ctor from the original ctor Call the new constructor overload from the original constructor to reduce code duplication. Signed-off-by: Darshan Sen PR-URL: https://github.com/nodejs/node/pull/39768 Reviewed-By: James M Snell Reviewed-By: Anna Henningsen Reviewed-By: Franziska Hinkelmann --- src/api/callback.cc | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/api/callback.cc b/src/api/callback.cc index 46f17ba74e9528..798a28662f3077 100644 --- a/src/api/callback.cc +++ b/src/api/callback.cc @@ -19,13 +19,8 @@ using v8::Value; CallbackScope::CallbackScope(Isolate* isolate, Local object, - async_context asyncContext) - : private_(new InternalCallbackScope(Environment::GetCurrent(isolate), - object, - asyncContext)), - try_catch_(isolate) { - try_catch_.SetVerbose(true); -} + async_context async_context) + : CallbackScope(Environment::GetCurrent(isolate), object, async_context) {} CallbackScope::CallbackScope(Environment* env, Local object,