mirror of
https://github.com/nodejs/node.git
synced 2026-11-21 12:59:16 -05:00
PR-URL: https://github.com/nodejs/node/pull/29866 Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com>
10 lines
346 B
JavaScript
10 lines
346 B
JavaScript
'use strict';
|
|
const common = require('../common');
|
|
const fixtures = require('../common/fixtures');
|
|
const assert = require('assert');
|
|
const { Worker } = require('worker_threads');
|
|
|
|
const w = new Worker(fixtures.path('es-modules/import-process-exit.mjs'));
|
|
w.on('error', common.mustNotCall());
|
|
w.on('exit', (code) => assert.strictEqual(code, 42));
|