From eb7b2c459bc48af7ec23906e345215eaf2336723 Mon Sep 17 00:00:00 2001 From: Aaron Hamid Date: Tue, 24 Nov 2015 16:03:34 -0500 Subject: [PATCH] safely stringify PhantomJS undefined value --- lib/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/utils.js b/lib/utils.js index 298fdbc27e..f193a71ff1 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -598,7 +598,7 @@ exports.canonicalize = function(value, stack) { canonicalizedObj = value; break; default: - canonicalizedObj = value.toString(); + canonicalizedObj = value + ''; } return canonicalizedObj;