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