archives

« Bugzilla Issues Index

#1089 — Object.is() is not defined


Based on http://wiki.ecmascript.org/doku.php?id=harmony:egal there was consensus to:

* Add Object.is()
* Add is and isnt as contextual keywords, where "x is y" desugars to Object.is(x, y), and "x isnt y" desugars to !Object.is(x, y)

(There was further discussion on that page about Object.isnt)

Currently, the Ref 12 Draft specifies the contextual keywords "11.9 Equality Operators" but Object.is() is not defined.

I'm not a TC-39 member so perhaps there was later discussion that eliminated Object.is(). That would be a shame as the function form can be trivially polyfilled while the operator form cannot (without transpiling).


fixed in rev 14 editor's draft


in Rev 14 draft