• marja@chromium.org's avatar
    Tests and fixes for (pre)parse errors related to strict reserved words. · 443e645a
    marja@chromium.org authored
    This contains the following fixes:
    
    - We had strict_reserved_word and unexpected_strict_reserved, which one to use
    was totally mixed in Parser and PreParser. Removed strict_reserved_word.
    - When we saw a strict future reserved word when expecting something completely
    different (such as "(" in "function foo interface"), Parser reports unexpected
    identifier, whereas PreParser used to report unexpected strict reserved
    word. Fixed PreParser to report unexpected identifier too.
    - Unified parser and preparser error locations when the name of a function is a
    strict reserved word. Now both point to the name.
    
    BUG=3126
    LOG=N
    R=ulan@chromium.org
    
    Review URL: https://codereview.chromium.org/149253010
    
    git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@19067 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    443e645a
Name
Last commit
Last update
benchmarks Loading commit data...
build Loading commit data...
include Loading commit data...
samples Loading commit data...
src Loading commit data...
test Loading commit data...
tools Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
ChangeLog Loading commit data...
DEPS Loading commit data...
LICENSE Loading commit data...
LICENSE.strongtalk Loading commit data...
LICENSE.v8 Loading commit data...
LICENSE.valgrind Loading commit data...
Makefile Loading commit data...
Makefile.android Loading commit data...
Makefile.nacl Loading commit data...
OWNERS Loading commit data...
PRESUBMIT.py Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...