Merge pull request #192 from TheNain38/patch-2

Update CoffeeScript version and add compatibility for CoffeeScript version >= 1.9.0
This commit is contained in:
ZeroNet 2015-10-19 22:18:56 +02:00
commit 5bfb38e7d3
2 changed files with 37 additions and 29 deletions

File diff suppressed because one or more lines are too long

View file

@ -54,6 +54,14 @@ function convert(input, output) {
}
try {
if(!Object.create)
Object.create = function(proto)
{
function f(){}
f.prototype = proto;
return new f;
}
var js = CoffeeScript.compile(coffee);
if (!output) {