• marja@chromium.org's avatar
    Scanner: disallow unicode escapes in regexp flags. · 2b026851
    marja@chromium.org authored
    The spec explicitly forbids them. V8 never handled them properly either, just
    the Scanner accepted them (it had code to add them literally to the
    LiteralBuffer) and later on, Regexp constructor disallowed them.
    
    According to the spec, unicode escapes in regexp flags should be an early error
    ("It is a Syntax Error if IdentifierPart contains a Unicode escape sequence.").
    
    Note that Scanner is still more relaxed about regexp flags than the
    spec. Especially, it accepts any identifier parts (not just a small set of
    letters) and doesn't check for duplicates.
    
    R=rossberg@chromium.org
    
    Review URL: https://codereview.chromium.org/700373003
    
    Cr-Commit-Position: refs/heads/master@{#25215}
    git-svn-id: https://v8.googlecode.com/svn/branches/bleeding_edge@25215 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
    2b026851
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...
testing Loading commit data...
tools Loading commit data...
.DEPS.git Loading commit data...
.clang-format Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
BUILD.gn 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...
README.md Loading commit data...
WATCHLISTS Loading commit data...
codereview.settings Loading commit data...