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,
|
2017-09-01 17:03:41 +02:00
|
|
|
threadId,
|
|
|
|
Worker
|
|
|
|
} = 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,
|
|
|
|
moveMessagePortToContext,
|
2019-04-18 00:56:57 +02:00
|
|
|
receiveMessageOnPort
|
2018-12-23 04:53:05 +01:00
|
|
|
} = require('internal/worker/io');
|
|
|
|
|
2017-09-01 17:03:41 +02:00
|
|
|
module.exports = {
|
|
|
|
isMainThread,
|
|
|
|
MessagePort,
|
|
|
|
MessageChannel,
|
2017-09-10 01:43:55 +02:00
|
|
|
moveMessagePortToContext,
|
2019-04-18 00:56:57 +02:00
|
|
|
receiveMessageOnPort,
|
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,
|
2017-09-01 17:03:41 +02:00
|
|
|
};
|