Follow standard for inheriting from Error

This commit is contained in:
Adam McCormick
2013-04-24 10:38:52 -06:00
committed by Luke Page
parent 5bc4059c6b
commit c6d02c7a6f

View File

@@ -260,6 +260,9 @@ less.Parser = function Parser(env) {
];
}
LessError.prototype = new Error();
LessError.prototype.constructor = LessError;
this.env = env = env || {};
// The optimization level dictates the thoroughness of the parser,