[Pas2js] for .. in loop

Ryan Joseph ryan at thealchemistguild.com
Fri May 18 17:43:58 CEST 2018



> On May 18, 2018, at 10:22 PM, Michael Van Canneyt <michael at freepascal.org> wrote:
> 
> I don't think we'll allow this.

Then can we cast JSValue as integer? JavaScript arrays are apparently not what I think they are but this should still work in Pascal none the less. Not being able to iterate an array using for..in is pretty crazy seeing as it’s standard syntax now in FPC and most other languages.

Regards,
	Ryan Joseph



More information about the Pas2js mailing list