Skip comment attach when parse JSON (#15583)

This commit is contained in:
fisker Cheung authored and GitHub committed 2023-11-03 20:22:12 +08:00
1 parent a97e0b9483
commit b26efbc98f
1 file changed
+1
+1
View File
@@ -14,6 +14,7 @@ function createJsonParse(options = {}) {
ast = parseExpression(text, {
tokens: true,
ranges: true,
attachComment: false,
});
} catch (/** @type {any} */ error) {
if (