xref: /third_party/node/test/fixtures/worker-preload.js
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/node/test/fixtures/
11cb0ef41Sopenharmony_ciconst {
21cb0ef41Sopenharmony_ci  Worker,
31cb0ef41Sopenharmony_ci  workerData,
41cb0ef41Sopenharmony_ci  threadId
51cb0ef41Sopenharmony_ci} = require('worker_threads');
61cb0ef41Sopenharmony_ci
71cb0ef41Sopenharmony_ciif (threadId < 2) {
81cb0ef41Sopenharmony_ci  new Worker('1 + 1', { eval: true });
91cb0ef41Sopenharmony_ci}
10

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