node/lib/internal/modules/esm
Rich Trott c370ec124c lib: fix JSDoc issues
Updating ESLint and dependencies will start flagging a few additional
JSDoc issues. One or two of these are simple fixes. The ESM stuff
requires throwing explicitly in JSDoc'ed functions rather than calling
another function to throw. I think this makes the code easier to
understand--you don't need to know that a particular function that
starts with `throwsIf` *might* throw but something that starts with
`throwsAnythingElse` will always throw. Instead, it's right there in the
code. This also might make it easier to improve stack traces if that's
something we'd like to do at some point.

PR-URL: https://github.com/nodejs/node/pull/45243
Reviewed-By: Moshe Atlow <moshe@atlow.co.il>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Jan Krems <jan.krems@gmail.com>
Reviewed-By: Juan José Arboleda <soyjuanarbol@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Yagiz Nizipli <yagiz@nizipli.com>
Reviewed-By: Zeyu "Alex" Yang <himself65@outlook.com>
2022-11-07 07:04:29 +00:00
..
assert.js lib: fix JSDoc issues 2022-11-07 07:04:29 +00:00
create_dynamic_module.js esm: refactor to use more primordials 2020-11-14 14:46:06 +00:00
fetch_module.js esm: throw on any non-2xx response 2022-07-13 00:01:42 +08:00
formats.js esm: remove specifier resolution flag 2022-10-04 09:44:08 +00:00
get_format.js esm: remove specifier resolution flag 2022-10-04 09:44:08 +00:00
handle_process_exit.js src: consolidate exit codes in the code base 2022-10-06 12:41:16 +00:00
initialize_import_meta.js Revert "esm: convert resolve hook to synchronous" 2022-06-22 08:13:36 +01:00
load.js esm: protect ESM loader from prototype pollution 2022-10-19 18:39:16 +00:00
loader.js esm: protect ESM loader from prototype pollution 2022-10-27 20:09:07 +00:00
module_job.js esm: protect ESM loader from prototype pollution 2022-10-27 20:09:07 +00:00
module_map.js module: import assertions improvements 2021-11-24 15:50:05 +00:00
package_config.js module: protect against prototype mutation 2022-08-04 22:41:48 +00:00
resolve.js lib: fix JSDoc issues 2022-11-07 07:04:29 +00:00
translators.js src: disambiguate terms used to refer to builtins and addons 2022-08-09 01:36:49 +08:00