fix expected raw value for invalid escape sequences in tagged templates (#800)

This commit is contained in:
Michael Ficarra 2016-11-22 11:45:39 -05:00 committed by Leo Balter
parent e6abf652d9
commit a4a1dd551b
1 changed files with 2 additions and 2 deletions

View File

@ -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 => {