mirror of https://github.com/tc39/test262.git
Test TV for tagged templates too.
This commit is contained in:
parent
f24b9004b3
commit
ede5b2400f
|
@ -15,6 +15,16 @@ esid: sec-template-literal-lexical-components
|
|||
assert.sameValue(strs.raw[0], '\\1');
|
||||
})`\1`;
|
||||
|
||||
(strs => {
|
||||
assert.sameValue(strs[0], undefined, 'Cooked template value should be undefined for illegal escape sequences');
|
||||
assert.sameValue(strs.raw[0], '\\8');
|
||||
})`\8`;
|
||||
|
||||
(strs => {
|
||||
assert.sameValue(strs[0], undefined, 'Cooked template value should be undefined for illegal escape sequences');
|
||||
assert.sameValue(strs.raw[0], '\\9');
|
||||
})`\9`;
|
||||
|
||||
(strs => {
|
||||
assert.sameValue(strs[0], undefined, 'Cooked template value should be undefined for illegal escape sequences');
|
||||
assert.sameValue(strs.raw[0], '\\xg');
|
||||
|
|
Loading…
Reference in New Issue