Why does the following fail in JSBD:
js>function x(a,b,c) { for (p in arguments) writeln(p) }
js>x("a","b","c")
when it seems to work in FF and Chrome:
>function x(a,b,c) { for (p in arguments) console.log(p) }
>x("a","b","c")
0
1
2
But strangely enough, accessing 'arguments' individually does work:
js>function x(a,b,c) { for (p in arguments) writeln(p); writeln(arguments[0] }
js>x("a","b","c")
a