It seems to me based on the documentation that assert.fail(message) should throw an exception for which the message property is just the message passed in. However, it's being set to whatever messaged is wrapped in single quotes and followed by undefined undefined.
It seems to me based on the documentation that
assert.fail(message)
should throw an exception for which the message property is just the message passed in. However, it's being set to whatever messaged is wrapped in single quotes and followed byundefined undefined
.The output of the above program is as follows:
According to the documentation: