Skip to content

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

Sorry, something went wrong.

@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