From 6e58b71eaee1886726bf9cd2130982f7e61522e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ren=C3=A9?= Date: Fri, 27 Feb 2026 13:55:54 +0000 Subject: [PATCH] doc: fix small logic error in DETECT_MODULE_SYNTAX --- doc/api/esm.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/api/esm.md b/doc/api/esm.md index 6bea4bc450bd0f..5396acfd53d65c 100644 --- a/doc/api/esm.md +++ b/doc/api/esm.md @@ -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