MCPcopy Create free account
hub / github.com/nodejs/node / markAsUncloneable

Function markAsUncloneable

lib/internal/worker/io.js:472–477  ·  view source on GitHub ↗
(obj)

Source from the content-addressed store, hash-verified

470defineEventHandler(BroadcastChannel.prototype, 'messageerror');
471
472function markAsUncloneable(obj) {
473 if ((typeof obj !== 'object' && typeof obj !== 'function') || obj === null) {
474 return;
475 }
476 obj[transfer_mode_private_symbol] &= ~kCloneable;
477}
478
479module.exports = {
480 drainMessagePort,

Calls

no outgoing calls

Tested by

no test coverage detected