Uploaded image for project: 'Lucee Development'
  1. LDEV-1483

Immediately Invoke lambda works with one param but not two

    Details

    • Type: Bug
    • Status: Deployed
    • Priority: New
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.6.23
    • Labels:
      None
    • Sprint:
      January 2018 Sprint

      Description

      This works as expected

          writeDump((x) => {
              return x * 10;
          }(1));
      

      But this does not

          // You cannot mix named and unnamed arguments in function calls on line 11
          writeDump((x, y) => {
              return x * y;
          }(1, 2));
      

      Example
      https://trycf.com/gist/f4561fdba63aea3f2bc6574eae0ff3af/lucee5?theme=monokai

        Attachments

          Activity

            People

            • Assignee:
              michaeloffner Michael Offner
              Reporter:
              jamie-purchase Jamie Purchase
            • Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: