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:
commit
5bfb38e7d3
2 changed files with 37 additions and 29 deletions
File diff suppressed because one or more lines are too long
|
@ -54,6 +54,14 @@ function convert(input, output) {
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
if(!Object.create)
|
||||||
|
Object.create = function(proto)
|
||||||
|
{
|
||||||
|
function f(){}
|
||||||
|
f.prototype = proto;
|
||||||
|
return new f;
|
||||||
|
}
|
||||||
|
|
||||||
var js = CoffeeScript.compile(coffee);
|
var js = CoffeeScript.compile(coffee);
|
||||||
|
|
||||||
if (!output) {
|
if (!output) {
|
||||||
|
|
Loading…
Reference in a new issue