ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST


需要在 transferList 参数中显式列出的对象在传给 postMessage() 调用的对象中,但未在 transferList 中为该调用提供。 通常,这是 MessagePort

在 v15.0.0 之前的 Node.js 版本中,这里使用的错误码是 ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST。 但是,可传输对象类型集已扩展到涵盖比 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.

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.