8000 Follow standard for inheriting from Error · browserstack/less.js@c6d02c7 · GitHub
[go: up one dir, main page]

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

Lines changed: 3 additions & 0 deletions
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)
0