RESOLVED WORKSFORME 17734
window.eval can't find global variables when call it from a function
https://bugs.webkit.org/show_bug.cgi?id=17734
Summary window.eval can't find global variables when call it from a function
wesleyZeng
Reported 2008-03-09 18:26:10 PDT
The attached test.html shows the problem: alert(x) in window.eval works fine in Firefox and Opera, but "Undefined" is popup in KJS. test.html <script> var x=1; function test() { window.eval("alert(x); var x=2;"); alert(x); } test(); </script>
Attachments
Sam Weinig
Comment 1 2008-03-09 21:04:43 PDT
This is fixed in ToT.
Note You need to log in before you can comment on or make changes to this bug.