| Summary: | Web Inspector: convert more code to use ES6 method `Object.is()` instead of === | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Brian Burg <burg> |
| Component: | Web Inspector | Assignee: | 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
I think I still prefer === unless NaN is in the picture. I have a feeling Object.is() would be slower than ===. 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? |