Commit ed8be538 authored by Manos Koukoutos's avatar Manos Koukoutos Committed by V8 LUCI CQ

[stringrefs] StringConst value should be non-nullable

Bug: v8:12868
Change-Id: Ia70ddb1fb25bc1f14259d14a8a9f614de7d8cd52
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3865558Reviewed-by: 's avatarJakob Kummerow <jkummerow@chromium.org>
Commit-Queue: Manos Koukoutos <manoskouk@chromium.org>
Cr-Commit-Position: refs/heads/main@{#82930}
parent 8ed59cfb
......@@ -151,7 +151,7 @@ void ConstantExpressionInterface::StringConst(
isolate_->factory()
->NewStringFromUtf8(string_bytes, unibrow::Utf8Variant::kWtf8)
.ToHandleChecked();
result->runtime_value = WasmValue(string, kWasmStringRef);
result->runtime_value = WasmValue(string, kWasmStringRef.AsNonNull());
}
namespace {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment