fix(as3): correct named anonymous functions (#2714)

Anonymous functions with names that are part of for example
function call.
f(5, function myName() {
});
The problem with this was introduced with adding temporary registers
for swap operation.

Fixes #2714
This commit is contained in:
Jindra Petřík
2026-05-23 16:13:24 +02:00
parent d811d8b4db
commit 602a70b74f
7 changed files with 130 additions and 71 deletions

View File

@@ -8,7 +8,14 @@ package tests
{
return (param1 as TestClass2).attrib1 == 5;
};
}
f(5, function g():int {
return 42;
});
}
private function f(a:int,b:Function)
{
}
}
}