ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST


一个需要在 transferList 参数中明确列出的对象存在于传递给 postMessage() 调用的对象中,但在该调用的 transferList 中没有提供。通常,这个对象是一个 MessagePort

【An object that needs to be explicitly listed in the transferList argument is in the object passed to a postMessage() call, but is not provided in the transferList for that call. Usually, this is a MessagePort.】

在 Node.js v15.0.0 之前的版本中,这里使用的错误代码是 ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST。然而,可传输对象类型的集合已经扩展,覆盖的类型比 MessagePort 更多。

【In Node.js versions prior to v15.0.0, the error code being used here was ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST. However, the set of transferable object types has been expanded to cover more types than MessagePort.】