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

Null may be used as operand silently even in arithmetic strict(true) mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.2.1
    • 3.3
    • None

    Description

      It appears null may be used as an operator argument despite arithmetic strictness.

      var i = null;
      if (i < 0) {...}
      

      Should fail when arithmetic is strict.

      Attachments

        Activity

          People

            henrib Henri Biestro
            henrib Henri Biestro
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: