Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
The following code works with JEXL master (2022-02-21) when it's not supposed to.
const total = 0; if (true) { total = 1; } total;
At the end, this script yields 1 as total constant was treated as a variable.
Attachments
Issue Links
- is part of
-
JEXL-369 Add 'let' and 'const' variable declarations
- Closed