mirror of
https://github.com/less/less.js.git
synced 2026-01-23 14:18:00 -05:00
Fix LessError being used before being defined
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
|
||||
module.exports = LessError;
|
||||
function LessError(parser, e, env) {
|
||||
var LessError = module.exports = function LessError(parser, e, env) {
|
||||
var input = parser.getInput(e, env),
|
||||
loc = parser.getLocation(e.index, input),
|
||||
line = loc.line,
|
||||
@@ -25,4 +24,4 @@ function LessError(parser, e, env) {
|
||||
}
|
||||
|
||||
LessError.prototype = new Error();
|
||||
LessError.prototype.constructor = LessError;
|
||||
LessError.prototype.constructor = LessError;
|
||||
|
||||
Reference in New Issue
Block a user