« Bugzilla Issues Index
#1216 — Description of [[Writable]] wrong
- bug_id:
1216
- creation_ts:
2013-01-26 11:15:00 -0800
- short_desc:
Description of [[Writable]] wrong
- delta_ts:
2013-03-08 14:44:17 -0800
- product:
Draft for 6th Edition
- component:
technical issue
- version:
Rev 13: December 21, 2012 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
normal
- everconfirmed:
true
- reporter:
Mark Miller
- assigned_to:
Allen Wirfs-Brock
- cc:
erights
- commentid:
3146
- comment_count:
0
- who:
Mark Miller
- bug_when:
2013-01-26 11:15:41 -0800
8.1.6.1 Table 5 says that [[Writable]]
"If false, attempts by ECMAScript code to change the property’s [[Value]] attribute using [[SetP]] or [[DefineOwnProperty]] will not succeed."
The "or [[DefineOwnProperty]]" should be deleted.
- commentid:
3284
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2013-03-05 17:59:56 -0800
Why?? Object.defineProperty(o,p, {value: "foo"})
fales if property p is non-writable and and the current value is not "foo".
- commentid:
3287
- comment_count:
2
- who:
Mark Miller
- bug_when:
2013-03-05 19:40:42 -0800
(In reply to comment #1)
> Why?? Object.defineProperty(o,p, {value: "foo"})
> [fails] if property p is non-writable and and the current value is not "foo".
Even if o[p] is configurable? I don't think so.
- commentid:
3288
- comment_count:
3
- who:
Allen Wirfs-Brock
- bug_when:
2013-03-06 08:15:28 -0800
You're correct, I double checked against the ES5.1 spec.
That's actually a little scary because I not sure that the state of [[Writable]] is explicitly considered every place (primarily in ch. 15) where [[DefineOwnProoperty]] is used instead of [[Put]] to set a value.
- commentid:
3289
- comment_count:
4
- who:
Allen Wirfs-Brock
- bug_when:
2013-03-06 10:00:22 -0800
corrected in rev 14 editor's draft
- commentid:
3340
- comment_count:
5
- who:
Allen Wirfs-Brock
- bug_when:
2013-03-08 14:44:17 -0800
in Rev 14 draft