On mercoledì 20 giugno 2007, Maksim Orlovich wrote: > > * kjs/nodes.cpp: > > (VarDeclNode::evaluate): Additional check if the var decl > > identifier is 'arguments' > > Ugh. I am pretty sure this stuff works right in KJS already (though > probably by accident, due to optimizeForLocalAccess) --- do you have a > testcase showing it didn't work? If so, please add it to > js/arguments-scope.js. And at any rate this is a hack on top of a hack. > 'var foo;' should really have no effect during execution whatsoever. > It's probably worth the effort to figure out why in the world we're doing > this (for the global object, anyway), rather than piling on more hacks. I just checked the original bug report: http://bugs.webkit.org/show_bug.cgi?id=13456 The patch actually fixes this problem for the page in the bug report ( http://www.klm.com ) Follow the instructions in the bug report... Anyway, I'll try to port the testcase from JSC testsuite. Luciano