Commit 40e29dcb authored by cjihrig's avatar cjihrig
Browse files

assert: use util.inspect() to create error messages

Currently, JSON.stringify() is used to create error messages
on failed assertions. This causes an error when stringifying
objects with circular references. This commit switches out
JSON.stringify() for util.inspect(), which can handle
circular references.

PR-URL: https://github.com/iojs/io.js/pull/668


Reviewed-By: default avatarJulien Gilli <julien.gilli@joyent.com>
Reviewed-By: default avatarBert Belder <bertbelder@gmail.com>
Reviewed-By: default avatarChris Dickinson <christopher.s.dickinson@gmail.com>
parent bc2c85ce
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