mirror of
https://github.com/less/less.js.git
synced 2026-01-25 15:18:03 -05:00
Error handlers for min/max functions
This commit is contained in:
@@ -281,6 +281,9 @@ tree.functions = {
|
||||
values[unit] = values[""] !== undefined && unit !== "" && unit === unitStatic ? values[""] : values[unit];
|
||||
j = values[unit];
|
||||
if (j === undefined) {
|
||||
if(unitStatic !== undefined && unit !== unitStatic) {
|
||||
throw{ type: "Argument", message: "incompatible types" };
|
||||
}
|
||||
values[unit] = order.length;
|
||||
order.push(current);
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user