You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: scripts/build/mirror.ts
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,8 @@ const matchingSafariVersions = new Map([
41
41
* Convert a version number to the matching version of the target browser
42
42
* @param targetBrowser The browser to mirror to
43
43
* @param sourceVersion The version from the source browser
44
-
* @returns The matching browser version
44
+
* @returns The matching browser version, or `false` if no match is found
45
+
* @throws An error when the downstream browser has no upstream
45
46
*/
46
47
exportconstgetMatchingBrowserVersion=(
47
48
targetBrowser: BrowserName,
@@ -239,6 +240,11 @@ export const bumpSupport = (
239
240
destination,
240
241
sourceData.version_removed,
241
242
);
243
+
244
+
// Ensure that version_removed is not present if it's not applicable, such as when the upstream browser removed the feature in a newer release than a matching downstream browser
0 commit comments