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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better edge case handling in napi_value<->String conversion #18107

Open
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

190n
Copy link
Contributor

@190n 190n commented Mar 12, 2025

What does this PR do?

Fixes several bugs in napi_get_value_string_* and napi_create_string_* exposed by exhaustive testing.

napi_get_value_string_* still doesn't handle unpaired surrogates correctly, but this is still strictly better than status quo.

Fixes #18069
Fixes #18079

How did you verify your code works?

Added new tests and ran the existing tests (ours and Node's)

@robobun
Copy link

robobun commented Mar 12, 2025

Updated 9:36 PM PT - Mar 11th, 2025

@190n, your commit b763910 has some failures in Build #13080


🧪   try this PR locally:

bunx bun-pr 18107

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.

onnxruntime-node doesn't work in 1.2.5 ODBC Driver doesnt work in version 1.2.5
2 participants