Index: src/runtime/runtime-internal.cc |
diff --git a/src/runtime/runtime-internal.cc b/src/runtime/runtime-internal.cc |
index 50fb6a45ae4a9e5d9a94c148e83cc0f8b7c9c656..13ba040f1f99dee08fea4b6efb0ffe924f4b4cbe 100644 |
--- a/src/runtime/runtime-internal.cc |
+++ b/src/runtime/runtime-internal.cc |
@@ -141,8 +141,9 @@ RUNTIME_FUNCTION(Runtime_ThrowWasmError) { |
LookupIterator::PROTOTYPE_CHAIN_SKIP_INTERCEPTOR); |
if (it.IsFound()) { |
DCHECK(JSReceiver::GetDataProperty(&it)->IsSmi()); |
+ // Make column number 1-based here. |
Maybe<bool> data_set = JSReceiver::SetDataProperty( |
- &it, handle(Smi::FromInt(byte_offset), isolate)); |
+ &it, handle(Smi::FromInt(byte_offset + 1), isolate)); |
DCHECK(data_set.IsJust() && data_set.FromJust() == true); |
USE(data_set); |
} |