diff --git a/lib/assert.js b/lib/assert.js index 8b6b49ae43ba41..11fef455ab7dc5 100644 --- a/lib/assert.js +++ b/lib/assert.js @@ -42,7 +42,7 @@ assert.AssertionError = function AssertionError(options) { this.actual = options.actual; this.expected = options.expected; this.operator = options.operator; - this.message = options.message || getMessage(this) + this.message = options.message || getMessage(this); var stackStartFunction = options.stackStartFunction || fail; Error.captureStackTrace(this, stackStartFunction); };