ARGUMENTS.SHOULD.BE.ARRAY bug-fix
Vassily Gavrilyak
gavrilyak at gmail.com
Sun Mar 18 13:58:01 PDT 2007
Spec states that arguments should be an object that delegates to Array.prototype
So now actually argument will finally be array and used as such.
The question is - will the caller side of function arguments be fixed
the same way.
So the following code will work
function foo(){
alert(arguments.join());
}
foo.apply(this, [1,,2]);
foo.call (this, 1,,2);
this.fool(1,,2);
All 3 statements means the same and looks symmetrically, but second
and third give
compiler errors. Is that addressed too, so we will actually have
arguments === Array?
Regards,
Vassily Gavrilyak
More information about the Es4-discuss
mailing list