mirror of
https://github.com/tc39/test262.git
synced 2025-07-24 22:45:10 +02:00
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');
|
assert.sameValue(strs.raw[0], '\\1');
|
||||||
})`\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 => {
|
(strs => {
|
||||||
assert.sameValue(strs[0], undefined, 'Cooked template value should be undefined for illegal escape sequences');
|
assert.sameValue(strs[0], undefined, 'Cooked template value should be undefined for illegal escape sequences');
|
||||||
assert.sameValue(strs.raw[0], '\\xg');
|
assert.sameValue(strs.raw[0], '\\xg');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user