mirror of
https://github.com/Smaug123/KaTeX
synced 2025-10-08 12:38:39 +00:00
Do not polyfill JSON.stringify (#1563)
This commit is contained in:
@@ -64,7 +64,8 @@ function checkDelimiter(
|
|||||||
} else {
|
} else {
|
||||||
throw new ParseError(
|
throw new ParseError(
|
||||||
"Invalid delimiter: '" +
|
"Invalid delimiter: '" +
|
||||||
(symDelim ? symDelim.value : JSON.stringify(delim)) +
|
// $FlowFixMe, do not polyfill
|
||||||
|
(symDelim ? symDelim.value : JSON["stringify"](delim)) +
|
||||||
"' after '" + context.funcName + "'", delim);
|
"' after '" + context.funcName + "'", delim);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user