forked from open-policy-agent/opa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
wasm: Parse and write JSON unicode strings.
This adds support for both UTF-8 and UTF-16. All the JSON value strings use internal representation of UTF-8. Unicode validation and translation to UTF-8 is performed only at the JSON parsing time. There's no further encoding validation at the writing time but it is assumed all the string operations maintain the validity of UTF-8 representation. Fixes open-policy-agent#1885 Signed-off-by: Teemu Koponen <koponen@styra.com>
- Loading branch information
1 parent
d1b8394
commit eacecb0
Showing
8 changed files
with
370 additions
and
30 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.