Skip to content

[Transforms] Incorrect emit for binding initializers in rest parameters. #7890

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
mhegazy opened this issue Apr 6, 2016 · 0 comments
Closed
Assignees
Labels
Bug A bug in TypeScript Domain: Transforms Relates to the public transform API Fixed A PR has been merged for this issue

Comments

@mhegazy
Copy link
Contributor

mhegazy commented Apr 6, 2016

Expected:

//// [restParameterWithBindingPattern2.ts]
function a(...[a, b]) { }

//// [restParameterWithBindingPattern2.js]
function a() { }

Actual:

//// [restParameterWithBindingPattern2.ts]
function a(...[a, b]) { }

//// [restParameterWithBindingPattern2.js]
function a() {
    var [a, b] = [];
    for (var _i = 0; _i < arguments.length; _i++) {
        ()[_i - 0] = arguments[_i];
    }
}

Failed tests:

  • tests/cases/compiler/restParameterWithBindingPattern2.ts

Related to issue:#6275

@mhegazy mhegazy added Bug A bug in TypeScript Domain: Transforms Relates to the public transform API labels Apr 6, 2016
@sandersn sandersn self-assigned this Apr 8, 2016
@mhegazy mhegazy added the Fixed A PR has been merged for this issue label Apr 14, 2016
@microsoft microsoft locked and limited conversation to collaborators Jun 19, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Bug A bug in TypeScript Domain: Transforms Relates to the public transform API Fixed A PR has been merged for this issue
Projects
None yet
Development

No branches or pull requests

2 participants