mirror of https://github.com/tc39/test262.git
fix expected raw value for invalid escape sequences in tagged templates (#800)
This commit is contained in:
parent
e6abf652d9
commit
a4a1dd551b
|
@ -17,12 +17,12 @@ esid: sec-template-literal-lexical-components
|
|||
|
||||
(strs => {
|
||||
assert.sameValue(strs[0], undefined, 'Cooked template value should be undefined for illegal escape sequences');
|
||||
assert.sameValue(strs.raw[0], '\\1');
|
||||
assert.sameValue(strs.raw[0], '\\xg');
|
||||
})`\xg`;
|
||||
|
||||
(strs => {
|
||||
assert.sameValue(strs[0], undefined, 'Cooked template value should be undefined for illegal escape sequences');
|
||||
assert.sameValue(strs.raw[0], '\\1');
|
||||
assert.sameValue(strs.raw[0], '\\xAg');
|
||||
})`\xAg`;
|
||||
|
||||
(strs => {
|
||||
|
|
Loading…
Reference in New Issue