Skip to content

Commit 264d129

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 <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Shelley Vohr <[email protected]> Reviewed-By: Sakthipriyan Vairamani <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
1 parent b29b836 commit 264d129

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)