MCPcopy Create free account
hub / github.com/angular/dev-infra / getEncoding

Function getEncoding

github-actions/browserstack/set-browserstack-env.js:14988–15263  ·  view source on GitHub ↗
(label)

Source from the content-addressed store, hash-verified

14986 var kState = Symbol("ProgressEvent state");
14987 var ProgressEvent = class _ProgressEvent extends Event {
14988 constructor(type, eventInitDict = {}) {
14989 type = webidl.converters.DOMString(type, "ProgressEvent constructor", "type");
14990 eventInitDict = webidl.converters.ProgressEventInit(eventInitDict != null ? eventInitDict : {});
14991 super(type, eventInitDict);
14992 this[kState] = {
14993 lengthComputable: eventInitDict.lengthComputable,
14994 loaded: eventInitDict.loaded,
14995 total: eventInitDict.total
14996 };
14997 }
14998 get lengthComputable() {
14999 webidl.brandCheck(this, _ProgressEvent);
15000 return this[kState].lengthComputable;
15001 }
15002 get loaded() {
15003 webidl.brandCheck(this, _ProgressEvent);
15004 return this[kState].loaded;
15005 }
15006 get total() {
15007 webidl.brandCheck(this, _ProgressEvent);
15008 return this[kState].total;
15009 }
15010 };
15011 webidl.converters.ProgressEventInit = webidl.dictionaryConverter([
15012 {
15013 key: "lengthComputable",
15014 converter: webidl.converters.boolean,
15015 defaultValue: () => false
15016 },
15017 {
15018 key: "loaded",
15019 converter: webidl.converters["unsigned long long"],
15020 defaultValue: () => 0
15021 },
15022 {
15023 key: "total",
15024 converter: webidl.converters["unsigned long long"],
15025 defaultValue: () => 0
15026 },
15027 {
15028 key: "bubbles",
15029 converter: webidl.converters.boolean,
15030 defaultValue: () => false
15031 },
15032 {
15033 key: "cancelable",
15034 converter: webidl.converters.boolean,
15035 defaultValue: () => false
15036 },
15037 {
15038 key: "composed",
15039 converter: webidl.converters.boolean,
15040 defaultValue: () => false
15041 }
15042 ]);
15043 module.exports = {
15044 ProgressEvent
15045 };

Callers 1

packageDataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected