Status: New Owner: ---- Labels: Type-Bug Priority-Medium
New issue 869 by [email protected]: "With" and scope http://code.google.com/p/v8/issues/detail?id=869 This bug appeared in the Chromium bug tracker but seems to be a V8 issue. Original report here: http://code.google.com/p/chromium/issues/detail?id=42476 What steps will reproduce the problem? 1. Open inspector 2. Type: "(function(a){with(a){function b(){return x}return b()}})({x:1});" 3. Watch error : "undefined variable x" 4. Type: "(function(a){with(a){return(function (){return x})()}})({x:1});" 5. And get "1" What is the expected result? "1" in both cases What happens instead? Errors -- v8-dev mailing list [email protected] http://groups.google.com/group/v8-dev
