Status: New
Owner: ----
New issue 772 by SABGrand: Scope for function using "with" statement
http://code.google.com/p/v8/issues/detail?id=772
Example:
<script type="text/javascript">
function Test()
{
var x = {a: 1, b: 2};
with (x)
{
function q()
{
alert(a);
}
}
this.c = function()
{
q();
}
}
var t = new Test();
t.c();
</script>
Result: ReferenceError: a is not defined
Expected result: message with text "1"
It work in Mozilla Firefox.
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev