« Bugzilla Issues Index
#2959 — B.3.2 Web Legacy Block Function: Handle duplicate block function declarations
- bug_id:
2959
- creation_ts:
2014-06-02 08:43:00 -0700
- short_desc:
B.3.2 Web Legacy Block Function: Handle duplicate block function declarations
- delta_ts:
2014-07-18 23:42:12 -0700
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 25: May 22, 2014 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
normal
- everconfirmed:
true
- reporter:
André Bargull
- assigned_to:
Allen Wirfs-Brock
- cc:
brterlso
- commentid:
8793
- comment_count:
0
- who:
André Bargull
- bug_when:
2014-06-02 08:43:03 -0700
B.3.2 Web Legacy Compatibility for Block-Level Function Declarations
Add new sub-step to 2.a.ii to track duplicate block level function declarations:
> Append F to instantiatedVarNames.
Test case:
---
function f() {
{ function g(){} }
{ function g(){} }
}
f()
---
- commentid:
9157
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2014-07-11 14:00:37 -0700
fixed in rev26 editor's draft
Modified part b so that the var binding is updated on every such block level declaration evaluation which means that
function f() {
{ function g(){console.log(1)} }
{ function g(){console.log(2)} }
g();
}
f()
will not long "2" rather than "1". This is a better match to the legacy interoperable intersection semantics.
- commentid:
9320
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2014-07-18 23:42:12 -0700
in rev26 draft