querystring: fix broken stringifyPrimitive
authorJeremiah Senkpiel <fishrock123@rocketmail.com>
Fri, 20 Mar 2015 01:33:04 +0000 (21:33 -0400)
committerJeremiah Senkpiel <fishrock123@rocketmail.com>
Fri, 20 Mar 2015 01:47:41 +0000 (21:47 -0400)
commitc9aec2b7167a08dc88141fbe3be1c498f8c5b061
treec38851bfc5c1ebaffc803830db6d78c33205e643
parenta89f5c21562fe75b083a270090eadfbe318e5954
querystring: fix broken stringifyPrimitive

stringifyPrimitive has always failed to stringify numbers since its
introduction in 422d3c9. This went uncaught due to encodeURIComponent's
string coercion.

Fixes: https://github.com/iojs/io.js/issues/1208
PR-URL: https://github.com/iojs/io.js/pull/1213
Reviewed-By: Rod Vagg <rod@vagg.org>
Reviewed-By: Brian White <mscdex@mscdex.net>
lib/querystring.js