TStringBuilder Chars indexing differs between Webcore and Delphi

TStringBuilder under Dephi uses 0-based indexing of the Chars property (it's also the default property) whereas it appears Webcore's version uses 1-based indexing. Using the following code on both, the Delphi version outputs 0:a 1:b 2:c ... whereas Webcore outputs 0: 1:a 2:b ...

sb := TStringBuilder.Create('abcdef');
  try
    for i:=0 to sb.Length-1 do
      WebMemo1.Lines.Add(IntToStr(i) + ': ' + sb[i]);
  finally
    sb.Free;
  end;

Looks like pas2js RTL related. We'll take this up with the pas2js team.

Thank you!