From 1f83b6691b7864a35c1466ee23a14628f28ec974 Mon Sep 17 00:00:00 2001 From: shortcutme Date: Tue, 13 Jun 2017 14:24:10 +0200 Subject: [PATCH] Fix CoffeeScript 1.12 support --- tools/coffee/coffee.wsf | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tools/coffee/coffee.wsf b/tools/coffee/coffee.wsf index c8909f7b..25d590c9 100644 --- a/tools/coffee/coffee.wsf +++ b/tools/coffee/coffee.wsf @@ -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) @@ -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); }