We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 027ad71 commit e0f773fCopy full SHA for e0f773f
lib/internal/assert/assertion_error.js
@@ -10,6 +10,7 @@ const {
10
ObjectDefineProperty,
11
ObjectGetPrototypeOf,
12
ObjectPrototypeHasOwnProperty,
13
+ SafeSet,
14
String,
15
StringPrototypeRepeat,
16
StringPrototypeSlice,
@@ -42,7 +43,7 @@ const kReadableOperator = {
42
43
const kMaxShortStringLength = 12;
44
const kMaxLongStringLength = 512;
45
-const kMethodsWithCustomMessageDiff = new Set(['deepStrictEqual', 'strictEqual', 'partialDeepStrictEqual']);
46
+const kMethodsWithCustomMessageDiff = new SafeSet(['deepStrictEqual', 'strictEqual', 'partialDeepStrictEqual']);
47
48
function copyError(source) {
49
const target = ObjectAssign(
0 commit comments