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 Richard Lau committed 2026-03-02 14:40:50 +00:00
1 parent a28744cb62
commit ca78ebbeaa
1 file changed
+1 -1
+1 -1
View File
@@ -1274,7 +1274,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