mirror of
https://github.com/nodejs/node.git
synced 2024-11-21 10:59:27 +00:00
66a635cece
PR-URL: https://github.com/nodejs/node/pull/53682 Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
49 lines
840 B
JavaScript
49 lines
840 B
JavaScript
'use strict';
|
|
|
|
const {
|
|
isMainThread,
|
|
SHARE_ENV,
|
|
resourceLimits,
|
|
setEnvironmentData,
|
|
getEnvironmentData,
|
|
threadId,
|
|
Worker,
|
|
} = require('internal/worker');
|
|
|
|
const {
|
|
MessagePort,
|
|
MessageChannel,
|
|
moveMessagePortToContext,
|
|
receiveMessageOnPort,
|
|
BroadcastChannel,
|
|
} = require('internal/worker/io');
|
|
|
|
const {
|
|
postMessageToThread,
|
|
} = require('internal/worker/messaging');
|
|
|
|
const {
|
|
markAsUntransferable,
|
|
isMarkedAsUntransferable,
|
|
} = require('internal/buffer');
|
|
|
|
module.exports = {
|
|
isMainThread,
|
|
MessagePort,
|
|
MessageChannel,
|
|
markAsUntransferable,
|
|
isMarkedAsUntransferable,
|
|
moveMessagePortToContext,
|
|
receiveMessageOnPort,
|
|
resourceLimits,
|
|
postMessageToThread,
|
|
threadId,
|
|
SHARE_ENV,
|
|
Worker,
|
|
parentPort: null,
|
|
workerData: null,
|
|
BroadcastChannel,
|
|
setEnvironmentData,
|
|
getEnvironmentData,
|
|
};
|