From fd950b0f5e04cf6d7ec78b1e3879a49c45c04bc0 Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Wed, 13 Feb 2019 23:14:47 -0800 Subject: [PATCH] [Tests] always use `String(x)` over `x.toString()` --- test/parse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parse.js b/test/parse.js index 01a8ff47..ce014d42 100644 --- a/test/parse.js +++ b/test/parse.js @@ -555,7 +555,7 @@ test('parse()', function (t) { result.push(parseInt(parts[1], 16)); parts = reg.exec(str); } - return iconv.decode(SaferBuffer.from(result), 'shift_jis').toString(); + return String(iconv.decode(SaferBuffer.from(result), 'shift_jis')); } }), { 県: '大阪府' }); st.end();