fix: ast.field not node.field in alias resolver, 37 tests passing

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.
This commit is contained in:
you committed 2026-03-23 23:08:22 +00:00
1 parent 7f948d3d63
commit aa181ce8d4
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}