11cb0ef41Sopenharmony_ci'use strict'; 21cb0ef41Sopenharmony_ciconst common = require('../common'); 31cb0ef41Sopenharmony_ciconst fixtures = require('../common/fixtures'); 41cb0ef41Sopenharmony_ciconst assert = require('assert'); 51cb0ef41Sopenharmony_ciconst { Worker } = require('worker_threads'); 61cb0ef41Sopenharmony_ci 71cb0ef41Sopenharmony_ciconst w = new Worker(fixtures.path('es-modules/import-process-exit.mjs')); 81cb0ef41Sopenharmony_ciw.on('error', common.mustNotCall()); 91cb0ef41Sopenharmony_ciw.on('exit', 101cb0ef41Sopenharmony_ci common.mustCall((code) => assert.strictEqual(code, 42)) 111cb0ef41Sopenharmony_ci); 12