Fix issue with --print-ast and class expressions
authorarv <arv@chromium.org>
Mon, 1 Jun 2015 14:06:14 +0000 (07:06 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 1 Jun 2015 14:06:28 +0000 (14:06 +0000)
commitf91c54fa0bd899da24899d4e141b422f7076d062
tree03a0f176057824f3e19a7e5508322ff7b2a673b0
parentd207fcef664c63bd9337f13052c5315bbeaafd7e
Fix issue with --print-ast and class expressions

Make sure that --print-ast works even when the class expression has no
name.

This also updates the printer to print the properties of the class
literal.

BUG=v8:4138
LOG=N
R=rossberg

Review URL: https://codereview.chromium.org/1165613003

Cr-Commit-Position: refs/heads/master@{#28728}
src/prettyprinter.cc
src/prettyprinter.h