Skip to content

Commit

Permalink
Fix CoffeeScript 1.12 support
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcutme committed Jun 13, 2017
1 parent 1f1cbf0 commit 1f83b66
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/coffee/coffee.wsf
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ function convert(input, output) {
}

var coffee;
if (!input) {
if (!input) {
// Read all input data from STDIN
var chunks = [];
while (!WScript.StdIn.AtEndOfStream)
Expand All @@ -62,8 +62,7 @@ function convert(input, output) {
return new f;
}

var js = CoffeeScript.compile(coffee);

var js = CoffeeScript.compile(coffee, {filename: "temp.coffee"});
if (!output) {
WScript.StdOut.Write(js);
}
Expand Down

0 comments on commit 1f83b66

Please sign in to comment.