Debian Codegraph @

js/src/tests/test262/language/expressions/template-literal/tv-null-character-escape-sequence.js

raw
1 // Copyright (C) 2014 the V8 project authors. All rights reserved.
2 // This code is governed by the BSD license found in the LICENSE file.
3 /*---
4 es6id: 11.8.6.1
5 description: Template values of the null character escape sequence
6 info: |
7 The TV of TemplateCharacter :: \ EscapeSequence is the SV of
8 EscapeSequence.
9 The TRV of EscapeSequence :: 0 is the code unit value 0x0030.
10 ---*/
11
12 var calls = 0;
13
14 (function(s) {
15 calls++;
16 assert.sameValue(s[0], '');
17 assert.sameValue(s.raw[0], '\\0');
18 })`\0`;
19 assert.sameValue(calls, 1);
20
21 reportCompare(0, 0);