[Pas2js] pas2js Webgl unit committed

Ryan Joseph ryan at thealchemistguild.com
Thu May 10 05:09:17 CEST 2018



> On May 9, 2018, at 9:49 PM, Michael Van Canneyt <michael at freepascal.org> wrote:
> 
> xhr:=TJSXMLHttpRequest.New()

Why doesn’t TJSUInt8Array.new work like you suggested? from what I’m reading the new keyword is like a default constructor that should exist for all objects. I get an error with TJSUInt8Array.new. translation error maybe?

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/TypedArray

arr := TJSUInt8Array.new(100);

Regards,
	Ryan Joseph



More information about the Pas2js mailing list