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

Function lazyMessageEvent

lib/internal/worker/io.js:98–101  ·  view source on GitHub ↗
(type, init)

Source from the content-addressed store, hash-verified

96// passed are known to be valid.
97let fastCreateMessageEvent;
98function lazyMessageEvent(type, init) {
99 fastCreateMessageEvent ??= require('internal/deps/undici/undici').createFastMessageEvent;
100 return fastCreateMessageEvent(type, init);
101}
102
103// We have to mess with the MessagePort prototype a bit, so that a) we can make
104// it inherit from NodeEventTarget, even though it is a C++ class, and b) we do

Callers 2

io.jsFile · 0.85
onMessageEventFunction · 0.85

Calls 1

requireFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…