• bakkot's avatar
    Reland "[parser] Forbid \08 in strict strings" · 76078e14
    bakkot authored
    (Reland: NeedsManualRebaseline'd newly-fixed layout test in Chromium.)
    
    This was never legal; the spec only allows '\0' in strict-mode strings
    or templates when not followed by a decimal digit. Previously we were
    only enforcing that it not be followed by an _octal_ digit.
    
    This was already fixed for numeric literals, but not for escape
    sequences in strings.
    
    BUG=v8:6504
    
    Review-Url: https://codereview.chromium.org/2948903002
    Cr-Commit-Position: refs/heads/master@{#46106}
    76078e14
scanner.cc 54.3 KB