• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 'use strict';
2 // Flags: --no-force-async-hooks-checks --expose-internals
3 const common = require('../common');
4 
5 if (!common.isMainThread)
6   common.skip('Workers don\'t inherit per-env state like the check flag');
7 
8 const async_hooks = require('internal/async_hooks');
9 
10 // Negative asyncIds and invalid type name
11 async_hooks.emitInit(-1, null, -1, {});
12 async_hooks.emitBefore(-1, -1);
13 async_hooks.emitAfter(-1);
14 async_hooks.emitDestroy(-1);
15