diff options
author | Alon Zakai <azakai@google.com> | 2024-03-21 10:07:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-21 10:07:12 -0700 |
commit | b1535dac8f544c5000c136d696738a27fc931660 (patch) | |
tree | 9fdf54a2135198b1d2068a697554e1136f951291 /src/wasm/wasm-stack.cpp | |
parent | 32e7f19f430a0f3c5c66d15333c0956de1e4615e (diff) | |
download | binaryen-b1535dac8f544c5000c136d696738a27fc931660.tar.gz binaryen-b1535dac8f544c5000c136d696738a27fc931660.tar.bz2 binaryen-b1535dac8f544c5000c136d696738a27fc931660.zip |
[Strings] Fix StringSlice end computation (#6414)
Like JS string slicing, if the end index is out of bounds that is fine, we clamp to the end.
This also matches the behavior in V8 and the spec.
Diffstat (limited to 'src/wasm/wasm-stack.cpp')
0 files changed, 0 insertions, 0 deletions