(n)
| 465 | return a; |
| 466 | } |
| 467 | function formatBytes(n) { |
| 468 | if (n == null || isNaN(n)) return '—'; |
| 469 | if (n < 1024) return n + ' B'; |
| 470 | if (n < 1024 * 1024) return (n / 1024).toFixed(2) + ' KB'; |
| 471 | return (n / (1024 * 1024)).toFixed(2) + ' MB'; |
| 472 | } |
| 473 | function formatSnippet(mode, url) { |
| 474 | if (!url) return ''; |
| 475 | var esc = url.replace(/"/g, '"'); |
no outgoing calls
no test coverage detected