Skip to content

Commit

Permalink
minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisC committed Dec 20, 2023
1 parent 57d0297 commit 220872d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 0 additions & 1 deletion scripts/update-bcd.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import logger from "../lib/logger.js";
import bcd from "../unittest/bcd.test.js";

import {
getStatementSupportRanges,
findEntry,
getSupportMap,
getSupportMatrix,
Expand Down
7 changes: 7 additions & 0 deletions scripts/update-bcd.ts
Original file line number Diff line number Diff line change
Expand Up @@ -815,6 +815,13 @@ const skipCurrentBeforeSupport = skip("currentBeforeSupport", ({
}
});

/**
* Iterates through an array of default support statements to detect support for a specific browser version.
* @param version - A version string.
* @param hasSupport - An boolean indicating if a test result for the version shows support.
* @param statements - An array of default statements.
* @returns A boolean indicating whether default statements indicate support for the version.
*/
const isSupported = (
version: string,
hasSupport: boolean,
Expand Down

0 comments on commit 220872d

Please sign in to comment.