Skip to content
This repository was archived by the owner on Sep 19, 2025. It is now read-only.

Commit c3edd3a

Browse files
committed
Merge pull request #20 from trofim24/patch-2
Fix extraCommandArgs not being copied
2 parents ee63e21 + 24366d8 commit c3edd3a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/node/closure-compiler.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ var contribPath = path.dirname(compilerPath) + '/contrib';
3434
* @param {Array<String>=} extraCommandArgs
3535
*/
3636
function Compiler(args, extraCommandArgs) {
37-
this.commandArguments = extraCommandArgs || [];
37+
this.commandArguments = (extraCommandArgs || []).slice();
3838

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

0 commit comments

Comments
 (0)