[Pas2js] Random bugs and observations
Michael Van Canneyt
michael at freepascal.org
Fri May 11 10:21:59 CEST 2018
On Fri, 11 May 2018, Ryan Joseph wrote:
>
>
>> 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)
Fixed. int16 and int32 had the same problem as well as int8clamped.
>
> 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;
Fixed, also fixed '_of'
Michael.
More information about the Pas2js
mailing list