| Index: test/mjsunit/harmony/template-escapes.js
|
| diff --git a/test/mjsunit/harmony/template-escapes.js b/test/mjsunit/harmony/template-escapes.js
|
| index fcaf8ac5bfcfa79e361852c144cca13139317959..ea019851ffe53bfcb07ff056b17e650413de340e 100644
|
| --- a/test/mjsunit/harmony/template-escapes.js
|
| +++ b/test/mjsunit/harmony/template-escapes.js
|
| @@ -783,3 +783,90 @@ check({
|
| 1
|
| ]
|
| })`left${0}\u{110000}${1}right`;
|
| +
|
| +
|
| +
|
| +function checkMultiple(expectedArray) {
|
| + let results = [];
|
| + return function consume(strs, ...args) {
|
| + if (typeof strs === 'undefined') {
|
| + assertArrayEquals(expectedArray, results);
|
| + } else {
|
| + results.push({cooked: strs, raw: strs.raw, exprs: args});
|
| + return consume;
|
| + }
|
| + };
|
| +}
|
| +
|
| +
|
| +checkMultiple([{
|
| + 'cooked': [
|
| + undefined
|
| + ],
|
| + 'raw': [
|
| + '\\u',
|
| + ],
|
| + 'exprs': []
|
| +}, {
|
| + 'cooked': [
|
| + undefined
|
| + ],
|
| + 'raw': [
|
| + '\\u',
|
| + ],
|
| + 'exprs': []
|
| +}])`\u``\u`();
|
| +
|
| +checkMultiple([{
|
| + 'cooked': [
|
| + ' '
|
| + ],
|
| + 'raw': [
|
| + ' ',
|
| + ],
|
| + 'exprs': []
|
| +}, {
|
| + 'cooked': [
|
| + undefined
|
| + ],
|
| + 'raw': [
|
| + '\\u',
|
| + ],
|
| + 'exprs': []
|
| +}])` ``\u`();
|
| +
|
| +checkMultiple([{
|
| + 'cooked': [
|
| + undefined
|
| + ],
|
| + 'raw': [
|
| + '\\u',
|
| + ],
|
| + 'exprs': []
|
| +}, {
|
| + 'cooked': [
|
| + ' '
|
| + ],
|
| + 'raw': [
|
| + ' ',
|
| + ],
|
| + 'exprs': []
|
| +}])`\u`` `();
|
| +
|
| +checkMultiple([{
|
| + 'cooked': [
|
| + ' '
|
| + ],
|
| + 'raw': [
|
| + ' ',
|
| + ],
|
| + 'exprs': []
|
| +}, {
|
| + 'cooked': [
|
| + ' '
|
| + ],
|
| + 'raw': [
|
| + ' ',
|
| + ],
|
| + 'exprs': []
|
| +}])` `` `();
|
|
|