archives

« Bugzilla Issues Index

#1972 — 26.1.8, Reflect.hasOwn(): unusual evaluation order


Steps 1-2 and steps 3-4 should be reversed, the current evaluation order is unusual. I don't think the backwards compatibility issue (*) in 19.1.4.2 Object.prototype.hasOwnProperty() needs to applied for Reflect.hasOwn(), too. Consistency with 26.1.7 Reflect.has() seems to be more important.


(*) It's not even a real backwards compatibility issue, e.g. V8 doesn't follow the ES5/6 spec for Object.prototype.hasOwnProperty() and no websites seem to break because of this...


I agree, internal consistency among the Reflect functions is probably more important.

Fixed in rev20 editor's draft


fixed in rev20 draft, Oct. 28, 2013