diff options
Diffstat (limited to 'src/wasm/wasm.cpp')
-rw-r--r-- | src/wasm/wasm.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm/wasm.cpp b/src/wasm/wasm.cpp index fa1351541..f58aaf0da 100644 --- a/src/wasm/wasm.cpp +++ b/src/wasm/wasm.cpp @@ -1134,7 +1134,7 @@ void StringNew::finalize() { (length && length->type == Type::unreachable)) { type = Type::unreachable; } else { - type = Type(HeapType::string, NonNullable); + type = Type(HeapType::string, try_ ? Nullable : NonNullable); } } |