Repository navigation
Conversation
ibmibmibm
force-pushed
the
fix-unicode-escape-underscore
branch
from
November 26, 2026 01:01
132f8b7 to
3606110
Compare
Collaborator
|
Could you show this part in the standard? |
Author
In https://webassembly.github.io/spec/core/text/values.html#strings In https://webassembly.github.io/spec/core/text/values.html#text-hexnum |
ibmibmibm
force-pushed
the
fix-unicode-escape-underscore
branch
from
November 26, 2026 11:17
3606110 to
07e53ef
Compare
Collaborator
|
Ok, I misunderstood the "separate two hex digits" part, and the |
zherczeg
requested changes
Nov 26, 2026
ibmibmibm
force-pushed
the
fix-unicode-escape-underscore
branch
3 times, most recently
from
November 27, 2026 02:41
7be5307 to
89f5fe3
Compare
The text format defines the digits of a `\u{...}` escape as a hexnum,
which lets a single `_` separate two hex digits, for example
`\u{1_F600}`. WebAssembly/spec#2352 adds this case to names.wast, and
wabt rejects it with `bad escape "\u{1"`. The lexer and the string
decoder now accept it. A leading, trailing or double `_` is still a bad
escape.
ibmibmibm
force-pushed
the
fix-unicode-escape-underscore
branch
from
November 27, 2026 02:48
89f5fe3 to
4dfd139
Compare
zherczeg
reviewed
Nov 27, 2026
| src += 2; | ||
|
|
||
| do { | ||
| for (; src[0] != '}'; src++) { |
Collaborator
There was a problem hiding this comment.
Is this a bugfix? Or why do you changed it?
This branch has not been deployed
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The text format defines the digits of a
\u{...}escape as a hexnum,which lets a single
_separate two hex digits, for example\u{1_F600}. WebAssembly/spec#2352 adds this case to names.wast, andwabt rejects it with
bad escape "\u{1". The lexer and the stringdecoder now accept it. A leading, trailing or double
_is still a badescape.