nodejs/test/parallel/test-trace-events-api-worke...

11 lines
257 B
JavaScript

'use strict';
const common = require('../common');
const { Worker } = require('worker_threads');
new Worker("require('trace_events')", { eval: true })
.on('error', common.expectsError({
code: 'ERR_TRACE_EVENTS_UNAVAILABLE',
name: 'Error'
}));