/third_party/node/lib/internal/worker/ |
D | io.js | 24 MessagePort, 71 ObjectGetPrototypeOf(MessagePort.prototype), 72 ObjectGetOwnPropertyDescriptors(MessagePort.prototype)); 74 ObjectSetPrototypeOf(MessagePort, NodeEventTarget); 75 ObjectSetPrototypeOf(MessagePort.prototype, NodeEventTarget.prototype); 78 MessagePort.prototype.ref = MessagePortPrototype.ref; class 79 MessagePort.prototype.unref = MessagePortPrototype.unref; 90 MessagePort.prototype, 110 defineEventHandler(MessagePort.prototype, 'message'); 111 defineEventHandler(MessagePort.prototype, 'messageerror'); [all …]
|
/third_party/node/src/ |
D | node_messaging.cc | 458 static_cast<MessagePort*>(host_object.get())->IsDetached())) { in Serialize() 521 MessagePortData::MessagePortData(MessagePort* owner) : owner_(owner) { } in MessagePortData() 574 MessagePort::~MessagePort() { in ~MessagePort() 578 MessagePort::MessagePort(Environment* env, in MessagePort() function in node::worker::MessagePort 588 MessagePort* channel = ContainerOf(&MessagePort::async_, handle); in MessagePort() 618 bool MessagePort::IsDetached() const { in IsDetached() 622 void MessagePort::TriggerAsync() { in TriggerAsync() 627 void MessagePort::Close(v8::Local<v8::Value> close_callback) { in Close() 640 void MessagePort::New(const FunctionCallbackInfo<Value>& args) { in New() 648 MessagePort* MessagePort::New( in New() [all …]
|
D | node_messaging.h | 14 class MessagePort; variable 105 friend class MessagePort; variable 112 explicit MessagePortData(MessagePort* owner); 148 MessagePort* owner_ = nullptr; 155 friend class MessagePort; variable 161 class MessagePort : public HandleWrap { 167 MessagePort(Environment* env, 172 ~MessagePort() override; 176 static MessagePort* New(Environment* env, 207 static void Entangle(MessagePort* a, MessagePort* b); [all …]
|
D | node_worker.cc | 61 parent_port_ = MessagePort::New(env, env->context()); in Worker() 68 MessagePort::Entangle(parent_port_, child_port_data_.get()); in Worker() 404 MessagePort* child_port = MessagePort::New(env, in CreateEnvMessagePort()
|
D | node_worker.h | 111 MessagePort* parent_port_ = nullptr;
|
D | README.md | 261 [`MessagePort`][] objects.) This restriction is not inherent to the design of 1020 [`MessagePort`]: https://nodejs.org/api/worker_threads.html#worker_threads_class_messageport
|
/third_party/node/test/parallel/ |
D | test-worker-message-port-constructor.js | 5 const { MessageChannel, MessagePort } = require('worker_threads'); 11 assert(port1 instanceof MessagePort); 12 assert.strictEqual(port1.constructor, MessagePort); 14 assert.throws(() => MessagePort(), { 19 assert.throws(() => new MessagePort(), {
|
D | test-worker-message-channel.js | 4 const { MessageChannel, MessagePort, Worker } = require('worker_threads'); 39 assert(channel.port1 instanceof MessagePort); 40 assert(channel.port2 instanceof MessagePort);
|
D | test-worker-message-port-move.js | 7 MessagePort, MessageChannel, moveMessagePortToContext 17 MessagePort, property 35 assert(!(port instanceof MessagePort));
|
D | test-worker-message-port.js | 5 const { MessageChannel, MessagePort } = require('worker_threads'); 9 assert(port1 instanceof MessagePort); 10 assert(port2 instanceof MessagePort); 166 Object.getOwnPropertyNames(MessagePort.prototype).sort(),
|
/third_party/node/doc/api/ |
D | worker_threads.md | 159 * `port` {MessagePort} The message port which will be transferred. 163 * Returns: {MessagePort} 165 Transfer a `MessagePort` to a different [`vm`][] Context. The original `port` 166 object will be rendered unusable, and the returned `MessagePort` instance will 169 The returned `MessagePort` will be an object in the target context, and will 174 However, the created `MessagePort` will no longer inherit from 183 * {null|MessagePort} 185 If this thread was spawned as a [`Worker`][], this will be a [`MessagePort`][] 214 * `port` {MessagePort} 218 Receive a single message from a given `MessagePort`. If no message is available, [all …]
|
D | errors.md | 730 There was an attempt to use a `MessagePort` instance in a closed 1663 A message posted to a [`MessagePort`][] could not be deserialized in the target 1687 in the `transferList` for that call. Usually, this is a `MessagePort`. 2614 [`MessagePort`]: worker_threads.md#worker_threads_class_messageport
|
D | perf_hooks.md | 809 {IntervalHistogram} instances can be cloned via {MessagePort}. On the receiving
|
/third_party/node/lib/ |
D | worker_threads.js | 14 MessagePort, 26 MessagePort, property
|
/third_party/node/test/sequential/ |
D | test-worker-eventlooputil.js | 9 MessagePort, 21 assert.ok(msg.metricsCh instanceof MessagePort);
|
/third_party/typescript/lib/ |
D | lib.webworker.d.ts | 197 ports?: MessagePort[]; 198 source?: Client | ServiceWorker | MessagePort | null; 299 ports?: MessagePort[]; 1560 readonly ports: ReadonlyArray<MessagePort>; 1561 readonly source: Client | ServiceWorker | MessagePort | null; 2246 readonly port1: MessagePort; 2250 readonly port2: MessagePort; 2275 readonly ports: ReadonlyArray<MessagePort>; 2293 interface MessagePort extends EventTarget { interface 2294 onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null; [all …]
|
D | lib.dom.d.ts | 836 ports?: MessagePort[]; 1759 ports?: MessagePort[] | null; 1760 source?: ServiceWorker | MessagePort | null; 2468 readonly port: MessagePort; 10497 readonly port1: MessagePort; 10501 readonly port2: MessagePort; 10526 readonly ports: ReadonlyArray<MessagePort>; 10544 interface MessagePort extends EventTarget { interface 10545 onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null; 10546 onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null; [all …]
|
/third_party/typescript/src/lib/ |
D | webworker.generated.d.ts | 177 ports?: MessagePort[]; 178 source?: Client | ServiceWorker | MessagePort | null; 279 ports?: MessagePort[]; 1540 readonly ports: ReadonlyArray<MessagePort>; 1541 readonly source: Client | ServiceWorker | MessagePort | null; 2226 readonly port1: MessagePort; 2230 readonly port2: MessagePort; 2255 readonly ports: ReadonlyArray<MessagePort>; 2273 interface MessagePort extends EventTarget { interface 2274 onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null; [all …]
|
D | dom.generated.d.ts | 816 ports?: MessagePort[]; 1739 ports?: MessagePort[] | null; 1740 source?: ServiceWorker | MessagePort | null; 2448 readonly port: MessagePort; 10477 readonly port1: MessagePort; 10481 readonly port2: MessagePort; 10506 readonly ports: ReadonlyArray<MessagePort>; 10524 interface MessagePort extends EventTarget { interface 10525 onmessage: ((this: MessagePort, ev: MessageEvent) => any) | null; 10526 onmessageerror: ((this: MessagePort, ev: MessageEvent) => any) | null; [all …]
|
/third_party/node/test/fixtures/wpt/interfaces/ |
D | html.idl | 2064 readonly attribute FrozenArray<MessagePort> ports; 2066 …entId = "", optional MessageEventSource? source = null, optional sequence<MessagePort> ports = []); 2074 sequence<MessagePort> ports = []; 2077 typedef (WindowProxy or MessagePort or ServiceWorker) MessageEventSource; 2152 readonly attribute MessagePort port1; 2153 readonly attribute MessagePort port2; 2157 interface MessagePort : EventTarget { 2250 readonly attribute MessagePort port;
|
/third_party/node/tools/doc/ |
D | type-parser.mjs | 177 'MessagePort': 'worker_threads.html#worker_threads_class_messageport', property
|
/third_party/typescript/tests/baselines/reference/ |
D | globalThisBlockscopedProperties.types | 67 …Node" | "MediaStreamTrackEvent" | "MessageChannel" | "MessageEvent" | "MessagePort" | "MimeType" |…
|
/third_party/node/deps/npm/node_modules/asap/ |
D | README.md | 208 Particularly, The `MessagePort` implementation was abandoned due to interaction
|
/third_party/typescript/tests/lib/ |
D | lib.d.ts | 11722 port1: MessagePort; 11723 port2: MessagePort; 11744 interface MessagePort extends EventTarget { interface 11753 declare var MessagePort: { variable 11754 prototype: MessagePort; 11755 new(): MessagePort; 16671 ports?: MessagePort[];
|
/third_party/node/doc/changelogs/ |
D | CHANGELOG_V11.md | 468 …thub.com/nodejs/node/commit/fdad4d2673)] - **doc**: document diverging MessagePort.onmessage handl… 607 …* MessagePort.prototype.onmessage takes arguments closer to the Web specification now (Anna Hennin… 809 * [[`6fdc502a32`](https://github.com/nodejs/node/commit/6fdc502a32)] - **worker**: make MessagePort… 810 …ttps://github.com/nodejs/node/commit/51f01aa25b)] - **worker**: remove MessagePort::AddToIncomingQ… 817 …s/node/commit/24debc9d5c)] - **worker**: do not add removed methods to MessagePort (Anna Henningse… 1084 …ub.com/nodejs/node/commit/e70aa30ebd)] - **worker**: add mutex lock to MessagePort ctor (Anna Henn… 1635 …/nodejs/node/commit/4f28da883f)] - **worker**: fix nullptr deref after MessagePort deser failure (… 2994 …github.com/nodejs/node/commit/7673de8f58)] - **worker**: remove delete MessagePort.prototype.hasRe…
|