Skip to content

Raw strings from ES6 tagged templates are incorrect #1841

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.

Activity

  1. added
    v8 engineIssues and PRs related to the V8 dependency.
    on May 30, 2015
  2. ChALkeR commented on May 30, 2015

    @ChALkeR
    Member

    The above testcase works with the next branch.
    #1807 #1632

    I assume that this is fixed in 3.0 (v8 4.3.x).

  3. cjihrig commented on May 30, 2015

    @cjihrig
    Contributor

    If this is fixed in next, is anyone opposed to closing this?

  4. bnoordhuis commented on May 30, 2015

    @bnoordhuis
    Member

    I'll close it, there's nothing actionable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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