diff options
Diffstat (limited to 'src/wasm/literal.cpp')
-rw-r--r-- | src/wasm/literal.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/wasm/literal.cpp b/src/wasm/literal.cpp index 016df2e18..2a7dd1bcf 100644 --- a/src/wasm/literal.cpp +++ b/src/wasm/literal.cpp @@ -432,6 +432,9 @@ bool Literal::operator==(const Literal& other) const { assert(func.is() && other.func.is()); return func == other.func; } + if (type.isString()) { + return gcData->values == other.gcData->values; + } if (type.isData()) { return gcData == other.gcData; } |