Skip to content

Raw strings from ES6 tagged templates are incorrect #1841

@gyson

Description

@gyson

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    v8 engineIssues and PRs related to the V8 dependency.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions