esm: fix typos

PR-URL: https://github.com/nodejs/node/pull/27067
Reviewed-By: Michaël Zasso <targos@protonmail.com>
Reviewed-By: Yongsheng Zhang <zyszys98@gmail.com>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Gus Caplan <me@gus.host>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Vse Mozhet Byt <vsemozhetbyt@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
This commit is contained in:
Geoffrey Booth 2019-04-03 00:02:47 -07:00 committed by Vse Mozhet Byt
parent d711b97aa5
commit 5e98f875b9
2 changed files with 4 additions and 4 deletions

View File

@ -131,6 +131,9 @@ conjunction with native stack and other runtime environment data.
added: v6.0.0 added: v6.0.0
--> -->
Enable FIPS-compliant crypto at startup. (Requires Node.js to be built with
`./configure --openssl-fips`.)
### `--entry-type=type` ### `--entry-type=type`
<!-- YAML <!-- YAML
added: REPLACEME added: REPLACEME
@ -144,9 +147,6 @@ the file extension and the `"type"` field in the nearest parent `package.json`.
Works for executing a file as well as `--eval`, `--print`, `STDIN`. Works for executing a file as well as `--eval`, `--print`, `STDIN`.
Enable FIPS-compliant crypto at startup. (Requires Node.js to be built with
`./configure --openssl-fips`.)
### `--es-module-specifier-resolution=mode` ### `--es-module-specifier-resolution=mode`
<!-- YAML <!-- YAML
added: REPLACEME added: REPLACEME

View File

@ -113,7 +113,7 @@ void EnvironmentOptions::CheckOptions(std::vector<std::string>* errors) {
"--experimental-modules to be enabled"); "--experimental-modules to be enabled");
} }
if (module_type != "commonjs" && module_type != "module") { if (module_type != "commonjs" && module_type != "module") {
errors->push_back("--entry-type must \"module\" or \"commonjs\""); errors->push_back("--entry-type must be \"module\" or \"commonjs\"");
} }
} }