File: //proc/1526/task/1530/cwd/zaklada/html/node_modules/jsdom/lib/jsdom/living/hash-change-event.js
"use strict";
const inheritFrom = require("../utils").inheritFrom;
// https://html.spec.whatwg.org/multipage/browsers.html#hashchangeevent
// Currently installed via level2/events.js; that is not ideal, but necessary for now.
const oldURL = Symbol("oldURL");
const newURL = Symbol("newURL");
module.exports = function (core) {
  core.HashChangeEvent = function HashChangeEvent(eventType, eventInit) {
    core.Event.apply(this, arguments);
    this[oldURL] = eventInit && eventInit.oldURL !== undefined ? String(eventInit.oldURL) : "";
    this[newURL] = eventInit && eventInit.newURL !== undefined ? String(eventInit.newURL) : "";
  };
  inheritFrom(core.Event, core.HashChangeEvent, {
    get oldURL() {
      return this[oldURL];
    },
    get newURL() {
      return this[newURL];
    }
  });
};