Fix CoffeeScript 1.12 support

This commit is contained in:
shortcutme 2017-06-13 14:24:10 +02:00
parent 1f1cbf01d7
commit 1f83b6691b
No known key found for this signature in database
GPG key ID: 5B63BAE6CB9613AE

View file

@ -42,7 +42,7 @@ function convert(input, output) {
} }
var coffee; var coffee;
if (!input) { if (!input) {
// Read all input data from STDIN // Read all input data from STDIN
var chunks = []; var chunks = [];
while (!WScript.StdIn.AtEndOfStream) while (!WScript.StdIn.AtEndOfStream)
@ -62,8 +62,7 @@ function convert(input, output) {
return new f; return new f;
} }
var js = CoffeeScript.compile(coffee); var js = CoffeeScript.compile(coffee, {filename: "temp.coffee"});
if (!output) { if (!output) {
WScript.StdOut.Write(js); WScript.StdOut.Write(js);
} }