I noticed that raw strings from tagged templates are incorrect when we have nested templates like following (iojs 2.1.0, V8 4.2.77.20):
function tag(strings) {
return strings.raw
}
tag`1 ${ `2` } 3` // => expect [ '1', '3' ], but got [ '2', ' 3' ]
I test it in Chrome 43.0.2357.81 (V8 4.3.61.23) and works as expected.
Therefore, I guess it's a bug from V8 and it would be fixed when iojs upgrades to newer V8.
I noticed that raw strings from tagged templates are incorrect when we have nested templates like following (iojs 2.1.0, V8 4.2.77.20):
I test it in Chrome 43.0.2357.81 (V8 4.3.61.23) and works as expected.
Therefore, I guess it's a bug from V8 and it would be fixed when iojs upgrades to newer V8.