Rich-Harris/devalue

Symbol descriptions are printed literally

SteelAlloy opened this issue · 0 comments

When devaluing a Symbol with either devalue.uneval or devalue.stringify, the description string is printed as is instead of keeping it as a string.

devalue.uneval(Symbol("test")) // "Symbol(test)"

devalue.uneval(Symbol("test\n")) // "Symbol(test
// )"