[parser] report better errors for multiple ForBindings in ForIn/Of loops
authorcaitpotter88 <caitpotter88@gmail.com>
Wed, 8 Apr 2015 18:47:36 +0000 (11:47 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 8 Apr 2015 18:47:45 +0000 (18:47 +0000)
commitab7d5f9620d85a24e5ef668161d880536bc96fa1
tree6ce1fab478024105bdfaa33c191b405149c661c0
parent6244bbcd84a8ecab041efa4c8cdc9b7d55cd6516
[parser] report better errors for multiple ForBindings in ForIn/Of loops

Instead of "unexpected token" errors, report something meatier and more actionable.

BUG=
R=marja@chromium.org, arv@chromium.org
LOG=N

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

Cr-Commit-Position: refs/heads/master@{#27677}
src/messages.js
src/parser.cc
src/parser.h
src/preparser.cc
src/preparser.h
test/cctest/test-parsing.cc