diff options
author | David Corona <davesters81@gmail.com> | 2018-10-12 09:55:13 -0700 |
---|---|---|
committer | Anna Henningsen <anna@addaleax.net> | 2018-10-15 00:13:01 +0200 |
commit | 8ce99faa5073298fcec9be91a30e3aa98a8620d3 (patch) | |
tree | 3b7261ec67695d27d7abd1ffb0660b768cdec01c /src/async_wrap.cc | |
parent | fd230c131deb049ea027fda87bc20b24efd6a4f5 (diff) | |
download | node-new-8ce99faa5073298fcec9be91a30e3aa98a8620d3.tar.gz |
src: move default assignment of async_id_ in async_wrap.h
Moving the default assignment of async_id from the constructor in
async_wrap.cc to class definition in async_wrap.h
PR-URL: https://github.com/nodejs/node/pull/23495
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Shelley Vohr <codebytere@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Diffstat (limited to 'src/async_wrap.cc')
-rw-r--r-- | src/async_wrap.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/async_wrap.cc b/src/async_wrap.cc index 596fcc8356..29bd64f2c5 100644 --- a/src/async_wrap.cc +++ b/src/async_wrap.cc @@ -563,7 +563,6 @@ AsyncWrap::AsyncWrap(Environment* env, CHECK_NE(provider, PROVIDER_NONE); CHECK_GE(object->InternalFieldCount(), 1); - async_id_ = -1; // Use AsyncReset() call to execute the init() callbacks. AsyncReset(execution_async_id, silent); } |