Commit a3ea54f5 authored by Ruben Bridgewater's avatar Ruben Bridgewater Committed by Rich Trott
Browse files

assert: limit string inspection when logging assertion errors

This makes sure long strings as `actual` or `expected` values on an
`AssertionError` won't be logged completely. This is important as
the actual value is somewhat redundant in combination with the error
message which already logs the difference between the input values.

PR-URL: https://github.com/nodejs/node/pull/28058


Reviewed-By: default avatarRich Trott <rtrott@gmail.com>
parent f7ffa523
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment