[Webkit-unassigned] [Bug 15985] New: function declaration inside a statement behaves differently from Firefox, but the same as IE
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Nov 14 08:09:58 PST 2007
http://bugs.webkit.org/show_bug.cgi?id=15985
Summary: function declaration inside a statement behaves
differently from Firefox, but the same as IE
Product: WebKit
Version: 525+ (Nightly build)
Platform: PC
OS/Version: Mac OS X 10.4
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: ian.eng.webkit at gmail.com
In the layout test, fast/js/function-declarations-in-switch-statement.html.
Function declarations in a switch statement. SpiderMonkey assigns function body
to function name dynamically (only initializes the function name when the
statement is executed). KJS and IE initialize the function name with the last
declaration no matter the statement is executed or not.
Function declaration in a statement is not part of ECMA-262. The real question
is which behavior should KJS have, IE or Firefox?
--
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