Index: src/runtime/runtime-literals.cc |
diff --git a/src/runtime/runtime-literals.cc b/src/runtime/runtime-literals.cc |
index 522411829abe4fc7a0d556a96360a40ef14d8a13..52c1726dc65ea256c1fafeb5d7eea890cf1f161f 100644 |
--- a/src/runtime/runtime-literals.cc |
+++ b/src/runtime/runtime-literals.cc |
@@ -94,8 +94,8 @@ MUST_USE_RESULT static MaybeHandle<Object> CreateObjectLiteralBoilerplate( |
if (Handle<String>::cast(key)->AsArrayIndex(&element_index)) { |
// Array index as string (uint32). |
if (value->IsUninitialized()) value = handle(Smi::FromInt(0), isolate); |
- maybe_result = |
- JSObject::SetOwnElement(boilerplate, element_index, value, SLOPPY); |
+ maybe_result = JSObject::SetOwnElementIgnoreAttributes( |
+ boilerplate, element_index, value, NONE); |
} else { |
Handle<String> name(String::cast(*key)); |
DCHECK(!name->AsArrayIndex(&element_index)); |
@@ -105,8 +105,8 @@ MUST_USE_RESULT static MaybeHandle<Object> CreateObjectLiteralBoilerplate( |
} else if (key->ToArrayIndex(&element_index)) { |
// Array index (uint32). |
if (value->IsUninitialized()) value = handle(Smi::FromInt(0), isolate); |
- maybe_result = |
- JSObject::SetOwnElement(boilerplate, element_index, value, SLOPPY); |
+ maybe_result = JSObject::SetOwnElementIgnoreAttributes( |
+ boilerplate, element_index, value, NONE); |
} else { |
// Non-uint32 number. |
DCHECK(key->IsNumber()); |