Dataset.Recordcount does not consider filter

Bug or not ?

Instead of Delphi / Lazarus
If you use Dataset filter then Dataset.RecordCount doesn't consider the new count after filtering.

We must use :

"While not dataset.Eof ..." to browse dataset

and can't use

"for i:=1 To Dataset.RecordCount do ..."

Thank you.

PS :
public class var doesn't see inside asm bloc;
We must always use a local variable inside function/procedure to remap public class var

We reported this to pas2js team and we agree with you that it is wrong.
So, we hope the pas2js team will address this.