Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup: add comment explaining the test
  • Loading branch information
apapirovski committed Jun 5, 2019
commit c5c3c6fd9c62e9bedea9d4507aaf1158a20bee3f
3 changes: 3 additions & 0 deletions test/async-hooks/test-late-hook-enable.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ const common = require('../common');
const assert = require('assert');
const async_hooks = require('async_hooks');

// Checks that enabling async hooks in a callback actually
// triggers after & destroy as expected.

const fnsToTest = [setTimeout, setImmediate, (cb) => {
process.nextTick(() => {
cb();
Expand Down