Skip to content

Commit 09fd3e3

Browse files
committed
fixup! src: throw DOMException on cloning non-serializable objects
1 parent 5cef3de commit 09fd3e3

File tree

1 file changed

+36
-36
lines changed

1 file changed

+36
-36
lines changed

doc/api/errors.md

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -2114,20 +2114,6 @@ urlSearchParams.has.call(buf, 'foo');
21142114
// Throws a TypeError with code 'ERR_INVALID_THIS'
21152115
```
21162116

2117-
<a id="ERR_INVALID_TRANSFER_OBJECT"></a>
2118-
2119-
### `ERR_INVALID_TRANSFER_OBJECT`
2120-
2121-
<!-- YAML
2122-
removed: REPLACEME
2123-
changes:
2124-
- version: REPLACEME
2125-
pr-url: https://github.com/nodejs/node/pull/47839
2126-
description: A DOMException is thrown instead.
2127-
-->
2128-
2129-
An invalid transfer object was passed to `postMessage()`.
2130-
21312117
<a id="ERR_INVALID_TUPLE"></a>
21322118

21332119
### `ERR_INVALID_TUPLE`
@@ -2325,28 +2311,6 @@ The V8 platform used by this instance of Node.js does not support creating
23252311
Workers. This is caused by lack of embedder support for Workers. In particular,
23262312
this error will not occur with standard builds of Node.js.
23272313

2328-
<a id="ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST"></a>
2329-
2330-
### `ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST`
2331-
2332-
<!-- YAML
2333-
added: v15.0.0
2334-
removed: REPLACEME
2335-
changes:
2336-
- version: REPLACEME
2337-
pr-url: https://github.com/nodejs/node/pull/47839
2338-
description: A DOMException is thrown instead.
2339-
-->
2340-
2341-
An object that needs to be explicitly listed in the `transferList` argument
2342-
is in the object passed to a [`postMessage()`][] call, but is not provided
2343-
in the `transferList` for that call. Usually, this is a `MessagePort`.
2344-
2345-
In Node.js versions prior to v15.0.0, the error code being used here was
2346-
[`ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST`][]. However, the set of
2347-
transferable object types has been expanded to cover more types than
2348-
`MessagePort`.
2349-
23502314
<a id="ERR_MODULE_NOT_FOUND"></a>
23512315

23522316
### `ERR_MODULE_NOT_FOUND`
@@ -3322,6 +3286,20 @@ removed: v15.0.0
33223286

33233287
An invalid or unknown file encoding was passed.
33243288

3289+
<a id="ERR_INVALID_TRANSFER_OBJECT"></a>
3290+
3291+
### `ERR_INVALID_TRANSFER_OBJECT`
3292+
3293+
<!-- YAML
3294+
removed: REPLACEME
3295+
changes:
3296+
- version: REPLACEME
3297+
pr-url: https://github.com/nodejs/node/pull/47839
3298+
description: A `DOMException` is thrown instead.
3299+
-->
3300+
3301+
An invalid transfer object was passed to `postMessage()`.
3302+
33253303
<a id="ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST"></a>
33263304

33273305
### `ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST`
@@ -3334,6 +3312,28 @@ This error code was replaced by [`ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST`][]
33343312
in Node.js v15.0.0, because it is no longer accurate as other types of
33353313
transferable objects also exist now.
33363314

3315+
<a id="ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST"></a>
3316+
3317+
### `ERR_MISSING_TRANSFERABLE_IN_TRANSFER_LIST`
3318+
3319+
<!-- YAML
3320+
added: v15.0.0
3321+
removed: REPLACEME
3322+
changes:
3323+
- version: REPLACEME
3324+
pr-url: https://github.com/nodejs/node/pull/47839
3325+
description: A `DOMException` is thrown instead.
3326+
-->
3327+
3328+
An object that needs to be explicitly listed in the `transferList` argument
3329+
is in the object passed to a [`postMessage()`][] call, but is not provided
3330+
in the `transferList` for that call. Usually, this is a `MessagePort`.
3331+
3332+
In Node.js versions prior to v15.0.0, the error code being used here was
3333+
[`ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST`][]. However, the set of
3334+
transferable object types has been expanded to cover more types than
3335+
`MessagePort`.
3336+
33373337
<a id="ERR_NAPI_CONS_PROTOTYPE_OBJECT"></a>
33383338

33393339
### `ERR_NAPI_CONS_PROTOTYPE_OBJECT`

0 commit comments

Comments
 (0)