I am not able to use a nested function, if it is nested in a pascal class, I do not know if this behavior is normal. It works if it is nested in a simple function.
procedure AnimationFrame(ATime: double = 0);
begin
...
window.requestAnimationFrame(@AnimationFrame);
end;
///Error: Incompatible type arg no. 1: Got "procedure(Double) of Object",
expected "procedure(Double)"Sent from: http://pas2js.38893.n8.nabble.com/
