tests/auto/qml/ecmascripttests/test262/test/language/expressions/template-literal/tv-template-characters.js
raw symbols SCIP| 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 multiple template characters |
| 6 | info: | |
| 7 | The TV of TemplateCharacters :: TemplateCharacter TemplateCharacters is a |
| 8 | sequence consisting of the code units in the TV of TemplateCharacter |
| 9 | followed by all the code units in the TV of TemplateCharacters in order. |
| 10 | The TRV of TemplateCharacters :: TemplateCharacter TemplateCharacters is a |
| 11 | sequence consisting of the code units in the TRV of TemplateCharacter |
| 12 | followed by all the code units in the TRV of TemplateCharacters, in order. |
| 13 | ---*/ |
| 14 | |
| 15 | var calls = 0; |
| 16 | |
| 17 | (function(s) { |
| 18 | calls++; |
| 19 | assert.sameValue(s.raw[0], 'test'); |
| 20 | })`test`; |
| 21 | |
| 22 | assert.sameValue(calls, 1); |
| 23 | assert.sameValue(`test`, 'test'); |