Pārlūkot izejas kodu

* Additional constructors for typed arrays

Michael Van Canneyt 1 mēnesi atpakaļ
vecāks
revīzija
15f58fcc75
1 mainītis faili ar 16 papildinājumiem un 0 dzēšanām
  1. 16 0
      packages/rtl/src/js.pas

+ 16 - 0
packages/rtl/src/js.pas

@@ -646,6 +646,8 @@ type
   public
     constructor new (length : NativeInt);
     constructor new (atypedArray : TJSTypedArray);
+    constructor new (aArray : TJSValueDynArray);
+    constructor new (aArray : TJSArray);
     constructor new (aObject : TJSObject);
     constructor new (buffer : TJSAbstractArrayBuffer);
     constructor new (buffer : TJSAbstractArrayBuffer; aByteOffset: NativeInt);
@@ -668,6 +670,8 @@ type
   public
     constructor new (length : NativeInt);
     constructor new (atypedArray : TJSTypedArray);
+    constructor new (aArray : TJSValueDynArray);
+    constructor new (aArray : TJSArray);
     constructor new (aObject : TJSObject);
     constructor new (buffer : TJSAbstractArrayBuffer);
     constructor new (buffer : TJSAbstractArrayBuffer; aByteOffset: NativeInt);
@@ -690,6 +694,8 @@ type
   public
     constructor new (length : NativeInt);
     constructor new (atypedArray : TJSTypedArray);
+    constructor new (aArray : TJSValueDynArray);
+    constructor new (aArray : TJSArray);
     constructor new (aObject : TJSObject);
     constructor new (buffer : TJSAbstractArrayBuffer);
     constructor new (buffer : TJSAbstractArrayBuffer; aByteOffset: NativeInt);
@@ -712,6 +718,8 @@ type
   public
     constructor new (length : NativeInt);
     constructor new (atypedArray : TJSTypedArray);
+    constructor new (aArray : TJSValueDynArray);
+    constructor new (aArray : TJSArray);
     constructor new (aObject : TJSObject);
     constructor new (buffer : TJSAbstractArrayBuffer);
     constructor new (buffer : TJSAbstractArrayBuffer; aByteOffset: NativeInt);
@@ -734,6 +742,8 @@ type
   public
     constructor new (length : NativeInt);
     constructor new (atypedArray : TJSTypedArray);
+    constructor new (aArray : TJSValueDynArray);
+    constructor new (aArray : TJSArray);
     constructor new (aObject : TJSObject);
     constructor new (buffer : TJSAbstractArrayBuffer);
     constructor new (buffer : TJSAbstractArrayBuffer; aByteOffset: NativeInt);
@@ -756,6 +766,8 @@ type
   public
     constructor new (length : NativeInt);
     constructor new (atypedArray : TJSTypedArray);
+    constructor new (aArray : TJSValueDynArray);
+    constructor new (aArray : TJSArray);
     constructor new (aObject : TJSObject);
     constructor new (buffer : TJSAbstractArrayBuffer);
     constructor new (buffer : TJSAbstractArrayBuffer; aByteOffset: NativeInt);
@@ -778,6 +790,8 @@ type
   public
     constructor new (length : NativeInt);
     constructor new (atypedArray : TJSTypedArray);
+    constructor new (aArray : TJSValueDynArray);
+    constructor new (aArray : TJSArray);
     constructor new (aObject : TJSObject);
     constructor new (buffer : TJSAbstractArrayBuffer);
     constructor new (buffer : TJSAbstractArrayBuffer; aByteOffset: NativeInt);
@@ -800,6 +814,8 @@ type
   public
     constructor new (length : NativeInt);
     constructor new (atypedArray : TJSTypedArray);
+    constructor new (aArray : TJSValueDynArray);
+    constructor new (aArray : TJSArray);
     constructor new (aObject : TJSObject);
     constructor new (buffer : TJSAbstractArrayBuffer);
     constructor new (buffer : TJSAbstractArrayBuffer; aByteOffset: NativeInt);