yodaos-project / ShadowNode

Use Node.js in your end devices(QQ: 796448809)
https://yodaos-project.github.io/ShadowNode/
Other
588 stars 46 forks source link

Revert "jerry: escape slash in JSON.stringify() (#340)" #567

Closed legendecas closed 4 years ago

legendecas commented 5 years ago

This reverts commit 2deca2ee61c6b2a987438ae53d3046254c54d522.

According to RFC7159, all Unicode characters may be placed within the quotation marks, except for the characters that must be escaped: quotation mark, reverse solidus, and the control characters. Any characters may be escaped, but it should be kept as minimal and clear.

With the consensus of above, characters except for quotation mark, reverse solidus, and the control characters should not be escaped in JSON.stringify.

Fixes: #556 Refs: #340

Checklist