From 78a92e702daedff605c76be0eeebaeb10241fcd1 Mon Sep 17 00:00:00 2001 From: Forbes Lindesay Date: Fri, 6 Jun 2014 11:00:08 +0100 Subject: [PATCH] Fix LessError being used before being defined --- lib/less/less-error.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/less/less-error.js b/lib/less/less-error.js index e7a0f613..505cbc89 100644 --- a/lib/less/less-error.js +++ b/lib/less/less-error.js @@ -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; \ No newline at end of file +LessError.prototype.constructor = LessError;