1
0
Fork 0
mirror of https://github.com/jashkenas/coffeescript.git synced 2022-11-09 12:23:24 -05:00

Do not pass invalid filename 'stdio' to compileScript when compiling from stdin because it breaks fs.realpathSync at run.

It would be nice to have a test for this but wasn't sure if there is a way to test stdin from cake.
This commit is contained in:
Janne Hietamäki 2010-11-06 15:21:45 +02:00
parent bc8022f49f
commit 3af34d61d3

View file

@ -137,7 +137,7 @@
return buffer ? code += buffer.toString() : void 0;
});
return stdin.on('end', function() {
return compileScript('stdio', code);
return compileScript(null, code);
});
};
watch = function(source, base) {