31 lines
468 B
JavaScript
31 lines
468 B
JavaScript
'use strict';
|
|
|
|
const {
|
|
isMainThread,
|
|
SHARE_ENV,
|
|
resourceLimits,
|
|
threadId,
|
|
Worker
|
|
} = require('internal/worker');
|
|
|
|
const {
|
|
MessagePort,
|
|
MessageChannel,
|
|
moveMessagePortToContext,
|
|
receiveMessageOnPort
|
|
} = require('internal/worker/io');
|
|
|
|
module.exports = {
|
|
isMainThread,
|
|
MessagePort,
|
|
MessageChannel,
|
|
moveMessagePortToContext,
|
|
receiveMessageOnPort,
|
|
resourceLimits,
|
|
threadId,
|
|
SHARE_ENV,
|
|
Worker,
|
|
parentPort: null,
|
|
workerData: null,
|
|
};
|