-
• #2
found in 1v95 on EspruinoWIFI
-
• #3
Thanks for letting me know! I put a bug in for it here: https://github.com/espruino/Espruino/issues/1321
You probably gathered already but it's because you specified an argument
p1
. Espruino doesn't keep a second arguments array for the sake of saving memory, so it reconstructs the array when you ask for it.I think probably the sensible option for now is just to document this difference in the reference for
arguments
?I guess there should probably be a page for known differences to the ES5 spec, like the newline handling and lack of unicode
-
• #4
at least some hint in the API doc (http://www.espruino.com/Reference#l__global_arguments) would be fine.
-
• #5
Just done!
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.