« Bugzilla Issues Index
#1089 — Object.is() is not defined
- bug_id:
1089
- creation_ts:
2012-11-28 15:46:00 -0800
- short_desc:
Object.is() is not defined
- delta_ts:
2013-03-08 14:44:18 -0800
- product:
Draft for 6th Edition
- component:
new feature
- version:
Rev 12: November 22, 2012 Draft
- rep_platform:
All
- op_sys:
All
- bug_status:
RESOLVED
- resolution:
FIXED
- priority:
Normal
- bug_severity:
enhancement
- everconfirmed:
true
- reporter:
Joshua Bell
- assigned_to:
Allen Wirfs-Brock
- commentid:
2896
- comment_count:
0
- who:
Joshua Bell
- bug_when:
2012-11-28 15:46:35 -0800
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).
- commentid:
3274
- comment_count:
1
- who:
Allen Wirfs-Brock
- bug_when:
2013-03-05 16:49:45 -0800
fixed in rev 14 editor's draft
- commentid:
3344
- comment_count:
2
- who:
Allen Wirfs-Brock
- bug_when:
2013-03-08 14:44:18 -0800
in Rev 14 draft