[Webkit-unassigned] [Bug 17734] New: window.eval can't find global variables when call it from a function
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Mar 9 18:26:10 PDT 2008
http://bugs.webkit.org/show_bug.cgi?id=17734
Summary: window.eval can't find global variables when call it
from a function
Product: WebKit
Version: 525+ (Nightly build)
Platform: PC
OS/Version: Mac OS X 10.5
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: weihong.zeng at hotmail.com
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>
--
Configure bugmail: http://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the webkit-unassigned
mailing list