Hussachai Puripunpinyo created JEXL-393:
-------------------------------------------

             Summary: const must not be modifiable
                 Key: JEXL-393
                 URL: https://issues.apache.org/jira/browse/JEXL-393
             Project: Commons JEXL
          Issue Type: Bug
            Reporter: Hussachai Puripunpinyo


The following code works with JEXL master (2022-02-21) when it's not supposed 
to.
{code:java}
const total = 0;
if (true) {
  total = 1;
}
total;  {code}
At the end, this script yields 1 as total constant was treated as a variable.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to