expression.js (less.js-4.1.2) | : | expression.js (less.js-4.1.3) | ||
---|---|---|---|---|
import Node from './node'; | import Node from './node'; | |||
import Paren from './paren'; | import Paren from './paren'; | |||
import Comment from './comment'; | import Comment from './comment'; | |||
import Dimension from './dimension'; | import Dimension from './dimension'; | |||
import * as Constants from '../constants'; | ||||
const MATH = Constants.Math; | ||||
const Expression = function(value, noSpacing) { | const Expression = function(value, noSpacing) { | |||
this.value = value; | this.value = value; | |||
this.noSpacing = noSpacing; | this.noSpacing = noSpacing; | |||
if (!value) { | if (!value) { | |||
throw new Error('Expression requires an array parameter'); | throw new Error('Expression requires an array parameter'); | |||
} | } | |||
}; | }; | |||
Expression.prototype = Object.assign(new Node(), { | Expression.prototype = Object.assign(new Node(), { | |||
End of changes. 1 change blocks. | ||||
2 lines changed or deleted | 0 lines changed or added |