Sha256: c3208b053e37162a2b5c9713b265aacf15e0830304993a3c4b5764da60b0a2ed
Contents?: true
Size: 413 Bytes
Versions: 26
Compression:
Stored size: 413 Bytes
Contents
"use strict"; const enumerationValues = new Set(["open", "closed"]); 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 ShadowRootMode`); } return string; };
Version data entries
26 entries across 26 versions & 1 rubygems