archives

« Bugzilla Issues Index

#2511 — set Object.prototype.__proto__ return value?


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
}
};


fixed in rev23 editor's draft


fixed in rev23 draft