[Pkg-javascript-commits] [less.js] 45/285: Pass env to chunker for use in error messages

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 8c978cd7671af91332a39ffbefcc581626e1072b
Author: Forbes Lindesay <forbes.lindesay at red-gate.com>
Date:   Fri Jun 6 10:58:29 2014 +0100

    Pass env to chunker for use in error messages
---
 lib/less/chunker.js | 2 +-
 lib/less/parser.js  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/less/chunker.js b/lib/less/chunker.js
index 4473917..0d13882 100644
--- a/lib/less/chunker.js
+++ b/lib/less/chunker.js
@@ -1,7 +1,7 @@
 var LessError = require('./less-error.js');
 
 // Split the input into chunks.
-module.exports = function (parser, input) {
+module.exports = function (parser, input, env) {
     var len = input.length, level = 0, parenLevel = 0,
         lastOpening, lastOpeningParen, lastMultiComment, lastMultiCommentEndBrace,
         chunks = [], emitFrom = 0,
diff --git a/lib/less/parser.js b/lib/less/parser.js
index e3b2a9a..97ccc8f 100644
--- a/lib/less/parser.js
+++ b/lib/less/parser.js
@@ -356,7 +356,7 @@ var Parser = function Parser(env) {
             parser.imports.contents[env.currentFileInfo.filename] = str;
 
             try {
-                chunks = chunker(parser, str);
+                chunks = chunker(parser, str, env);
             } catch (ex) {
                 return callback(new LessError(parser, error, env));
             }

-- 
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