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