[Webkit-unassigned] [Bug 14090] New: Redeclaring function throws syntax error
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Jun 12 09:18:05 PDT 2007
http://bugs.webkit.org/show_bug.cgi?id=14090
Summary: Redeclaring function throws syntax error
Product: WebKit
Version: 522+ (nightly)
Platform: Macintosh
OS/Version: Mac OS X 10.4
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: bfults at gmail.com
Using http://mochikit.com/examples/interpreter/ as a simple CLI.
In r22084 nightly:
>>> for (var i=10;i>=0;i--) function x(k) { return ++k; };
Error:
line 1
message Parse error
name SyntaxError
In Firefox 2.0.0.4:
>>> for (var i=10;i>=0;i--) function x(k) { return ++k; };
[no error]
In Opera 9.21:
>>> for (var i=10;i>=0;i--) function x(k) { return ++k; };
[no error]
Similar results can be found in IE.
--
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