mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04: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