| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -334,8 +334,8 @@ function cloneSourceMapV3(payload) { | |||
| 334 | 334 | * @return {number} | |
| 335 | 335 | */ | |
| 336 | 336 | function compareSourceMapEntry(entry1, entry2) { | |
| 337 | - const [lineNumber1, columnNumber1] = entry1; | ||
| 338 | - const [lineNumber2, columnNumber2] = entry2; | ||
| 337 | + const { 0: lineNumber1, 1: columnNumber1 } = entry1; | ||
| 338 | + const { 0: lineNumber2, 1: columnNumber2 } = entry2; | ||
| 339 | 339 | if (lineNumber1 !== lineNumber2) { | |
| 340 | 340 | return lineNumber1 - lineNumber2; | |
| 341 | 341 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -138,7 +138,7 @@ function sourceMapFromFile(mapURL) { | |||
| 138 | 138 | // data:[<mediatype>][;base64],<data> see: | |
| 139 | 139 | // https://tools.ietf.org/html/rfc2397#section-2 | |
| 140 | 140 | function sourceMapFromDataUrl(sourceURL, url) { | |
| 141 | - const [format, data] = StringPrototypeSplit(url, ','); | ||
| 141 | + const { 0: format, 1: data } = StringPrototypeSplit(url, ','); | ||
| 142 | 142 | const splitFormat = StringPrototypeSplit(format, ';'); | |
| 143 | 143 | const contentType = splitFormat[0]; | |
| 144 | 144 | const base64 = splitFormat[splitFormat.length - 1] === 'base64'; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments