[Pas2js] High
Mattias Gaertner
nc-gaertnma at netcologne.de
Wed Jun 26 21:36:01 CEST 2019
On Mon, 24 Jun 2019 15:56:27 -0700 (MST)
warleyalex via Pas2js <pas2js at lists.freepascal.org> wrote:
> It seems there is an issue with High
>
> ========
> var
> fruits : array of String = ('Banana', 'Orange', 'Apple', 'Mango',
> 'Banana', 'Abacate', 'Apple');
> begin
> TJSArray(fruits).push('kiwi');
> for Index := Low(fruits) to High(fruits) do
> console.log( fruits[Index] );
> end;
> ========
>
> JS output
> //-------------
> $mod.fruits.push("kiwi");
> for ($mod.Index = 0; $mod.Index <= 6; $mod.Index++)
> window.console.log($mod.fruits[$mod.Index]);
Fixed.
Mattias
More information about the Pas2js
mailing list