Uploaded image for project: 'Commons JEXL'
  1. Commons JEXL
  2. JEXL-393

const must not be modifiable

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.3
    • 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

          Activity

            People

              henrib Henri Biestro
              hussachai Hussachai Puripunpinyo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: