« Bugzilla Issues Index
#2576 — 9.4.5.2 [[DefineOwnProperty]]: Condition in step 3.c.iii is never true
- bug_id:
2576
- creation_ts:
2014-03-10 04:54:00 -0700
- short_desc:
9.4.5.2 [[DefineOwnProperty]]: Condition in step 3.c.iii is never true
- delta_ts:
2014-04-06 11:30:15 -0700
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 22: January 20, 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
- commentid:
7430
- comment_count:
0
- who:
André Bargull
- bug_when:
2014-03-10 04:54:14 -0700
9.4.5.2 [[DefineOwnProperty]], steps 3.c.iii - 3.c.iii:
> ii. Let length be the value of O’s [[ArrayLength]] internal slot.
> iii. If length is undefined, then throw a TypeError exception.
Typed arrays are the only integer indexed exotic objects and their [[ArrayLength]] data slot is always initialised with 0, see 22.2.2.4 %TypedArray%[ @@create ], step 10. That means the if-condition will always evaluate to false. If step 3.c.iii is supposed to test the initialisation state of an integer indexed exotic object, a different internal data slot needs to be used. Otherwise the if-condition should be removed or changed to an assertion.
- commentid:
7438
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2014-03-18 10:40:04 -0700
fixed in rev23 editor's draft
deleted the check for undefined
- commentid:
7550
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2014-04-06 11:30:15 -0700
fixed in rev23 draft