diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/wasm-interpreter.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/wasm-interpreter.h b/src/wasm-interpreter.h index af01865f4..36542e6ed 100644 --- a/src/wasm-interpreter.h +++ b/src/wasm-interpreter.h @@ -1959,6 +1959,11 @@ public: if (!leftData || !rightData) { trap("null ref"); } + // This is only correct if all the bytes in the left operand correspond + // to single unicode code points. + if (hasNonAsciiUpTo(leftData->values)) { + return Flow(NONCONSTANT_FLOW); + } Literals contents; contents.reserve(leftData->values.size() + rightData->values.size()); |