« Bugzilla Issues Index
#1420 — 10.2.1.1.5: SetMutableBinding allows changing the value of uninitialised bindings
- bug_id:
1420
- creation_ts:
2013-04-11 11:21:00 -0700
- short_desc:
10.2.1.1.5: SetMutableBinding allows changing the value of uninitialised bindings
- delta_ts:
2013-05-14 18:13:53 -0700
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 14: March 8, 2013 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
- commentid:
3614
- comment_count:
0
- who:
André Bargull
- bug_when:
2013-04-11 11:21:44 -0700
Per step 3 of SetMutableBinding [10.2.1.1.5], the bound value of a binding can be altered regardless of its initialisation state. That means the following code is valid and does not throw:
---
function f() {
foo = 3;
return;
let foo;
}
---
Maybe this is just a side-effect of Function Declaration Instantiation [10.5.3] being still incomplete and not yet compliant to ES5 (test2626 test case S10.2.1_A4_T1 currently fails).
- commentid:
3839
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2013-05-13 16:15:47 -0700
Looks to me like steps 3 and 4 need to be reversed.
Fixed in rev15 editor's draft.
- commentid:
3956
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2013-05-14 18:13:53 -0700
resolved in rev 15, May 14, 2013 draft