Skip to content

Conversation

@bnoordhuis
Copy link
Collaborator

No description provided.

assert_equal Encoding::UTF_8, context.eval("'ok\\uD800\\uDC00'").encoding
if RUBY_ENGINE != "truffleruby"
# unmatched surrogate pair, cannot be converted by ruby
assert_equal Encoding::UTF_16LE, context.eval("'ok\\uD800'").encoding
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@SamSaffron the alternative is to let the exception that ruby raises bubble up

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah not sure if there is an easy way of winning here, lets try this out first.

@SamSaffron SamSaffron merged commit 98871d3 into rubyjs:main Jan 13, 2025
22 of 25 checks passed
bnoordhuis added a commit to bnoordhuis/mini_racer that referenced this pull request Mar 13, 2025
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.

2 participants