| Summary: | Web Inspector: Eliminate typeof "undefined" checks | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Joseph Pecoraro <joepeck> | ||||
| Component: | Web Inspector | Assignee: | Nobody <webkit-unassigned> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | commit-queue, graouts, joepeck, timothy, webkit-bug-importer | ||||
| Priority: | P2 | ||||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Attachments: |
|
||||||
Created attachment 237876 [details]
[PATCH] Proposed Fix
Comment on attachment 237876 [details] [PATCH] Proposed Fix Clearing flags on attachment: 237876 Committed r173494: <http://trac.webkit.org/changeset/173494> All reviewed patches have been landed. Closing bug. Comment on attachment 237876 [details]
[PATCH] Proposed Fix
Was this supposed to include a change to .eslintrc?
|
A long time ago, `undefined` could be re-assigned. Which could cause craziness comparing to undefined. That has not been the case for a while. We can just convert: typeof foo === "undefined" To: foo === undefined