Indicates the failure of an assertion. All errors thrown by the node:assert
module will be instances of the AssertionError
class.
class
assert.default.AssertionError
class AssertionError
- static stackTraceLimit: number
The
Error.stackTraceLimit
property specifies the number of stack frames collected by a stack trace (whether generated bynew Error().stack
orError.captureStackTrace(obj)
).The default value is
10
but may be set to any valid JavaScript number. Changes will affect any stack trace captured after the value has been changed.If set to a non-number value, or set to a negative number, stack traces will not capture any frames.
- targetObject: object,constructorOpt?: Function): void;
Create .stack property on a target object