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