Skip to content

armgit / mocha

Public Imported from GitHub
0

☕️ Classic, reliable, trusted test framework for Node.js and the browser

chore: remove now-unused `utils.inherits` (#5766)

Mark Wiemerd0a636b5e9bd
diff --git a/lib/utils.js b/lib/utils.js
index f4b7b0d5..9cfbb6fd 100644
--- a/lib/utils.js
+++ b/lib/utils.js
@@ -9,24 +9,12 @@
* Module dependencies.
*/
var path = require("node:path");
-var util = require("node:util");
var he = require("he");
var pc = require("picocolors");
var isUnicodeSupported = require("is-unicode-supported")();
const MOCHA_ID_PROP_NAME = "__mocha_id__";
-/**
- * Inherit the prototype methods from one constructor into another.
- *
- * @param {function} ctor - Constructor function which needs to inherit the
- * prototype.
- * @param {function} superCtor - Constructor function to inherit prototype from.
- * @throws {TypeError} if either constructor is null, or if super constructor
- * lacks a prototype.
- */
-exports.inherits = util.inherits;
-
/**
* Escape special characters in the given string of html.
*