[Webkit-unassigned] [Bug 14163] declared variable in window.eval statement not preserved after return from calling context
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Oct 15 05:08:44 PDT 2007
http://bugs.webkit.org/show_bug.cgi?id=14163
------- Comment #8 from marcus at better.se 2007-10-15 05:08 PDT -------
(In reply to comment #2)
> also declaration of functions, a simple test case:
>
> window.eval('function test1() {}', 'JavaScript');
> window.eval('test2 = new Function() {}', 'JavaScript');
This test case is flawed. The use of the Function constructor is illegal. It
should be
window.eval('test2 = new Function()');
In that case the result is that test1 will not be defined outside of f, but
test2 will (confirmed with WebKit nightly build r26570).
Is a fix planned before Safari 3.0?
--
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