« Bugzilla Issues Index
#2066 — 22.1.3.22 Array.prototype.slice(): Change CreateOwnDataProperty() to DefinePropertyOrThrow()
- bug_id:
2066
- creation_ts:
2013-10-07 04:51:00 -0700
- short_desc:
22.1.3.22 Array.prototype.slice(): Change CreateOwnDataProperty() to DefinePropertyOrThrow()
- delta_ts:
2013-10-29 09:45:08 -0700
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 19: September 27, 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:
5853
- comment_count:
0
- who:
André Bargull
- bug_when:
2013-10-07 04:51:10 -0700
22.1.3.22 Array.prototype.slice (start, end), steps 18.d.iii - 18.d.v:
The common pattern for this operation is to use DefinePropertyOrThrow() instead of using CreateOwnDataProperty(). Do you mind changing this?
From:
> iii. Let status be the result of CreateOwnDataProperty(A, ToString(n), kValue).
> iv. ReturnIfAbrupt(status).
> v. If status is false, throw a TypeError exception.
To:
> iii. Let status be the result of DefinePropertyOrThrow(A, ToString(n), Property Descriptor {[[Value]]: kValue, [[Writable]]: true, [[Enumerable]]: true, [[Configurable]]: true}).
> iv. ReturnIfAbrupt(status).
- commentid:
5916
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2013-10-21 11:41:23 -0700
fixed in rev20 editor's draft
added a CreateDataPropertyOrThrow abstraction operation to handle situations like this
- commentid:
6046
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2013-10-29 09:45:08 -0700
fixed in rev20 draft, Oct. 28, 2013