| 1 |
// Copyright 2009 the Sputnik authors. All rights reserved. |
| 2 |
// This code is governed by the BSD license found in the LICENSE file. |
| 3 |
|
| 4 |
/*--- |
| 5 |
esid: prod-RegularExpressionBackslashSequence |
| 6 |
info: | |
| 7 |
RegularExpressionBackslashSequence :: |
| 8 |
\ RegularExpressionNonTerminator |
| 9 |
|
| 10 |
RegularExpressionNonTerminator :: |
| 11 |
SourceCharacter but not LineTerminator |
| 12 |
|
| 13 |
LineTerminator :: |
| 14 |
<LF> |
| 15 |
<CR> |
| 16 |
<LS> |
| 17 |
<PS> |
| 18 |
|
| 19 |
description: > |
| 20 |
A regular expression may not contain a <LS> as a SourceCharacter |
| 21 |
negative: |
| 22 |
phase: parse |
| 23 |
type: SyntaxError |
| 24 |
---*/ |
| 25 |
|
| 26 |
throw "Test262: This statement should not be evaluated."; |
| 27 |
|
| 28 |
/a\\
/ |
| 29 |
|
| 30 |
/* |
| 31 |
There is a <LS> between "a\\
" and "/" |
| 32 |
*/ |