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.
@@ -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
- if (!this.variable && evaldValue.type === 'DetachedRuleset') {
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "less",
3
- "version": "4.9.0",
3
+ "version": "4.9.1",
4
4
  "description": "Leaner CSS",
5
5
  "homepage": "http://lesscss.org",
6
6
  "author": {