Bug 144036

Summary: Web Inspector: convert more code to use ES6 method `Object.is()` instead of ===
Product: WebKit Reporter: Brian Burg <burg>
Component: Web InspectorAssignee: Nobody <webkit-unassigned>
Status: RESOLVED WONTFIX    
Severity: Normal CC: bburg, graouts, inspector-bugzilla-changes, jonowells, ljharb, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   

Description Brian Burg 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.
Comment 1 Radar WebKit Bug Importer 2015-04-21 20:32:21 PDT
<rdar://problem/20646006>
Comment 2 Timothy Hatcher 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 ===.
Comment 3 Jordan Harband 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?