Line Terminator test description corrections

This commit is contained in:
Rick Waldron 2020-10-05 18:02:26 -04:00 committed by Philip Chimento
parent 0593463817
commit e04de94c07
4 changed files with 23 additions and 12 deletions

View File

@ -2,9 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: <LF> between chunks of one string not allowed
es5id: 8.4_A7.1
description: Insert <LF> between chunks of one string
esid: sec-line-terminators
description: >
Line terminator <LF> may appear as an escape sequence within a StringLiteral
info: |
A line terminator cannot occur within any token except a StringLiteral, Template, or TemplateSubstitutionTail.
---*/
assert.throws(ReferenceError, function() {

View File

@ -2,11 +2,15 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: <CR> between chunks of one string not allowed
es5id: 8.4_A7.2
description: Insert <CR> between chunks of one string
esid: sec-line-terminators
description: >
Line terminator <CR> may appear as an escape sequence within a StringLiteral
info: |
A line terminator cannot occur within any token except a StringLiteral, Template, or TemplateSubstitutionTail.
---*/
assert.throws(ReferenceError, function() {
eval("var x = asdf\u000Dghjk");
});

View File

@ -2,9 +2,11 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: <PS> between chunks of one string not allowed
es5id: 8.4_A7.3
description: Insert <PS> between chunks of one string
esid: sec-line-terminators
description: >
Line terminator <PS> may appear as an escape sequence within a StringLiteral
info: |
A line terminator cannot occur within any token except a StringLiteral, Template, or TemplateSubstitutionTail.
---*/
assert.throws(ReferenceError, function() {

View File

@ -2,9 +2,12 @@
// This code is governed by the BSD license found in the LICENSE file.
/*---
info: <LS> between chunks of one string not allowed
es5id: 8.4_A7.4
description: Insert <LS> between chunks of one string
esid: sec-line-terminators
description: >
Line terminator <LS> may appear as an escape sequence within a StringLiteral
info: |
A line terminator cannot occur within any token except a StringLiteral, Template, or TemplateSubstitutionTail.
---*/
assert.throws(ReferenceError, function() {