| Index: src/interpreter/bytecode-generator.cc
|
| diff --git a/src/interpreter/bytecode-generator.cc b/src/interpreter/bytecode-generator.cc
|
| index d5305fa84f9cfde746c437c3c0c86e96b7097163..64c0b18e834c9594017a7f495499a4a4b6164889 100644
|
| --- a/src/interpreter/bytecode-generator.cc
|
| +++ b/src/interpreter/bytecode-generator.cc
|
| @@ -1648,7 +1648,8 @@ void BytecodeGenerator::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(property->value());
|
| if (FunctionLiteral::NeedsHomeObject(property->value())) {
|
|
|