Skip to content

Commit

Permalink
Revert "fix(common): stringify error on 'Cannot convert a Symbol valu…
Browse files Browse the repository at this point in the history
…e to a string' (#2990)"

This reverts commit 65b658a.
  • Loading branch information
johnjbarton authored May 28, 2018
1 parent 65b658a commit 9ed35d7
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions common/stringify.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@ var stringify = function stringify (obj, depth) {
}

switch (typeof obj) {
case 'symbol':
return obj.toString()
case 'string':
return "'" + obj + "'"
case 'undefined':
Expand Down
4 changes: 0 additions & 4 deletions test/client/stringify.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'")
})
Expand Down

0 comments on commit 9ed35d7

Please sign in to comment.