Skip to content

Commit 84aa6b2

Browse files
davestersMylesBorins
authored andcommitted
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: #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>
1 parent b6b3dde commit 84aa6b2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/async_wrap.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ class AsyncWrap : public BaseObject {
201201
inline AsyncWrap();
202202
const ProviderType provider_type_;
203203
// Because the values may be Reset(), cannot be made const.
204-
double async_id_;
204+
double async_id_ = -1;
205205
double trigger_async_id_;
206206
};
207207

0 commit comments

Comments
 (0)