2017-09-05 22:38:32 +02:00
|
|
|
'use strict';
|
|
|
|
|
2017-09-01 17:03:41 +02:00
|
|
|
const {
|
|
|
|
isMainThread,
|
2019-02-22 20:11:19 +01:00
|
|
|
SHARE_ENV,
|
2019-03-08 19:35:40 +01:00
|
|
|
resourceLimits,
|
2021-02-23 01:22:17 +01:00
|
|
|
setEnvironmentData,
|
|
|
|
getEnvironmentData,
|
2017-09-01 17:03:41 +02:00
|
|
|
threadId,
|
2023-02-12 19:26:21 +01:00
|
|
|
Worker,
|
2017-09-01 17:03:41 +02:00
|
|
|
} = require('internal/worker');
|
2017-09-05 22:38:32 +02:00
|
|
|
|
2018-12-23 04:53:05 +01:00
|
|
|
const {
|
|
|
|
MessagePort,
|
2017-09-10 01:43:55 +02:00
|
|
|
MessageChannel,
|
2024-10-04 09:09:37 +02:00
|
|
|
markAsUncloneable,
|
2017-09-10 01:43:55 +02:00
|
|
|
moveMessagePortToContext,
|
2020-06-19 20:39:23 +02:00
|
|
|
receiveMessageOnPort,
|
2020-11-26 22:54:23 +01:00
|
|
|
BroadcastChannel,
|
2018-12-23 04:53:05 +01:00
|
|
|
} = require('internal/worker/io');
|
|
|
|
|
2024-07-09 09:16:04 +02:00
|
|
|
const {
|
|
|
|
postMessageToThread,
|
|
|
|
} = require('internal/worker/messaging');
|
|
|
|
|
2020-06-19 20:39:23 +02:00
|
|
|
const {
|
|
|
|
markAsUntransferable,
|
2023-05-05 13:22:42 +02:00
|
|
|
isMarkedAsUntransferable,
|
2020-06-19 20:39:23 +02:00
|
|
|
} = require('internal/buffer');
|
|
|
|
|
2017-09-01 17:03:41 +02:00
|
|
|
module.exports = {
|
|
|
|
isMainThread,
|
|
|
|
MessagePort,
|
|
|
|
MessageChannel,
|
2024-10-04 09:09:37 +02:00
|
|
|
markAsUncloneable,
|
2020-06-19 20:39:23 +02:00
|
|
|
markAsUntransferable,
|
2023-05-05 13:22:42 +02:00
|
|
|
isMarkedAsUntransferable,
|
2017-09-10 01:43:55 +02:00
|
|
|
moveMessagePortToContext,
|
2019-04-18 00:56:57 +02:00
|
|
|
receiveMessageOnPort,
|
2019-03-08 19:35:40 +01:00
|
|
|
resourceLimits,
|
2024-07-09 09:16:04 +02:00
|
|
|
postMessageToThread,
|
2017-09-01 17:03:41 +02:00
|
|
|
threadId,
|
2019-02-22 20:11:19 +01:00
|
|
|
SHARE_ENV,
|
2017-09-01 17:03:41 +02:00
|
|
|
Worker,
|
2019-01-28 15:29:48 +01:00
|
|
|
parentPort: null,
|
|
|
|
workerData: null,
|
2020-11-26 22:54:23 +01:00
|
|
|
BroadcastChannel,
|
2021-02-23 01:22:17 +01:00
|
|
|
setEnvironmentData,
|
|
|
|
getEnvironmentData,
|
2017-09-01 17:03:41 +02:00
|
|
|
};
|