Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRich Trott <rtrott@gmail.com>2018-10-07 04:27:54 +0300
committerMichaƫl Zasso <targos@protonmail.com>2018-10-10 05:15:57 +0300
commit12ff395e35f67929861179cebf094cca5d57590c (patch)
tree5970dc4f80fb06232b2fc1bfbb6e1bd7406b5ef7 /lib
parentdf54db667ca11ed26c819f8e8e9cca68484f0612 (diff)
assert: remove internal errorCache property
The internal assert module exposed an errorCache property solely for testing. It is no longer necessary. Remove it. PR-URL: https://github.com/nodejs/node/pull/23304 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Diffstat (limited to 'lib')
-rw-r--r--lib/assert.js4
-rw-r--r--lib/internal/assert.js3
2 files changed, 4 insertions, 3 deletions
diff --git a/lib/assert.js b/lib/assert.js
index 69618862f21..4dbe3b2eca3 100644
--- a/lib/assert.js
+++ b/lib/assert.js
@@ -26,12 +26,14 @@ const { codes: {
ERR_INVALID_ARG_TYPE,
ERR_INVALID_RETURN_VALUE
} } = require('internal/errors');
-const { AssertionError, errorCache } = require('internal/assert');
+const { AssertionError } = require('internal/assert');
const { openSync, closeSync, readSync } = require('fs');
const { inspect, types: { isPromise, isRegExp } } = require('util');
const { EOL } = require('internal/constants');
const { NativeModule } = require('internal/bootstrap/loaders');
+const errorCache = new Map();
+
let isDeepEqual;
let isDeepStrictEqual;
let parseExpressionAt;
diff --git a/lib/internal/assert.js b/lib/internal/assert.js
index 2e91b08006b..3b19f2c39d9 100644
--- a/lib/internal/assert.js
+++ b/lib/internal/assert.js
@@ -271,6 +271,5 @@ class AssertionError extends Error {
}
module.exports = {
- AssertionError,
- errorCache: new Map()
+ AssertionError
};