Software: Apache. PHP/8.1.30 uname -a: Linux server1.tuhinhossain.com 5.15.0-163-generic #173-Ubuntu SMP Tue Oct 14 17:51:00 UTC uid=1002(picotech) gid=1003(picotech) groups=1003(picotech),0(root) Safe-mode: OFF (not secure) /usr/share/nodejs/jsdom/lib/jsdom/living/generated/ drwxr-xr-x | |
| Viewing file: Select action/file-type: "use strict";
const conversions = require("webidl-conversions");
const utils = require("./utils.js");
exports.convert = (globalObject, value, { context = "The provided value" } = {}) => {
function invokeTheCallbackFunction(...args) {
const thisArg = utils.tryWrapperForImpl(this);
let callResult;
if (typeof value === "function") {
for (let i = 0; i < Math.min(args.length, 5); i++) {
args[i] = utils.tryWrapperForImpl(args[i]);
}
if (args.length < 1) {
for (let i = args.length; i < 1; i++) {
args[i] = undefined;
}
} else if (args.length > 5) {
args.length = 5;
}
callResult = Reflect.apply(value, thisArg, args);
}
callResult = conversions["any"](callResult, { context: context, globals: globalObject });
return callResult;
}
invokeTheCallbackFunction.construct = (...args) => {
for (let i = 0; i < Math.min(args.length, 5); i++) {
args[i] = utils.tryWrapperForImpl(args[i]);
}
if (args.length < 1) {
for (let i = args.length; i < 1; i++) {
args[i] = undefined;
}
} else if (args.length > 5) {
args.length = 5;
}
let callResult = Reflect.construct(value, args);
callResult = conversions["any"](callResult, { context: context, globals: globalObject });
return callResult;
};
invokeTheCallbackFunction[utils.wrapperSymbol] = value;
invokeTheCallbackFunction.objectReference = value;
return invokeTheCallbackFunction;
};
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0032 ]-- |