Skip to content

Commit

Permalink
src: call overload ctor from the original ctor
Browse files Browse the repository at this point in the history
Call the new constructor overload from the original constructor to
reduce code duplication.

Signed-off-by: Darshan Sen <darshan.sen@postman.com>

PR-URL: #39768
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
RaisinTen authored and targos committed Aug 22, 2021

Verified

This commit was signed with the committer’s verified signature.
DanielaE Daniela Engert
1 parent 0918ea0 commit a704c9d
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/api/callback.cc
Original file line number Diff line number Diff line change
@@ -18,13 +18,8 @@ using v8::Value;

CallbackScope::CallbackScope(Isolate* isolate,
Local<Object> 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> object,

0 comments on commit a704c9d

Please sign in to comment.