summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAli Ijaz Sheikh <ofrobots@google.com>2018-01-30 13:49:40 -0800
committerAli Ijaz Sheikh <ofrobots@google.com>2018-02-01 09:56:51 -0800
commitad94be84f969f0d95e8dec9994ca51c19c3ccf28 (patch)
treed4b5a1c694380ed6a8ddc4ce2df5dee34ea86e62 /src
parenta36b47b7d3bed94f1a3312cc3c2484856569eb95 (diff)
downloadandroid-node-v8-ad94be84f969f0d95e8dec9994ca51c19c3ccf28.tar.gz
android-node-v8-ad94be84f969f0d95e8dec9994ca51c19c3ccf28.tar.bz2
android-node-v8-ad94be84f969f0d95e8dec9994ca51c19c3ccf28.zip
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')
-rw-r--r--src/async_wrap.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/async_wrap.cc b/src/async_wrap.cc
index 5258674ff3..706cd87990 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());