Add compatibility to CoffeeScript >= 1.9.0 and update to last version
(1.10.0)
This commit is contained in:
parent
6c7f4b57bb
commit
46bc234790
2 changed files with 14 additions and 6 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