mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 21:19:50 +01:00
056e68749c
This commit remove the `id` and `type` arguments from the mustCall function on init. PR-URL: https://github.com/nodejs/node/pull/32630 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
20 lines
397 B
JavaScript
20 lines
397 B
JavaScript
'use strict';
|
|
|
|
const common = require('../common');
|
|
const async_hooks = require('async_hooks');
|
|
const fs = require('fs');
|
|
|
|
const nestedHook = async_hooks.createHook({
|
|
init: common.mustCall()
|
|
});
|
|
|
|
async_hooks.createHook({
|
|
init: common.mustCall(() => {
|
|
nestedHook.enable();
|
|
}, 2)
|
|
}).enable();
|
|
|
|
fs.access(__filename, common.mustCall(() => {
|
|
fs.access(__filename, common.mustCall());
|
|
}));
|