Skip to content

Wrong variable name in block scope #273

@zippy84

Description

@zippy84

The following code

const pts = [];
{
    const pts = [];
    pts.push(...[1,2,3]);
}

will be transformed into

var pts = [];
{
    var pts$1 = [];
    pts$1.push.apply(pts, [1,2,3]);
}

The first argument of apply is wrong. It should be pts$1.push.apply(pts$1, [1,2,3]);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions