eval() can't make function arguments?
Posted: Wed Jul 04, 2007 1:29 pm
Here's a simple test for something I'd like to do:
This outputs:
Any idea why, and how I can get something like this to work?
Code: Select all
function Test(a, b, c)
{
alert('Length: ' + arguments.length + ', arguments[1]: ' + arguments[1]);
}
Test(1, eval('2, 3'));Code: Select all
Length: 2, arguments[1]: 3