esm: rename error code related to import attributes

PR-URL: https://github.com/nodejs/node/pull/50181
Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
This commit is contained in:
Antoine du Hamel authored and GitHub committed 2023-10-18 14:27:55 +00:00
1 parent dab9505829
commit 37d4f08cbd
6 files changed
+71 -52

No files matched your search

+45 -20
View File
@@ -1749,43 +1749,29 @@ is set for the `Http2Stream`.
An attempt was made to construct an object using a non-public constructor.
<a id="ERR_IMPORT_ASSERTION_TYPE_FAILED"></a>
<a id="ERR_IMPORT_ATTRIBUTE_TYPE_INCOMPATIBLE"></a>
### `ERR_IMPORT_ASSERTION_TYPE_FAILED`
### `ERR_IMPORT_ATTRIBUTE_TYPE_INCOMPATIBLE`
<!-- YAML
added:
- v17.1.0
- v16.14.0
- REPLACEME
-->
An import `type` attribute was provided, but the specified module is of a
different type.
<a id="ERR_IMPORT_ASSERTION_TYPE_MISSING"></a>
<a id="ERR_IMPORT_ATTRIBUTE_MISSING"></a>
### `ERR_IMPORT_ASSERTION_TYPE_MISSING`
### `ERR_IMPORT_ATTRIBUTE_MISSING`
<!-- YAML
added:
- v17.1.0
- v16.14.0
- REPLACEME
-->
An import attribute is missing, preventing the specified module to be imported.
<a id="ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED"></a>
### `ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED`
<!-- YAML
added:
- v17.1.0
- v16.14.0
-->
An import attribute is not supported by this version of Node.js.
<a id="ERR_IMPORT_ATTRIBUTE_UNSUPPORTED"></a>
### `ERR_IMPORT_ATTRIBUTE_UNSUPPORTED`
@@ -3308,6 +3294,45 @@ changes:
An invalid transfer object was passed to `postMessage()`.
<a id="ERR_IMPORT_ASSERTION_TYPE_FAILED"></a>
### `ERR_IMPORT_ASSERTION_TYPE_FAILED`
<!-- YAML
added:
- v17.1.0
- v16.14.0
removed: REPLACEME
-->
An import assertion has failed, preventing the specified module to be imported.
<a id="ERR_IMPORT_ASSERTION_TYPE_MISSING"></a>
### `ERR_IMPORT_ASSERTION_TYPE_MISSING`
<!-- YAML
added:
- v17.1.0
- v16.14.0
removed: REPLACEME
-->
An import assertion is missing, preventing the specified module to be imported.
<a id="ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED"></a>
### `ERR_IMPORT_ASSERTION_TYPE_UNSUPPORTED`
<!-- YAML
added:
- v17.1.0
- v16.14.0
removed: REPLACEME
-->
An import attribute is not supported by this version of Node.js.
<a id="ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST"></a>
### `ERR_MISSING_MESSAGE_PORT_IN_TRANSFER_LIST`