Index: src/runtime/runtime-literals.cc |
diff --git a/src/runtime/runtime-literals.cc b/src/runtime/runtime-literals.cc |
index 8bb4522a988c7f25cba68cc60a8c63c5078f8273..ebdf04ccaef99c8856c9f9b8bbce65de32e20ba4 100644 |
--- a/src/runtime/runtime-literals.cc |
+++ b/src/runtime/runtime-literals.cc |
@@ -86,7 +86,7 @@ MUST_USE_RESULT static MaybeHandle<Object> CreateObjectLiteralBoilerplate( |
if (key->ToArrayIndex(&element_index)) { |
// Array index (uint32). |
if (value->IsUninitialized(isolate)) { |
- value = handle(Smi::kZero, isolate); |
+ value = handle(Smi::FromInt(0), isolate); |
} |
maybe_result = JSObject::SetOwnElementIgnoreAttributes( |
boilerplate, element_index, value, NONE); |