mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-15 18:29:51 +00:00
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:
Binary file not shown.
Binary file not shown.
@@ -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)
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user