@@ -8407,6 +8407,8 @@ const utils = require("./utils.js");
8407
8407
8408
8408
const RequestDestination = require("./RequestDestination.js");
8409
8409
const URL = require("./URL.js");
8410
+ const AsyncCallbackFunction = require("./AsyncCallbackFunction.js");
8411
+ const AsyncCallbackInterface = require("./AsyncCallbackInterface.js");
8410
8412
const implSymbol = utils.implSymbol;
8411
8413
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
8412
8414
@@ -8923,6 +8925,82 @@ exports.install = (globalObject, globalNames) => {
8923
8925
return esValue[implSymbol].arrayBufferOrSharedArrayBufferConsumer(...args);
8924
8926
}
8925
8927
8928
+ callbackFunctionOrNumConsumer(cb) {
8929
+ const esValue = this !== null && this !== undefined ? this : globalObject;
8930
+ if (!exports.is(esValue)) {
8931
+ throw new globalObject.TypeError(
8932
+ "'callbackFunctionOrNumConsumer' called on an object that is not a valid instance of TypedefsAndUnions."
8933
+ );
8934
+ }
8935
+
8936
+ if (arguments.length < 1) {
8937
+ throw new globalObject.TypeError(
8938
+ \`Failed to execute 'callbackFunctionOrNumConsumer' on 'TypedefsAndUnions': 1 argument required, but only \${arguments.length} present.\`
8939
+ );
8940
+ }
8941
+ const args = [];
8942
+ {
8943
+ let curArg = arguments[0];
8944
+ if (typeof curArg === "function") {
8945
+ curArg = AsyncCallbackFunction.convert(globalObject, curArg, {
8946
+ context:
8947
+ "Failed to execute 'callbackFunctionOrNumConsumer' on 'TypedefsAndUnions': parameter 1" +
8948
+ " callback function"
8949
+ });
8950
+ } else if (typeof curArg === "number") {
8951
+ curArg = conversions["double"](curArg, {
8952
+ context: "Failed to execute 'callbackFunctionOrNumConsumer' on 'TypedefsAndUnions': parameter 1",
8953
+ globals: globalObject
8954
+ });
8955
+ } else {
8956
+ curArg = conversions["double"](curArg, {
8957
+ context: "Failed to execute 'callbackFunctionOrNumConsumer' on 'TypedefsAndUnions': parameter 1",
8958
+ globals: globalObject
8959
+ });
8960
+ }
8961
+ args.push(curArg);
8962
+ }
8963
+ return esValue[implSymbol].callbackFunctionOrNumConsumer(...args);
8964
+ }
8965
+
8966
+ callbackInterfaceOrNumConsumer(cb) {
8967
+ const esValue = this !== null && this !== undefined ? this : globalObject;
8968
+ if (!exports.is(esValue)) {
8969
+ throw new globalObject.TypeError(
8970
+ "'callbackInterfaceOrNumConsumer' called on an object that is not a valid instance of TypedefsAndUnions."
8971
+ );
8972
+ }
8973
+
8974
+ if (arguments.length < 1) {
8975
+ throw new globalObject.TypeError(
8976
+ \`Failed to execute 'callbackInterfaceOrNumConsumer' on 'TypedefsAndUnions': 1 argument required, but only \${arguments.length} present.\`
8977
+ );
8978
+ }
8979
+ const args = [];
8980
+ {
8981
+ let curArg = arguments[0];
8982
+ if (utils.isObject(curArg)) {
8983
+ curArg = AsyncCallbackInterface.convert(globalObject, curArg, {
8984
+ context:
8985
+ "Failed to execute 'callbackInterfaceOrNumConsumer' on 'TypedefsAndUnions': parameter 1" +
8986
+ " callback interface"
8987
+ });
8988
+ } else if (typeof curArg === "number") {
8989
+ curArg = conversions["double"](curArg, {
8990
+ context: "Failed to execute 'callbackInterfaceOrNumConsumer' on 'TypedefsAndUnions': parameter 1",
8991
+ globals: globalObject
8992
+ });
8993
+ } else {
8994
+ curArg = conversions["double"](curArg, {
8995
+ context: "Failed to execute 'callbackInterfaceOrNumConsumer' on 'TypedefsAndUnions': parameter 1",
8996
+ globals: globalObject
8997
+ });
8998
+ }
8999
+ args.push(curArg);
9000
+ }
9001
+ return esValue[implSymbol].callbackInterfaceOrNumConsumer(...args);
9002
+ }
9003
+
8926
9004
get buf() {
8927
9005
const esValue = this !== null && this !== undefined ? this : globalObject;
8928
9006
@@ -9008,6 +9086,8 @@ exports.install = (globalObject, globalNames) => {
9008
9086
arrayBufferViewOrURLMapConsumer: { enumerable: true },
9009
9087
arrayBufferViewDupConsumer: { enumerable: true },
9010
9088
arrayBufferOrSharedArrayBufferConsumer: { enumerable: true },
9089
+ callbackFunctionOrNumConsumer: { enumerable: true },
9090
+ callbackInterfaceOrNumConsumer: { enumerable: true },
9011
9091
buf: { enumerable: true },
9012
9092
time: { enumerable: true },
9013
9093
[Symbol.toStringTag]: { value: "TypedefsAndUnions", configurable: true }
@@ -20061,6 +20141,8 @@ const utils = require("./utils.js");
20061
20141
20062
20142
const RequestDestination = require("./RequestDestination.js");
20063
20143
const URL = require("./URL.js");
20144
+ const AsyncCallbackFunction = require("./AsyncCallbackFunction.js");
20145
+ const AsyncCallbackInterface = require("./AsyncCallbackInterface.js");
20064
20146
const implSymbol = utils.implSymbol;
20065
20147
const ctorRegistrySymbol = utils.ctorRegistrySymbol;
20066
20148
@@ -20577,6 +20659,82 @@ exports.install = (globalObject, globalNames) => {
20577
20659
return esValue[implSymbol].arrayBufferOrSharedArrayBufferConsumer(...args);
20578
20660
}
20579
20661
20662
+ callbackFunctionOrNumConsumer(cb) {
20663
+ const esValue = this !== null && this !== undefined ? this : globalObject;
20664
+ if (!exports.is(esValue)) {
20665
+ throw new globalObject.TypeError(
20666
+ "'callbackFunctionOrNumConsumer' called on an object that is not a valid instance of TypedefsAndUnions."
20667
+ );
20668
+ }
20669
+
20670
+ if (arguments.length < 1) {
20671
+ throw new globalObject.TypeError(
20672
+ \`Failed to execute 'callbackFunctionOrNumConsumer' on 'TypedefsAndUnions': 1 argument required, but only \${arguments.length} present.\`
20673
+ );
20674
+ }
20675
+ const args = [];
20676
+ {
20677
+ let curArg = arguments[0];
20678
+ if (typeof curArg === "function") {
20679
+ curArg = AsyncCallbackFunction.convert(globalObject, curArg, {
20680
+ context:
20681
+ "Failed to execute 'callbackFunctionOrNumConsumer' on 'TypedefsAndUnions': parameter 1" +
20682
+ " callback function"
20683
+ });
20684
+ } else if (typeof curArg === "number") {
20685
+ curArg = conversions["double"](curArg, {
20686
+ context: "Failed to execute 'callbackFunctionOrNumConsumer' on 'TypedefsAndUnions': parameter 1",
20687
+ globals: globalObject
20688
+ });
20689
+ } else {
20690
+ curArg = conversions["double"](curArg, {
20691
+ context: "Failed to execute 'callbackFunctionOrNumConsumer' on 'TypedefsAndUnions': parameter 1",
20692
+ globals: globalObject
20693
+ });
20694
+ }
20695
+ args.push(curArg);
20696
+ }
20697
+ return esValue[implSymbol].callbackFunctionOrNumConsumer(...args);
20698
+ }
20699
+
20700
+ callbackInterfaceOrNumConsumer(cb) {
20701
+ const esValue = this !== null && this !== undefined ? this : globalObject;
20702
+ if (!exports.is(esValue)) {
20703
+ throw new globalObject.TypeError(
20704
+ "'callbackInterfaceOrNumConsumer' called on an object that is not a valid instance of TypedefsAndUnions."
20705
+ );
20706
+ }
20707
+
20708
+ if (arguments.length < 1) {
20709
+ throw new globalObject.TypeError(
20710
+ \`Failed to execute 'callbackInterfaceOrNumConsumer' on 'TypedefsAndUnions': 1 argument required, but only \${arguments.length} present.\`
20711
+ );
20712
+ }
20713
+ const args = [];
20714
+ {
20715
+ let curArg = arguments[0];
20716
+ if (utils.isObject(curArg)) {
20717
+ curArg = AsyncCallbackInterface.convert(globalObject, curArg, {
20718
+ context:
20719
+ "Failed to execute 'callbackInterfaceOrNumConsumer' on 'TypedefsAndUnions': parameter 1" +
20720
+ " callback interface"
20721
+ });
20722
+ } else if (typeof curArg === "number") {
20723
+ curArg = conversions["double"](curArg, {
20724
+ context: "Failed to execute 'callbackInterfaceOrNumConsumer' on 'TypedefsAndUnions': parameter 1",
20725
+ globals: globalObject
20726
+ });
20727
+ } else {
20728
+ curArg = conversions["double"](curArg, {
20729
+ context: "Failed to execute 'callbackInterfaceOrNumConsumer' on 'TypedefsAndUnions': parameter 1",
20730
+ globals: globalObject
20731
+ });
20732
+ }
20733
+ args.push(curArg);
20734
+ }
20735
+ return esValue[implSymbol].callbackInterfaceOrNumConsumer(...args);
20736
+ }
20737
+
20580
20738
get buf() {
20581
20739
const esValue = this !== null && this !== undefined ? this : globalObject;
20582
20740
@@ -20662,6 +20820,8 @@ exports.install = (globalObject, globalNames) => {
20662
20820
arrayBufferViewOrURLMapConsumer: { enumerable: true },
20663
20821
arrayBufferViewDupConsumer: { enumerable: true },
20664
20822
arrayBufferOrSharedArrayBufferConsumer: { enumerable: true },
20823
+ callbackFunctionOrNumConsumer: { enumerable: true },
20824
+ callbackInterfaceOrNumConsumer: { enumerable: true },
20665
20825
buf: { enumerable: true },
20666
20826
time: { enumerable: true },
20667
20827
[Symbol.toStringTag]: { value: "TypedefsAndUnions", configurable: true }
0 commit comments