[Pas2js] pas2js Webgl unit committed

Ryan Joseph ryan at thealchemistguild.com
Wed May 9 16:03:51 CEST 2018



> On May 9, 2018, at 7:59 PM, Michael Van Canneyt <michael at freepascal.org> wrote:
> 
> You can fetch files from a server using XMLHTTPRequest, and then make them available in a buffer.

As a side note how does it work when I encounter a class like XMLHTTPRequest? Do I assume all JS classes just exist or do I need to see if you translated them? There are constructors and the “new” keyword I’m not sure how to translate by default. From the previous email it sounded like you wanted to add this but I still don’t understand how they should work.

For example how does this translate?

var xhr = new XMLHttpRequest();

Regards,
	Ryan Joseph



More information about the Pas2js mailing list