Skip to content

Commit

Permalink
Merge pull request google#20 from trofim24/patch-2
Browse files Browse the repository at this point in the history
Fix extraCommandArgs not being copied
  • Loading branch information
Dominator008 committed Mar 31, 2016
2 parents ee63e21 + 24366d8 commit c3edd3a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/node/closure-compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ var contribPath = path.dirname(compilerPath) + '/contrib';
* @param {Array<String>=} extraCommandArgs
*/
function Compiler(args, extraCommandArgs) {
this.commandArguments = extraCommandArgs || [];
this.commandArguments = (extraCommandArgs || []).slice();

this.commandArguments.push('-jar', Compiler.JAR_PATH);

Expand Down

0 comments on commit c3edd3a

Please sign in to comment.