mirror of https://github.com/tc39/test262.git
Line Terminator test description corrections
This commit is contained in:
parent
0593463817
commit
e04de94c07
|
@ -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() {
|
||||
|
|
|
@ -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");
|
||||
});
|
||||
|
||||
|
||||
|
|
|
@ -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() {
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue