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

ArrayFilter() doesn't work on arguments scope with declared parameters

    Details

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

      Description

      // Works
      function doSomething() {
          ArrayFilter( arguments, function() {
              return true;
          } );
      }
      
      doSomething( 'foo', 'bar' );
      
      
      // Doesn't work
      // can't cast [foo] string to a number value on line xx
      function doSomething2( foo, bar ) {
          ArrayFilter( arguments, function() {
              return true;
          } );
      }
      
      
      doSomething2( 'foo', 'bar' );
      

      https://trycf.com/gist/807fc8919dd9d5899c7f5c15b301e6af/lucee5?theme=monokai

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                michaeloffner Michael Offner
                Reporter:
                bdw429s Brad Wood
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: