diff options
| author | Adam Mathes <adam@adammathes.com> | 2026-02-14 14:46:37 -0800 |
|---|---|---|
| committer | Adam Mathes <adam@adammathes.com> | 2026-02-14 14:46:37 -0800 |
| commit | afa87af01c79a9baa539f2992d32154d2a4739bd (patch) | |
| tree | 92c7416db734270a2fee1d72ee9cc119379ff8e1 /vanilla/node_modules/@bcoe/v8-coverage/src/lib/compare.js | |
| parent | 3b927e84d200402281f68181cd4253bc77e5528d (diff) | |
| download | neko-afa87af01c79a9baa539f2992d32154d2a4739bd.tar.gz neko-afa87af01c79a9baa539f2992d32154d2a4739bd.tar.bz2 neko-afa87af01c79a9baa539f2992d32154d2a4739bd.zip | |
task: delete vanilla js prototype\n\n- Removed vanilla/ directory and web/dist/vanilla directory\n- Updated Makefile, Dockerfile, and CI workflow to remove vanilla references\n- Cleaned up web/web.go to remove vanilla embed and routes\n- Verified build and tests pass\n\nCloses NK-2tcnmq
Diffstat (limited to 'vanilla/node_modules/@bcoe/v8-coverage/src/lib/compare.js')
| -rw-r--r-- | vanilla/node_modules/@bcoe/v8-coverage/src/lib/compare.js | 44 |
1 files changed, 0 insertions, 44 deletions
diff --git a/vanilla/node_modules/@bcoe/v8-coverage/src/lib/compare.js b/vanilla/node_modules/@bcoe/v8-coverage/src/lib/compare.js deleted file mode 100644 index d887018..0000000 --- a/vanilla/node_modules/@bcoe/v8-coverage/src/lib/compare.js +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Compares two script coverages. - * - * The result corresponds to the comparison of their `url` value (alphabetical sort). - */ -function compareScriptCovs(a, b) { - if (a.url === b.url) { - return 0; - } else if (a.url < b.url) { - return -1; - } else { - return 1; - } -} - -/** - * Compares two function coverages. - * - * The result corresponds to the comparison of the root ranges. - */ -function compareFunctionCovs(a, b) { - return compareRangeCovs(a.ranges[0], b.ranges[0]); -} - -/** - * Compares two range coverages. - * - * The ranges are first ordered by ascending `startOffset` and then by - * descending `endOffset`. - * This corresponds to a pre-order tree traversal. - */ -function compareRangeCovs(a, b) { - if (a.startOffset !== b.startOffset) { - return a.startOffset - b.startOffset; - } else { - return b.endOffset - a.endOffset; - } -} - -module.exports = { - compareScriptCovs, - compareFunctionCovs, - compareRangeCovs, -}; |
