mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-10 05:28:41 +00:00
Merge pull request #104 from kevinb7/error.position
added position property to ParseError
This commit is contained in:
@@ -29,6 +29,8 @@ function ParseError(message, lexer, position) {
|
||||
var self = new Error(error);
|
||||
self.name = "ParseError";
|
||||
self.__proto__ = ParseError.prototype;
|
||||
|
||||
self.position = position;
|
||||
return self;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user