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
assert: prevent OOM when generating diff for large objects
Objects with many converging paths to shared objects can cause
exponential growth in util.inspect output. When assert.strictEqual
fails on such objects, the error message generation would OOM while
trying to create a diff of the 100+ MB inspect strings.
Add a 2MB limit to inspectValue() output. When truncation occurs,
a marker is added and the error message indicates lines were skipped.
The comparison itself is unaffected; only the error output is truncated.
0 commit comments