Skip to content

Commit a704c9d

Browse files
RaisinTentargos
authored andcommitted
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 <[email protected]> PR-URL: #39768 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Franziska Hinkelmann <[email protected]>
1 parent 0918ea0 commit a704c9d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

src/api/callback.cc

+2-7
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,8 @@ using v8::Value;
1818

1919
CallbackScope::CallbackScope(Isolate* isolate,
2020
Local<Object> object,
21-
async_context asyncContext)
22-
: private_(new InternalCallbackScope(Environment::GetCurrent(isolate),
23-
object,
24-
asyncContext)),
25-
try_catch_(isolate) {
26-
try_catch_.SetVerbose(true);
27-
}
21+
async_context async_context)
22+
: CallbackScope(Environment::GetCurrent(isolate), object, async_context) {}
2823

2924
CallbackScope::CallbackScope(Environment* env,
3025
Local<Object> object,

0 commit comments

Comments
 (0)