• my test snippet:

    function abc(p1){
    console.log(arguments.length);
    }
    

    these tests are fine:

    abc(4);     // prints "1" .. ok
    abc(4,5,8); // prints "3" .. ok
    

    and here is the flaw:

    abc();     // prints "1" .. NOK - "0" expected (checked on browsers and node.js)
    

    as already mentioned - it's not critical, but some libraries written for node may fail in their arguments check.

About

Avatar for mrQ @mrQ started