mirror of
https://github.com/nodejs/node.git
synced 2025-08-15 13:48:44 +02:00

PR-URL: https://github.com/nodejs/node/pull/58666 Fixes: https://github.com/nodejs/node/pull/36502 Refs: https://w3c.github.io/web-locks Reviewed-By: Matteo Collina <matteo.collina@gmail.com> Reviewed-By: Ethan Arrowood <ethan@arrowood.dev> Reviewed-By: Filip Skokan <panva.ip@gmail.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com> Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com> Reviewed-By: Anna Henningsen <anna@addaleax.net>
55 lines
977 B
JavaScript
55 lines
977 B
JavaScript
'use strict';
|
|
|
|
const {
|
|
isInternalThread,
|
|
isMainThread,
|
|
SHARE_ENV,
|
|
resourceLimits,
|
|
setEnvironmentData,
|
|
getEnvironmentData,
|
|
threadId,
|
|
Worker,
|
|
} = require('internal/worker');
|
|
|
|
const {
|
|
MessagePort,
|
|
MessageChannel,
|
|
markAsUncloneable,
|
|
moveMessagePortToContext,
|
|
receiveMessageOnPort,
|
|
BroadcastChannel,
|
|
} = require('internal/worker/io');
|
|
|
|
const {
|
|
postMessageToThread,
|
|
} = require('internal/worker/messaging');
|
|
|
|
const {
|
|
markAsUntransferable,
|
|
isMarkedAsUntransferable,
|
|
} = require('internal/buffer');
|
|
|
|
const { locks } = require('internal/locks');
|
|
|
|
module.exports = {
|
|
isInternalThread,
|
|
isMainThread,
|
|
MessagePort,
|
|
MessageChannel,
|
|
markAsUncloneable,
|
|
markAsUntransferable,
|
|
isMarkedAsUntransferable,
|
|
moveMessagePortToContext,
|
|
receiveMessageOnPort,
|
|
resourceLimits,
|
|
postMessageToThread,
|
|
threadId,
|
|
SHARE_ENV,
|
|
Worker,
|
|
parentPort: null,
|
|
workerData: null,
|
|
BroadcastChannel,
|
|
setEnvironmentData,
|
|
getEnvironmentData,
|
|
locks,
|
|
};
|