[Pas2js] pas2js Webgl unit committed

Michael Van Canneyt michael at freepascal.org
Thu May 10 05:59:51 CEST 2018



On Thu, 10 May 2018, Ryan Joseph wrote:

>
>
>> 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);

Yes. See the earlier exchange of mails to the effect that we need to
move/copy some methods.

Michael.


More information about the Pas2js mailing list