diff options
author | Alex Kocharin <alex@kocharin.ru> | 2012-05-06 13:32:49 +0400 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2012-05-09 16:44:44 +0200 |
commit | e85927119cd76dfa6541beb7954196c56d98a776 (patch) | |
tree | 17acee69c8ffe3a94c08ee197f9a4edcf6e2397c /lib/util.js | |
parent | 7d2e68fdbde04b683242d82c26b8cf1d47407729 (diff) | |
download | android-node-v8-e85927119cd76dfa6541beb7954196c56d98a776.tar.gz android-node-v8-e85927119cd76dfa6541beb7954196c56d98a776.tar.bz2 android-node-v8-e85927119cd76dfa6541beb7954196c56d98a776.zip |
util: handle non-string return value in .inspect()
Diffstat (limited to 'lib/util.js')
-rw-r--r-- | lib/util.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/util.js b/lib/util.js index c7fcbccc8a..ce6aff496a 100644 --- a/lib/util.js +++ b/lib/util.js @@ -158,7 +158,7 @@ function formatValue(ctx, value, recurseTimes) { value.inspect !== exports.inspect && // Also filter out any prototype objects using the circular check. !(value.constructor && value.constructor.prototype === value)) { - return value.inspect(recurseTimes); + return String(value.inspect(recurseTimes)); } // Primitive types cannot have properties |