Skip to content

Commit c6d02c7

Browse files
alanblylukeapage
authored andcommitted
Follow standard for inheriting from Error
1 parent 5bc4059 commit c6d02c7

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/less/parser.js

+3
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,9 @@ less.Parser = function Parser(env) {
260260
];
261261
}
262262

263+
LessError.prototype = new Error();
264+
LessError.prototype.constructor = LessError;
265+
263266
this.env = env = env || {};
264267

265268
// The optimization level dictates the thoroughness of the parser,

0 commit comments

Comments
 (0)