-
Notifications
You must be signed in to change notification settings - Fork 30.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Async hooks rename #14152
Async hooks rename #14152
Changes from all commits
82ca354
e50fa6b
be5dbc5
1125791
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,8 +18,8 @@ assert.throws(() => new AsyncResource('invalid_trigger_id', null), | |
/^RangeError: triggerAsyncId must be an unsigned integer$/); | ||
|
||
assert.strictEqual( | ||
typeof new AsyncResource('default_trigger_id').triggerAsyncId(), | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This change wasn't needed. But when I looked for the |
||
'number' | ||
new AsyncResource('default_trigger_id').triggerAsyncId(), | ||
async_hooks.executionAsyncId() | ||
); | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
// create first custom event 'alcazares' with triggerAsyncId derived | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So just an FYI since this effectively changes the signature of the ctor (now
AsyncResource.length == 1
it would have beensome do consider itsemver-major
, but since this congruent with the docs, I'd call this a bug fix.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also this is still officially experimental, which should give us more flexibility.