« Bugzilla Issues Index
#2511 — set Object.prototype.__proto__ return value?
- bug_id:
2511
- creation_ts:
2014-02-07 07:05:00 -0800
- short_desc:
set Object.prototype.__proto__ return value?
- delta_ts:
2015-07-10 08:35:02 -0700
- product:
Draft for 6th Edition
- component:
editorial issue
- version:
Rev 21: November 8, 2013 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
enhancement
- everconfirmed:
true
- reporter:
Erik Arvidsson
- assigned_to:
Allen Wirfs-Brock
- cc:
erik.arvidsson
- commentid:
7206
- comment_count:
0
- who:
Erik Arvidsson
- bug_when:
2014-02-07 07:05:44 -0800
Is there a reason why the setter returns `proto` instead of `undefined`?
This is the only setter in the whole spec so I guess it is consistent :-)
However, DOM setters all return undefined.
http://heycam.github.io/webidl/#dfn-attribute-setter
and the common way to write setters in user code is to not return the value.
var object = {
set prop(v) {
print(v);
// no return
}
};
- commentid:
7364
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2014-02-18 10:11:14 -0800
fixed in rev23 editor's draft
- commentid:
7601
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2014-04-06 11:31:24 -0700
fixed in rev23 draft