Files
Kmake/test/fixtures/klass-with-fields.js

19 lines
266 B
JavaScript
Raw Permalink Normal View History

2026-05-26 23:36:42 -07:00
'use strict';
const {
parentPort,
isMainThread
} = require('node:worker_threads');
class Klass {
numeric = 1234;
nonNumeric = 'test';
}
globalThis.obj = new Klass();
if (!isMainThread) {
parentPort.postMessage('ready');
setInterval(() => {}, 100);
}