mirror of https://gitee.com/openkylin/nodejs.git
36 lines
558 B
JavaScript
36 lines
558 B
JavaScript
|
'use strict';
|
||
|
|
||
|
const {
|
||
|
isMainThread,
|
||
|
SHARE_ENV,
|
||
|
resourceLimits,
|
||
|
threadId,
|
||
|
Worker
|
||
|
} = require('internal/worker');
|
||
|
|
||
|
const {
|
||
|
MessagePort,
|
||
|
MessageChannel,
|
||
|
moveMessagePortToContext,
|
||
|
receiveMessageOnPort,
|
||
|
} = require('internal/worker/io');
|
||
|
|
||
|
const {
|
||
|
markAsUntransferable,
|
||
|
} = require('internal/buffer');
|
||
|
|
||
|
module.exports = {
|
||
|
isMainThread,
|
||
|
MessagePort,
|
||
|
MessageChannel,
|
||
|
markAsUntransferable,
|
||
|
moveMessagePortToContext,
|
||
|
receiveMessageOnPort,
|
||
|
resourceLimits,
|
||
|
threadId,
|
||
|
SHARE_ENV,
|
||
|
Worker,
|
||
|
parentPort: null,
|
||
|
workerData: null,
|
||
|
};
|