Closed Bug 17290 Opened 25 years ago Closed 25 years ago

Incorrect function initialization

Categories

(Core :: JavaScript Engine, defect, P1)

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: waldemar, Assigned: brendan)

Details

(Keywords: js1.5)

Given: function t4() {var x; return x; function x() {return 7}} t4() should return function x() {...} according to ECMA Edition 3 (see section 10: FunctionDeclarations are processed before VariableDeclarations, and VariableDeclarations don't replace existing values with undefined). We return undefined. Waldemar
Assignee: mccabe → rogerl
Reassigning to Roger.
Blocks: 20203
Blocks: 20870
Assignee: rogerl → brendan
Status: NEW → ASSIGNED
Priority: P3 → P2
Keywords: js1.5
Priority: P2 → P1
OS: Mac System 8.6 → other
Hardware: Macintosh → All
OS: other → All
Fix is in JS15_20000111_BRANCH. Comments welcome. /be
QA Contact: cbegle → rginda
test passes on branch.
Status: ASSIGNED → RESOLVED
Closed: 25 years ago
Resolution: --- → FIXED
Fix landed from JS15_20000111_BRANCH. /be
added testcase ecma_3/ExecutionContexts/10.1.3.js
Marking Verified.
Status: RESOLVED → VERIFIED
No longer blocks: 20203
No longer blocks: 20870
You need to log in before you can comment on or make changes to this bug.