« Bugzilla Issues Index
#2709 — 8.1.1.1.6 GetBindingValue: Throw ReferenceError on access to uninitialized binding
- bug_id:
2709
- creation_ts:
2014-04-20 13:50:00 -0700
- short_desc:
8.1.1.1.6 GetBindingValue: Throw ReferenceError on access to uninitialized binding
- delta_ts:
2014-05-06 15:09:55 -0700
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 23: April 5, 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:
waldron.rick
- commentid:
7864
- comment_count:
0
- who:
André Bargull
- bug_when:
2014-04-20 13:50:41 -0700
8.1.1.1.6 GetBindingValue(N,S), step 3a
According to rwaldron, access on uninitialized is supposed to throw a ReferenceError regardless of the strict mode setting.
- commentid:
7865
- comment_count:
1
- who:
Rick Waldron
- bug_when:
2014-04-20 13:58:03 -0700
For context: https://github.com/nzakas/understandinges6/issues/51#issuecomment-40899532
- commentid:
7877
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2014-04-22 10:19:02 -0700
fixed in rev24 editor's draft
getting the value of an unitialized binding is now always a Reference error, regardless of the setting of the S argument. This is necessary to make TDZs work correctly.
This is not a breaking change from ES5 be cause in ES5 all newly created bindings were immediately initialized.
- commentid:
8156
- comment_count:
3
- who:
Allen Wirfs-Brock
- bug_when:
2014-05-06 15:09:55 -0700
fixed in rev24