less 4.9.0 → 4.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/less-node.cjs +6 -3
- package/dist/less.cjs +6 -3
- package/dist/less.js +6 -3
- package/dist/less.min.js +2 -2
- package/dist/less.min.js.map +1 -1
- package/lib/less/tree/declaration.js +4 -1
- package/package.json +1 -1
|
@@ -95,7 +95,10 @@ class Declaration extends Node {
|
|
|
95
95
|
context.importantScope.push({});
|
|
96
96
|
evaldValue = /** @type {Node} */ (this.value).eval(context);
|
|
97
97
|
|
|
98
|
-
|
|
98
|
+
// A mixin call used as a property value (without a lookup) evaluates
|
|
99
|
+
// to its ruleset, which arrives here as an array of rules; without
|
|
100
|
+
// this guard it renders as `[object Object]`.
|
|
101
|
+
if (!this.variable && (evaldValue.type === 'DetachedRuleset' || Array.isArray(evaldValue))) {
|
|
99
102
|
throw { message: 'Rulesets cannot be evaluated on a property.',
|
|
100
103
|
index: this.getIndex(), filename: this.fileInfo().filename };
|
|
101
104
|
}
|