diff options
author | Darshan Sen <darshan.sen@postman.com> | 2021-08-17 18:02:38 +0300 |
---|---|---|
committer | Node.js GitHub Bot <github-bot@iojs.org> | 2021-08-21 09:53:50 +0300 |
commit | e58592e49fe1374e46e3d4825198e51784dcde2d (patch) | |
tree | 301f1c226814f32ffa19d4da19cb518ff68ce720 /src/api | |
parent | 16853c9d551275dce5390e10a1f1704e9954430b (diff) |
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 <darshan.sen@postman.com>
PR-URL: https://github.com/nodejs/node/pull/39768
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Franziska Hinkelmann <franziska.hinkelmann@gmail.com>
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/callback.cc | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/src/api/callback.cc b/src/api/callback.cc index 8f9d617d1ea..fb0e5586eb4 100644 --- a/src/api/callback.cc +++ b/src/api/callback.cc @@ -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, |