| Summary: | Web Inspector: Use String.prototype.startsWith in more places | ||||||
|---|---|---|---|---|---|---|---|
| Product: | WebKit | Reporter: | Joseph Pecoraro <joepeck> | ||||
| Component: | Web Inspector | Assignee: | Joseph Pecoraro <joepeck> | ||||
| Status: | RESOLVED FIXED | ||||||
| Severity: | Normal | CC: | commit-queue, graouts, joepeck, jonowells, mattbaker, nvasilyev, timothy, webkit-bug-importer | ||||
| Priority: | P2 | Keywords: | DoNotImportToRadar | ||||
| Version: | 528+ (Nightly build) | ||||||
| Hardware: | All | ||||||
| OS: | All | ||||||
| Attachments: |
|
||||||
Created attachment 251282 [details]
[PATCH] Proposed Fix
Comment on attachment 251282 [details] [PATCH] Proposed Fix Clearing flags on attachment: 251282 Committed r183092: <http://trac.webkit.org/changeset/183092> All reviewed patches have been landed. Closing bug. |
* SUMMARY Use String.prototype.startsWith in more places. Checking `"haystack".indexOf("needle") === 0` may be less efficient, but certainly is less readable, then `"haystack".startsWith("needle")` which can bail after the first character comparison.