diff options
| author | Stan Lo <stan.lo@shopify.com> | 2025-08-13 21:03:26 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-13 13:03:26 -0700 |
| commit | 2b16f27a35817fde86a984b0810e4c08344272f7 (patch) | |
| tree | d44af20da38b6ba4d995f9016565405e3ad2e2d5 /test/ruby/test_whileuntil.rb | |
| parent | ff622978d0bbc87c6951c7ba3caf1d4a2abed513 (diff) | |
ZJIT: Fix `ObjToString` rewrite (#14196)
ZJIT: Fix ObjToString rewrite
Currently, the rewrite for `ObjToString` always replaces it with a
`SendWithoutBlock(to_s)` instruction when the receiver is not a
string literal. This is incorrect because it calls `to_s` on the
receiver even if it's already a string.
This change fixes it by:
- Avoiding the `SendWithoutBlock(to_s)` rewrite
- Implement codegen for `ObjToString`
Diffstat (limited to 'test/ruby/test_whileuntil.rb')
0 files changed, 0 insertions, 0 deletions
