Compiler bug in pas2js when copying whole arrays

Hello!
Web Core 1.8.5.0, Delphi 10.4.2.

I define

type
  tmyArray = array[1..80, 1..25] of byte;

and

var
    ar1, ar2 : tmyArray;

Now, when copying the whole array und change a value in one of them:

  ar1[1,1]:=1;
  ar2:=ar1;
  ar1[1,1]:=0;
  if ar1[1,1]=ar2[1,1] then
    showmessage('identical ')
  else
    showmessage('not identical ')

you see that it shows "identical", which is incorrect.
I didn't dig into the generated javascript code, so I am not sure what exactly goes wrong here.

We will communicate this to the pas2js compiler team.