Skip to content

Keep substring indices unsigned in the JS string builtin - #2324

Open
JinDX wants to merge 1 commit into
WebAssembly:mainfrom
JinDX:patch-4
Open

JinDX wants to merge 1 commit into
WebAssembly:mainfrom
JinDX:patch-4

Conversation

@JinDX

@JinDX JinDX commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

Convert the unsigned i32 indices directly to Numbers. With ("abc", 1, 0xFFFFFFFF), signed conversion makes the end negative and changes the result from "bc" to "a".

My translations: Chinese, Japanese, Korean.

This branch has not been deployed

No deployments
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.

1 participant