[Pas2js] Random bugs and observations

Ryan Joseph ryan at thealchemistguild.com
Fri May 11 10:02:33 CEST 2018



> On May 11, 2018, at 1:41 PM, Mattias Gaertner <nc-gaertnma at netcologne.de> wrote:
> 
>> 11) browser says UInt8Array is not defined. Is that a problem with pas2js not importing something?
> 
> No.

Actually this is a translation error. The name is ‘Uint8Array’ not ‘UInt8Array'

  TJSUint8Array  = class external name 'Uint8Array' (TJSTypedArray)

Additionally the “set" method was prefixed with _ but the external name not set properly. Needs a  external name 'set’; added.

    procedure _set(anArray : TJSTypedArray); overload
    procedure _set(anArray : TJSTypedArray; anOffset : NativeInt); overload;
    procedure _set(anArray : TJSArray; anOffset : NativeInt); overload;

Regards,
	Ryan Joseph



More information about the Pas2js mailing list