Skip to content
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

Argument name collision #116

Closed
ef4 opened this issue Feb 25, 2015 · 1 comment
Closed

Argument name collision #116

ef4 opened this issue Feb 25, 2015 · 1 comment

Comments

@ef4
Copy link
Contributor

ef4 commented Feb 25, 2015

import { something } from "duplicated";
import duplicated from "elsewhere";

export default function() {
  return [something, duplicated];
}

transpiles to

define(['exports', 'duplicated', 'elsewhere'], function (exports, duplicated, duplicated) {

  'use strict';

  exports['default'] = function() {
    return [duplicated.something, duplicated['default']];
  }

});

Which contains a syntax error Strict mode function may not have duplicate parameter names.

I looked for similar bugs and #95 is similar but not identical.

Rich-Harris added a commit that referenced this issue Feb 28, 2015
Rich-Harris added a commit that referenced this issue Feb 28, 2015
@Rich-Harris
Copy link
Contributor

Thanks - fixed in 0.6.16

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants