xref: /third_party/node/test/parallel/test-worker-esm-exit.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/parallel/
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

Indexes created Thu Nov 07 10:32:03 CST 2024