(a, b)
| 54 | |
| 55 | const fail = (code, msg) => { console.error(`[check-grammar] ${msg}`); process.exit(code); }; |
| 56 | const samePath = (a, b) => (process.platform === 'win32' ? a.toLowerCase() === b.toLowerCase() : a === b); |
| 57 | |
| 58 | function resolveWasm(t) { |
| 59 | if (t.endsWith('.wasm')) return existsSync(t) ? path.resolve(t) : fail(2, `wasm not found: ${t}`); |