util: handle symbols properly in format()
authorcjihrig <cjihrig@gmail.com>
Mon, 23 Feb 2015 22:32:18 +0000 (17:32 -0500)
committercjihrig <cjihrig@gmail.com>
Tue, 24 Feb 2015 15:14:24 +0000 (10:14 -0500)
commited3b057e9fb8fa0ca9d47bcd9ea831ae1e3382d0
tree4ee53724f0b9bef40649725da4a81276321eda6d
parentda730c76e98fb9fd18dac445dafbbec74d79f802
util: handle symbols properly in format()

Currently, if util.format() is called with a string as its first
argument, and a Symbol as one of the subsequent arguments, an
exception is thrown due to an attempted implicit string conversion.
This commit causes Symbols to be explicitly converted.

Fixes: https://github.com/iojs/io.js/issues/927
PR-URL: https://github.com/iojs/io.js/pull/931
Reviewed-By: Domenic Denicola <domenic@domenicdenicola.com>
lib/util.js
test/parallel/test-util-format.js