Lines Matching refs:MessagePort
34 MessagePort,
96 // We have to mess with the MessagePort prototype a bit, so that a) we can make
100 const messagePortPrototypePropertyDescriptors = ObjectGetOwnPropertyDescriptors(MessagePort.prototype);
109 ObjectGetPrototypeOf(MessagePort.prototype),
112 ObjectSetPrototypeOf(MessagePort, NodeEventTarget);
113 ObjectSetPrototypeOf(MessagePort.prototype, NodeEventTarget.prototype);
115 // changing the prototype of MessagePort.prototype implicitly removed them.
116 MessagePort.prototype.ref = MessagePortPrototype.ref;
117 MessagePort.prototype.unref = MessagePortPrototype.unref;
118 MessagePort.prototype.hasRef = function() {
124 throw new ERR_INVALID_ARG_TYPE(name, 'MessagePort', port);
213 MessagePort.prototype,
230 // This is called from inside the `MessagePort` constructor.
237 defineEventHandler(MessagePort.prototype, 'message');
238 defineEventHandler(MessagePort.prototype, 'messageerror');
240 ObjectDefineProperty(MessagePort.prototype, onInitSymbol, {
258 ObjectDefineProperty(MessagePort.prototype, handleOnCloseSymbol, {
265 MessagePort.prototype.close = function(cb) {
271 ObjectDefineProperty(MessagePort.prototype, inspect.custom, {
282 return ObjectAssign(ObjectCreate(MessagePort.prototype),
547 MessagePort,