Tests for (pre)parse errors when "eval" and "arguments" are found in inappropriate...
authormarja@chromium.org <marja@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 4 Feb 2014 09:47:30 +0000 (09:47 +0000)
committermarja@chromium.org <marja@chromium.org@ce2b1a6d-e550-0410-aec6-3dcde31c8c00>
Tue, 4 Feb 2014 09:47:30 +0000 (09:47 +0000)
commit9aa05b0997594e18bf38f46ce98ad4d5f6e4a408
tree91dd54c6ce4ae039de5369469a20f0424491929d
parent681289e0d63193d652e1022f0bf508d9841baec1
Tests for (pre)parse errors when "eval" and "arguments" are found in inappropriate places.

In addition:
- Fix a bug in parser discovered by the tests (prefix and postfix confused in an
  error message); the preparser had it right.
- Unify the parser and preparser error locations when the name of a function is
  "eval" or "arguments. Now both point to the name.

BUG=3126
LOG=N
R=ulan@chromium.org

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

git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19050 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
src/parser.cc
src/parser.h
test/cctest/test-parsing.cc