[Webkit-unassigned] [Bug 27226] New: Possibly faulty handling of function statements enclosed in other statements (i.e. block, if, etc). JavaScriptCore test ecma_3/FunExpr/fe-001.js failed.
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Mon Jul 13 11:44:02 PDT 2009
https://bugs.webkit.org/show_bug.cgi?id=27226
Summary: Possibly faulty handling of function statements
enclosed in other statements (i.e. block, if, etc).
JavaScriptCore test ecma_3/FunExpr/fe-001.js failed.
Product: WebKit
Version: 528+ (Nightly build)
Platform: All
OS/Version: All
Status: UNCONFIRMED
Severity: Normal
Priority: P2
Component: JavaScriptCore
AssignedTo: webkit-unassigned at lists.webkit.org
ReportedBy: carol.szabo at nokia.com
Despite the fact that section 10.6 of the ECMA 5th edition specifies that
function declarations in a certain scope have to be added to the Execution
environment when the environment is created, thus before any code in the scope
is executed, which is in accordance with the way JavaScriptCore acts, section
13 of the same document when explaining how the process is executed may be
interpreted to mean that function definition statements nested inside other
statements should not be added to the execution environment until actually
executed.
This later behavior is tested by ecma_3/FunExpr/fe-001.js an implemented by
Firefox.
In case this second behavior is the desired behavior for WebKit (which I doubt
since it is inconsistent with the variable declaration behavior, which adds all
vars to the execution environment before any code is executed regardless of
whether the declaration is nested in a statement such as an if or block
statement) the test is valid and the code should be fixed.
In case the current behavior is the desired one, the test should probably be
skipped.
--
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
More information about the webkit-unassigned
mailing list