JS-Interpreter
JS-Interpreter copied to clipboard
arguments.toString() should return "[object Arguments]"
If you want to be pedantically ES5.1 compatible, then the following code should alert "[object Arguments]" instead of "foo,bar":
(function(){
alert(arguments.toString())
})("foo", "bar")
Not too concerned about the above issue. But this one has more functional impact:
function foo(a) {
arguments[0] = 42;
alert(a);
}
foo(7);