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.
@mrQ started
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
my test snippet:
these tests are fine:
and here is the flaw:
as already mentioned - it's not critical, but some libraries written for node may fail in their arguments check.