RESOLVED WONTFIX 144036
Web Inspector: convert more code to use ES6 method `Object.is()` instead of ===
https://bugs.webkit.org/show_bug.cgi?id=144036
Summary Web Inspector: convert more code to use ES6 method `Object.is()` instead of ===
Brian Burg
Reported 2015-04-21 20:31:54 PDT
Implemented in https://bugs.webkit.org/show_bug.cgi?id=143865. It is basically the same thing as ===, except Object.is(NaN, NaN) returns true.
Attachments
Radar WebKit Bug Importer
Comment 1 2015-04-21 20:32:21 PDT
Timothy Hatcher
Comment 2 2015-04-22 07:41:45 PDT
I think I still prefer === unless NaN is in the picture. I have a feeling Object.is() would be slower than ===.
Jordan Harband
Comment 3 2015-04-22 12:09:43 PDT
That's great incentive to make Object.is just as optimized :-) The JIT should be able to inline `Object.is(a, b)` with `a === b || (a !== a && b !== b)` at some point, I'd guess?
Note You need to log in before you can comment on or make changes to this bug.