Skip to content

async_hooks: fix default nextTick triggerAsyncId#14026

Closed
AndreasMadsen wants to merge 4 commits intonodejs:masterfrom
AndreasMadsen:async-hooks-resource-null
Closed

async_hooks: fix default nextTick triggerAsyncId#14026
AndreasMadsen wants to merge 4 commits intonodejs:masterfrom
AndreasMadsen:async-hooks-resource-null

Conversation

@AndreasMadsen
Copy link
Member

@AndreasMadsen AndreasMadsen commented Jul 1, 2017

Checklist
  • make -j4 test (UNIX), or vcbuild test (Windows) passes
  • tests and/or benchmarks are included
  • commit message follows commit guidelines
Affected core subsystem(s)

async_hooks

In the case where triggerAsyncId is null it should default to the
current executionAsyncId. This worked but as a side-effect the resource
object was changed too.

This fix also makes the null check more strict. EmitInitS is not a
documented API, thus there is no reason to be flexible in its input.

/cc @nodejs/async_hooks

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

async_hooks Issues and PRs related to the async hooks subsystem. process Issues and PRs related to the process subsystem.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants