mirror of
https://github.com/less/less.js.git
synced 2026-01-23 06:07:56 -05:00
Fix missing new statement, causing a undefined throw and bad error message
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user