google / traceur-compiler

Traceur is a JavaScript.next-to-JavaScript-of-today compiler
Apache License 2.0
8.17k stars 580 forks source link

Repeated 'use strict' statements in generated code #1973

Closed dar5hak closed 9 years ago

dar5hak commented 9 years ago

Let's say I have an ES6 file with a global 'use strict' statement. The transpiled file ends up with two global 'use strict' statements.

I'm using gulp-traceur with Node 0.10.

arv commented 9 years ago

Why would you ever put "use strict" at the top of a module file?

dar5hak commented 9 years ago

@arv I wouldn't, but just happened to notice this effect while accidentally transpiling an already transpiled file.