v8/test/message/fail/octal-template-literal.out
Teddy Katz bf021c3c1b Fix error message for octal escapes in templates
This updates the scanner to use the correct error message when it
encounters an octal escape sequence in a template literal. Previously,
the error message referred to strict mode, even when the template
literal was not in strict mode code.

Bug: v8:7502
Change-Id: I37bb1338cf796c471108bc10f35f824cdf3ce0b7
Reviewed-on: https://chromium-review.googlesource.com/945411
Reviewed-by: Adam Klein <adamk@chromium.org>
Commit-Queue: Adam Klein <adamk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#51823}
2018-03-08 18:57:45 +00:00

5 lines
175 B
Plaintext

*%(basename)s:7: SyntaxError: Octal escape sequences are not allowed in template strings.
`\123`
^^
SyntaxError: Octal escape sequences are not allowed in template strings.