From bd510b3dfbd68395821756deec300de667b6f157 Mon Sep 17 00:00:00 2001 From: Andrew Dupont Date: Fri, 5 Jan 2024 12:00:18 -0800 Subject: [PATCH] Don't try to parse non-CSON files as CSON --- script/validate-wasm-grammar-prs.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/script/validate-wasm-grammar-prs.js b/script/validate-wasm-grammar-prs.js index c6d0384976..706ce1f787 100644 --- a/script/validate-wasm-grammar-prs.js +++ b/script/validate-wasm-grammar-prs.js @@ -79,6 +79,9 @@ for (const wasmFile of wasmFilesChanged) { } for (const file of files) { + // Only check `cson` files. + if (!file.endsWith('.cson')) continue; + const filePath = path.join(wasmPath, "..", file); console.log(`Checking: ${filePath}`);