From a704c9dfcef5762f2f28dc64fbef10629df1502c 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 8f9d617d1eaf3f..fb0e5586eb400a 100644 --- a/src/api/callback.cc +++ b/src/api/callback.cc @@ -18,13 +18,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,