From 5651517f5fb89a3ced0ec3b72fb0ea93dad141af Mon Sep 17 00:00:00 2001 From: Luke Page Date: Fri, 13 Mar 2015 16:06:19 +0000 Subject: [PATCH] Fix missing new statement, causing a undefined throw and bad error message --- lib/less/parser/parser.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/less/parser/parser.js b/lib/less/parser/parser.js index 7c8021ed..1c292ab6 100644 --- a/lib/less/parser/parser.js +++ b/lib/less/parser/parser.js @@ -122,7 +122,7 @@ var Parser = function Parser(context, imports, fileInfo) { // output. The callback is called when the input is parsed. try { parserInput.start(str, context.chunkInput, function fail(msg, index) { - throw LessError({ + throw new LessError({ index: index, type: 'Parse', message: msg,