[Webkit-unassigned] [Bug 14090] Redeclaring function throws syntax error
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jun 13 16:21:31 PDT 2007
http://bugs.webkit.org/show_bug.cgi?id=14090
bdash at webkit.org changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |bdash at webkit.org
Status|UNCONFIRMED |NEW
Ever Confirmed|0 |1
------- Comment #1 from bdash at webkit.org 2007-06-13 16:21 PDT -------
This appears to be due to the lack of {}'s inside the for statement. The
following example throws a syntax error:
for (var i = 10; i >= 0; i--)
function x(k)
{
return ++k;
};
The following example does not:
for (var i = 10; i >= 0; i--)
{
function x(k)
{
return ++k;
};
}
--
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