evaluate Values of length > 1 properly
This commit is contained in:
parent
fb393e8f62
commit
3c89d3b9bd
@ -30,7 +30,9 @@ tree.Value.prototype = {
|
|||||||
return this.value[0].eval ? this.value[0].eval(env)
|
return this.value[0].eval ? this.value[0].eval(env)
|
||||||
: this.value[0];
|
: this.value[0];
|
||||||
} else {
|
} else {
|
||||||
return this;
|
return new(tree.Value)(this.value.map(function (v) {
|
||||||
|
return v.eval(env);
|
||||||
|
}));
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
toCSS: function (env) {
|
toCSS: function (env) {
|
||||||
|
Loading…
Reference in New Issue
Block a user