[Pkg-javascript-commits] [less.js] 46/285: Fix LessError being used before being defined

Jonas Smedegaard dr at jones.dk
Mon Oct 26 23:23:36 UTC 2015


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag v2.0.0
in repository less.js.

commit 78a92e702daedff605c76be0eeebaeb10241fcd1
Author: Forbes Lindesay <forbes.lindesay at red-gate.com>
Date:   Fri Jun 6 11:00:08 2014 +0100

    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 e7a0f61..505cbc8 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;

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/less.js.git



More information about the Pkg-javascript-commits mailing list