@@ -1597,12 +1597,20 @@ strict compliance with the API specification (which in some cases may accept |
1597 | 1597 | For APIs that accept options objects, some options might be mandatory. This code |
1598 | 1598 | is thrown if a required option is missing. |
1599 | 1599 |
|
1600 | | -<a id="ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST"></a> |
1601 | | -### `ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST` |
| 1600 | +<a id="ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST"></a> |
| 1601 | +### `ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST` |
| 1602 | +<!-- YAML |
| 1603 | +added: REPLACEME |
| 1604 | +--> |
1602 | 1605 |
|
1603 | 1606 | An object that needs to be explicitly listed in the `transferList` argument |
1604 | | -was found in the object passed to a `postMessage()` call, but not provided in |
1605 | | -the `transferList` for that call. Usually, this is a `MessagePort`. |
| 1607 | +was found in the object passed to a [`postMessage()`][] call, but not provided |
| 1608 | +in the `transferList` for that call. Usually, this is a `MessagePort`. |
| 1609 | + |
| 1610 | +In Node.js versions prior to REPLACEME, the error code being used here was |
| 1611 | +[`ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST`][]. However, the set of |
| 1612 | +transferable object types has been expanded to cover more types than |
| 1613 | +`MessagePort`. |
1606 | 1614 |
|
1607 | 1615 | <a id="ERR_MISSING_PASSPHRASE"></a> |
1608 | 1616 | ### `ERR_MISSING_PASSPHRASE` |
@@ -2442,6 +2450,16 @@ Used when an invalid character is found in an HTTP response status message |
2442 | 2450 | --> |
2443 | 2451 | A given index was out of the accepted range (e.g. negative offsets). |
2444 | 2452 |
|
| 2453 | +<a id="ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST"></a> |
| 2454 | +### `ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST` |
| 2455 | +<!-- YAML |
| 2456 | +removed: REPLACEME |
| 2457 | +--> |
| 2458 | + |
| 2459 | +This error code was replaced by [`ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST`][] |
| 2460 | +in Node.js REPLACEME, because it is no longer accurate as other types of |
| 2461 | +transferable objects also exist now. |
| 2462 | + |
2445 | 2463 | <a id="ERR_NAPI_CONS_PROTOTYPE_OBJECT"></a> |
2446 | 2464 | ### `ERR_NAPI_CONS_PROTOTYPE_OBJECT` |
2447 | 2465 | <!-- YAML |
@@ -2693,6 +2711,8 @@ such as `process.stdout.on('data')`. |
2693 | 2711 | [`--force-fips`]: cli.html#cli_force_fips |
2694 | 2712 | [`Class: assert.AssertionError`]: assert.html#assert_class_assert_assertionerror |
2695 | 2713 | [`ERR_INVALID_ARG_TYPE`]: #ERR_INVALID_ARG_TYPE |
| 2714 | +[`ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST`]: #ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST |
| 2715 | +[`ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST`]: #ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST |
2696 | 2716 | [`EventEmitter`]: events.html#events_class_eventemitter |
2697 | 2717 | [`MessagePort`]: worker_threads.html#worker_threads_class_messageport |
2698 | 2718 | [`Object.getPrototypeOf`]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/getPrototypeOf |
@@ -2725,6 +2745,7 @@ such as `process.stdout.on('data')`. |
2725 | 2745 | [`net`]: net.html |
2726 | 2746 | [`new URL(input)`]: url.html#url_new_url_input_base |
2727 | 2747 | [`new URLSearchParams(iterable)`]: url.html#url_new_urlsearchparams_iterable |
| 2748 | +[`postMessage()`]: worker_threads.html#worker_threads_port_postmessage_value_transferlist |
2728 | 2749 | [`process.on('exit')`]: process.html#Event:-`'exit'` |
2729 | 2750 | [`process.send()`]: process.html#process_process_send_message_sendhandle_options_callback |
2730 | 2751 | [`process.setUncaughtExceptionCaptureCallback()`]: process.html#process_process_setuncaughtexceptioncapturecallback_fn |
|