chore(deps): update dependency meriyah to v6.1.0 (#17601)

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: fisker <lionkay@gmail.com>
This commit is contained in:
renovate[bot]andfisker authored and GitHub committed 2025-06-13 17:00:30 +08:00
1 parent 3b0f33539f
commit ee90bbb751
4 files changed
+9 -19

No files matched your search

+2 -7
View File
@@ -56,19 +56,14 @@ function parseWithOptions(text, sourceType) {
}
function createParseError(error) {
let { message, loc } = error;
const { description, loc } = error;
/* c8 ignore next 3 */
if (!loc) {
return error;
}
const prefix = `[${[loc.start, loc.end].map(({ line, column }) => [line, column].join(":")).join("-")}]: `;
if (message.startsWith(prefix)) {
message = message.slice(prefix.length);
}
return createError(message, {
return createError(description, {
loc: {
start: {
line: loc.start.line,