WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
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
Add attachment
proposed patch, testcase, etc.
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.
Top of Page
Format For Printing
XML
Clone This Bug