mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
Follow standard for inheriting from Error
This commit is contained in:
committed by
Luke Page
parent
5bc4059c6b
commit
c6d02c7a6f
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user