Source code
Revision control
Copy as Markdown
Other Tools
// Copyright (C) 2014 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 11.8.6.1
description: Template values of the null character escape sequence
info: |
The TV of TemplateCharacter :: \ EscapeSequence is the SV of
EscapeSequence.
The TRV of EscapeSequence :: 0 is the code unit value 0x0030.
---*/
var calls = 0;
(function(s) {
calls++;
assert.sameValue(s[0], ' ');
assert.sameValue(s.raw[0], '\\0');
})`\0`;
assert.sameValue(calls, 1);
reportCompare(0, 0);