You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: lib/assert.js
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,15 @@ module.exports = class assert {
16
16
break
17
17
}
18
18
}
19
-
if(!constructorMatched)thrownewTypeError(util.inspect(instance)+' is not an instance of '+constructors.map(constructor=>constructor.name).join(' or '))
19
+
if(!constructorMatched){
20
+
thrownewTypeError(
21
+
util.inspect(instance)+
22
+
' is not an instance of '+
23
+
constructors
24
+
.map(constructor=>constructor.name)
25
+
.join(' or ')
26
+
)
27
+
}
20
28
}
21
29
//Assert that a number is an integer (within the +/-2^53 that can be represented precisely in a double)
0 commit comments