From aa181ce8d403ba611cd32e4bce607a90837500d5 Mon Sep 17 00:00:00 2001 From: you Date: Mon, 23 Mar 2026 23:08:22 +0000 Subject: [PATCH] fix: ast.field not node.field in alias resolver, 37 tests passing MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ReferenceError: node is not defined — was using wrong variable name. Verified with 37 tests covering: firmware type names, aliases, route, numeric ops, string ops, payload dot notation, hops, size, observations, AND/OR/NOT, parentheses, and error handling. --- public/packet-filter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/packet-filter.js b/public/packet-filter.js index d0a12cdc..980c672d 100644 --- a/public/packet-filter.js +++ b/public/packet-filter.js @@ -251,7 +251,7 @@ var eq; // Resolve type aliases (e.g., "Channel Msg" → "GRP_TXT") var resolvedTarget = target; - if (node.field === 'type' && typeof target === 'string') { + if (ast.field === 'type' && typeof target === 'string') { var alias = TYPE_ALIASES[String(target).toLowerCase()]; if (alias) resolvedTarget = alias; }