doc: fix small logic error in DETECT_MODULE_SYNTAX

PR-URL: https://github.com/nodejs/node/pull/62025
Reviewed-By: Jacob Smith <jacob@frende.me>
Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com>
Reviewed-By: Zijian Liu <lxxyxzj@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Darshan Sen <raisinten@gmail.com>
This commit is contained in:
René authored and Marco Ippolito committed 2026-05-11 16:10:16 +02:00
1 parent 4f780905c5
commit f22ebdc809
1 file changed
+1 -1
+1 -1
View File
@@ -1191,7 +1191,7 @@ _isImports_, _conditions_)
> 2. If _source_ contains a top-level lexical declaration (`const`, `let`,
> or `class`) of any of the CommonJS wrapper variables (`require`,
> `exports`, `module`, `__filename`, or `__dirname`) then return **true**.
> 3. Else return **false**.
> 3. Return **false**.
### Customizing ESM specifier resolution algorithm