-
-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support symbol literal #80
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We can support global registried symbol and well-known symbol.
this means
stringifyObject(Symbol.for('sym'))
can outputSymbol.for('sym')
,and
stringifyObject(Symbol.iterator)
outputSymbol.iterator
.I am not sure whether to support other symbols, because their stringified literal values will never equal,
but they may be same symbols before stringified.
Currently we can support symbol as object value or array item with a transform callback, but not the object key.
following is my transform code:
The text was updated successfully, but these errors were encountered: