diff options
author | Ali Ijaz Sheikh <ofrobots@google.com> | 2018-01-31 00:49:40 +0300 |
---|---|---|
committer | Ali Ijaz Sheikh <ofrobots@google.com> | 2018-02-01 20:56:51 +0300 |
commit | ad94be84f969f0d95e8dec9994ca51c19c3ccf28 (patch) | |
tree | d4b5a1c694380ed6a8ddc4ce2df5dee34ea86e62 /src/async_wrap.cc | |
parent | a36b47b7d3bed94f1a3312cc3c2484856569eb95 (diff) |
async_hooks: clean up comments
With some of the recent work, some of the comments were no longer
representative of the code, or were otherwise unclear. This commit
fixes some obvious issues I found.
Ref: https://github.com/nodejs/node/commit/83e5215a4e8438a43b9f0002b7a43e2fd2dd37a4
Ref: https://github.com/nodejs/node/commit/0784b0440c05464f79b857f7d8698fcc953d3fb3
PR-URL: https://github.com/nodejs/node/pull/18467
Reviewed-By: Andreas Madsen <amwebdk@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Diffstat (limited to 'src/async_wrap.cc')
-rw-r--r-- | src/async_wrap.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/async_wrap.cc b/src/async_wrap.cc index 5258674ff33..706cd879901 100644 --- a/src/async_wrap.cc +++ b/src/async_wrap.cc @@ -540,12 +540,12 @@ void AsyncWrap::Initialize(Local<Object> target, // this way to allow JS and C++ to read/write each value as quickly as // possible. The fields are represented as follows: // - // kAsyncUid: Maintains the state of the next unique id to be assigned. + // kAsyncIdCounter: Maintains the state of the next unique id to be assigned. // // kDefaultTriggerAsyncId: Write the id of the resource responsible for a // handle's creation just before calling the new handle's constructor. // After the new handle is constructed kDefaultTriggerAsyncId is set back - // to 0. + // to -1. FORCE_SET_TARGET_FIELD(target, "async_id_fields", env->async_hooks()->async_id_fields().GetJSArray()); |