Add missing case in AST printer.
Review URL: http://codereview.chromium.org/159580 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2572 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
9e8216ef22
commit
69a90ee916
@ -934,6 +934,9 @@ void AstPrinter::VisitObjectLiteral(ObjectLiteral* node) {
|
||||
case ObjectLiteral::Property::COMPUTED:
|
||||
prop_kind = "PROPERTY - COMPUTED";
|
||||
break;
|
||||
case ObjectLiteral::Property::MATERIALIZED_LITERAL:
|
||||
prop_kind = "PROPERTY - MATERIALIZED_LITERAL";
|
||||
break;
|
||||
case ObjectLiteral::Property::PROTOTYPE:
|
||||
prop_kind = "PROPERTY - PROTOTYPE";
|
||||
break;
|
||||
@ -945,7 +948,6 @@ void AstPrinter::VisitObjectLiteral(ObjectLiteral* node) {
|
||||
break;
|
||||
default:
|
||||
UNREACHABLE();
|
||||
break;
|
||||
}
|
||||
IndentedScope prop(prop_kind);
|
||||
PrintIndentedVisit("KEY", node->properties()->at(i)->key());
|
||||
|
Loading…
Reference in New Issue
Block a user