mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-10-22 10:02:24 +00:00
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:
1 parent
7f948d3d63
commit
aa181ce8d4
1 file changed
+1
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user