| Index: src/full-codegen/x64/full-codegen-x64.cc
|
| diff --git a/src/full-codegen/x64/full-codegen-x64.cc b/src/full-codegen/x64/full-codegen-x64.cc
|
| index f9de2081c4ae651b6275bf018cf4a01e1eef0b2d..e4326732f4ca633f60a99ea5046dd54001733655 100644
|
| --- a/src/full-codegen/x64/full-codegen-x64.cc
|
| +++ b/src/full-codegen/x64/full-codegen-x64.cc
|
| @@ -1384,7 +1384,8 @@ void FullCodeGenerator::VisitObjectLiteral(ObjectLiteral* expr) {
|
| case ObjectLiteral::Property::COMPUTED:
|
| // It is safe to use [[Put]] here because the boilerplate already
|
| // contains computed properties with an uninitialized value.
|
| - if (key->IsPropertyName()) {
|
| + if (key->IsStringLiteral()) {
|
| + DCHECK(key->IsPropertyName());
|
| if (property->emit_store()) {
|
| VisitForAccumulatorValue(value);
|
| DCHECK(StoreDescriptor::ValueRegister().is(rax));
|
|
|