Debian Codegraph @

js/src/tests/test262/language/literals/string/S7.8.4_A4.3_T7.js

raw
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 info: NonEscapeSequence is not EscapeCharacter
6 es5id: 7.8.4_A4.3_T7
7 description: "EscapeCharacter :: SingleEscapeCharacter :: one of b f n r t v"
8 ---*/
9
10 //CHECK#bfnrtv
11 if ("b" === "\b") {
12 throw new Test262Error('#b');
13 }
14
15 if ("f" === "\f") {
16 throw new Test262Error('#f');
17 }
18
19 if ("n" === "\n") {
20 throw new Test262Error('#n');
21 }
22
23 if ("r" === "\r") {
24 throw new Test262Error('#r');
25 }
26
27 if ("t" === "\t") {
28 throw new Test262Error('#t');
29 }
30
31 if ("v" === "\v") {
32 throw new Test262Error('#v');
33 }
34
35 reportCompare(0, 0);