Initial commit

This commit is contained in:
mats committed 2026-09-22 08:41:20 +02:00
commit 89053153cc
8152 files changed
+2086461

No files matched your search

+14
View File
@@ -0,0 +1,14 @@
"use strict";
const enumerationValues = new Set(["start", "center", "end", "nearest"]);
exports.enumerationValues = enumerationValues;
exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
const string = `${value}`;
if (!enumerationValues.has(string)) {
throw new globalObject.TypeError(
`${context} '${string}' is not a valid enumeration value for ScrollLogicalPosition`
);
}
return string;
};