Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add two to four bytes utf8 character tests #2495

Merged

Conversation

JesseCodeBones
Copy link
Contributor

Currently the repo missed the tests for 2 bytes utf-8 character, 3 bytes utf-8 character and 4 bytes utf-8 character (4 bytes utf-8 character cannot bypass the parser phase, not sure if it is by design, for example charactor: 饾啈).

This PR attampts to add tests for global parameter name with utf-8 character, 3 bytes utf-8 character, AS will call allocString and alloc this utf-8 string to binary.
image

  • I've read the contributing guidelines
  • I've added my name and email to the NOTICE file

@dcodeIO
Copy link
Member

dcodeIO commented Sep 25, 2022

Regarding the 4-byte character problem, see #2522.

@dcodeIO dcodeIO changed the title Add two bytes and three bytes utf8 character tests for allocString Add two to four bytes utf8 character tests Sep 26, 2022
@dcodeIO dcodeIO merged commit 0ed65eb into AssemblyScript:main Sep 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants