HEX
Server: Apache/2.4.41 (Ubuntu)
System: Linux wordpress-ubuntu-s-2vcpu-4gb-fra1-01 5.4.0-169-generic #187-Ubuntu SMP Thu Nov 23 14:52:28 UTC 2023 x86_64
User: root (0)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: //proc/1526/task/1530/cwd/zaklada/html/node_modules/jsdom/lib/jsdom/living/error-event.js
"use strict";
const inheritFrom = require("../utils").inheritFrom;

// https://html.spec.whatwg.org/multipage/webappapis.html#errorevent

// Currently installed via level2/events.js; that is not ideal, but necessary for now.

const message = Symbol("ErrorEvent message");
const filename = Symbol("ErrorEvent filename");
const lineno = Symbol("ErrorEvent lineno");
const colno = Symbol("ErrorEvent colno");
const error = Symbol("ErrorEvent error");

module.exports = function (core) {
  core.ErrorEvent = function ErrorEvent(type, eventInitDict) {
    core.Event.apply(this, arguments);

    this[message] = eventInitDict && "message" in eventInitDict ? String(eventInitDict.message) : "";
    this[filename] = eventInitDict && "filename" in eventInitDict ? String(eventInitDict.filename) : "";
    this[lineno] = eventInitDict && "lineno" in eventInitDict ? Number(eventInitDict.lineno) : 0;
    this[colno] = eventInitDict && "colno" in eventInitDict ? Number(eventInitDict.colno) : 0;
    this[error] = eventInitDict && "error" in eventInitDict ? eventInitDict.error : null;
  };

  inheritFrom(core.Event, core.ErrorEvent, {
    get message() {
      return this[message];
    },
    get filename() {
      return this[filename];
    },
    get lineno() {
      return this[lineno];
    },
    get colno() {
      return this[colno];
    },
    get error() {
      return this[error];
    }
  });
};

module.exports.setErrorEventValues = function (e, values) {
  e[message] = values.message;
  e[filename] = values.filename;
  e[lineno] = values.lineno;
  e[colno] = values.colno;
  e[error] = values.error;
};