summaryrefslogtreecommitdiff
path: root/alarm/node_modules/jsdom/lib/jsdom/browser/not-implemented.js
blob: a87cc95cc437ae74d72fdb9a511b169ec7144c81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
"use strict";

module.exports = function (nameForErrorMessage, window) {
  if (!window) {
    // Do nothing for window-less documents.
    return;
  }

  const error = new Error(`Not implemented: ${nameForErrorMessage}`);
  error.type = "not implemented";

  window._virtualConsole.emit("jsdomError", error);
};