MCPcopy Index your code
hub / github.com/nodejs/node / oninit

Function oninit

lib/internal/worker/io.js:149–153  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

147
148// This is called from inside the `MessagePort` constructor.
149function oninit() {
150 initNodeEventTarget(this);
151 setupPortReferencing(this, this, 'message');
152 this[kCurrentlyReceivingPorts] = undefined;
153}
154
155defineEventHandler(MessagePort.prototype, 'message');
156defineEventHandler(MessagePort.prototype, 'messageerror');

Callers

nothing calls this directly

Calls 2

initNodeEventTargetFunction · 0.85
setupPortReferencingFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…