Sha256: 56224116ab65da42666f4ecbd21edbf0dea5ede3f88c55b645eb04635cb3ad68
Contents?: true
Size: 437 Bytes
Versions: 26
Compression:
Stored size: 437 Bytes
Contents
"use strict"; const enumerationValues = new Set(["loading", "interactive", "complete"]); 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 DocumentReadyState`); } return string; };
Version data entries
26 entries across 26 versions & 1 rubygems