From 9ed35d7b1d8763f81f7650af55a44000193e2310 Mon Sep 17 00:00:00 2001 From: johnjbarton Date: Mon, 28 May 2018 09:09:16 -0700 Subject: [PATCH] Revert "fix(common): stringify error on 'Cannot convert a Symbol value to a string' (#2990)" This reverts commit 65b658a8ba33831c1cf22e56bf484f42da232617. --- common/stringify.js | 2 -- test/client/stringify.spec.js | 4 ---- 2 files changed, 6 deletions(-) diff --git a/common/stringify.js b/common/stringify.js index aece384d3..192a4847a 100644 --- a/common/stringify.js +++ b/common/stringify.js @@ -14,8 +14,6 @@ var stringify = function stringify (obj, depth) { } switch (typeof obj) { - case 'symbol': - return obj.toString() case 'string': return "'" + obj + "'" case 'undefined': diff --git a/test/client/stringify.spec.js b/test/client/stringify.spec.js index 19bceab4e..e51c85d37 100644 --- a/test/client/stringify.spec.js +++ b/test/client/stringify.spec.js @@ -4,10 +4,6 @@ var assert = require('assert') var stringify = require('../../common/stringify') describe('stringify', function () { - it('should serialize symbols', function () { - assert.deepEqual(stringify(Symbol.for('x')), 'Symbol(x)') - }) - it('should serialize string', function () { assert.deepEqual(stringify('aaa'), "'aaa'") })