1
0
mirror of https://github.com/S2-/minifyfromhtml.git synced 2025-08-07 14:10:04 +02:00
Files
minifyfromhtml/node_modules/jsdom/lib/jsdom/living/generated/DocumentReadyState.js
2018-05-05 14:29:20 +02:00

14 lines
402 B
JavaScript

"use strict";
const enumerationValues = new Set(["loading", "interactive", "complete"]);
module.exports = {
enumerationValues,
convert(value, { context = "The provided value" } = {}) {
const string = `${value}`;
if (!enumerationValues.has(value)) {
throw new TypeError(`${context} '${value}' is not a valid enumeration value for DocumentReadyState`);
}
return string;
}
};