|
|
|
|
@@ -1,7 +1,7 @@
|
|
|
|
|
=== tests/cases/compiler/typedArrays.ts ===
|
|
|
|
|
|
|
|
|
|
function CreateTypedArrayTypes() {
|
|
|
|
|
>CreateTypedArrayTypes : () => any[]
|
|
|
|
|
>CreateTypedArrayTypes : () => (Int8ArrayConstructor | Uint8ArrayConstructor | Int16ArrayConstructor | Uint16ArrayConstructor | Int32ArrayConstructor | Uint32ArrayConstructor | Float32ArrayConstructor | Float64ArrayConstructor | Uint8ClampedArrayConstructor)[]
|
|
|
|
|
|
|
|
|
|
var typedArrays = [];
|
|
|
|
|
>typedArrays : any[]
|
|
|
|
|
@@ -71,11 +71,11 @@ function CreateTypedArrayTypes() {
|
|
|
|
|
>Uint8ClampedArray : Uint8ClampedArrayConstructor
|
|
|
|
|
|
|
|
|
|
return typedArrays;
|
|
|
|
|
>typedArrays : any[]
|
|
|
|
|
>typedArrays : (Int8ArrayConstructor | Uint8ArrayConstructor | Int16ArrayConstructor | Uint16ArrayConstructor | Int32ArrayConstructor | Uint32ArrayConstructor | Float32ArrayConstructor | Float64ArrayConstructor | Uint8ClampedArrayConstructor)[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function CreateTypedArrayInstancesFromLength(obj: number) {
|
|
|
|
|
>CreateTypedArrayInstancesFromLength : (obj: number) => any[]
|
|
|
|
|
>CreateTypedArrayInstancesFromLength : (obj: number) => (Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array)[]
|
|
|
|
|
>obj : number
|
|
|
|
|
|
|
|
|
|
var typedArrays = [];
|
|
|
|
|
@@ -164,11 +164,11 @@ function CreateTypedArrayInstancesFromLength(obj: number) {
|
|
|
|
|
>obj : number
|
|
|
|
|
|
|
|
|
|
return typedArrays;
|
|
|
|
|
>typedArrays : any[]
|
|
|
|
|
>typedArrays : (Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array)[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function CreateTypedArrayInstancesFromArray(obj: number[]) {
|
|
|
|
|
>CreateTypedArrayInstancesFromArray : (obj: number[]) => any[]
|
|
|
|
|
>CreateTypedArrayInstancesFromArray : (obj: number[]) => (Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array)[]
|
|
|
|
|
>obj : number[]
|
|
|
|
|
|
|
|
|
|
var typedArrays = [];
|
|
|
|
|
@@ -257,11 +257,11 @@ function CreateTypedArrayInstancesFromArray(obj: number[]) {
|
|
|
|
|
>obj : number[]
|
|
|
|
|
|
|
|
|
|
return typedArrays;
|
|
|
|
|
>typedArrays : any[]
|
|
|
|
|
>typedArrays : (Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array)[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function CreateIntegerTypedArraysFromArray2(obj:number[]) {
|
|
|
|
|
>CreateIntegerTypedArraysFromArray2 : (obj: number[]) => any[]
|
|
|
|
|
>CreateIntegerTypedArraysFromArray2 : (obj: number[]) => (Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array)[]
|
|
|
|
|
>obj : number[]
|
|
|
|
|
|
|
|
|
|
var typedArrays = [];
|
|
|
|
|
@@ -368,11 +368,11 @@ function CreateIntegerTypedArraysFromArray2(obj:number[]) {
|
|
|
|
|
>obj : number[]
|
|
|
|
|
|
|
|
|
|
return typedArrays;
|
|
|
|
|
>typedArrays : any[]
|
|
|
|
|
>typedArrays : (Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array)[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function CreateIntegerTypedArraysFromArrayLike(obj:ArrayLike<number>) {
|
|
|
|
|
>CreateIntegerTypedArraysFromArrayLike : (obj: ArrayLike<number>) => any[]
|
|
|
|
|
>CreateIntegerTypedArraysFromArrayLike : (obj: ArrayLike<number>) => (Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array)[]
|
|
|
|
|
>obj : ArrayLike<number>
|
|
|
|
|
>ArrayLike : ArrayLike<T>
|
|
|
|
|
|
|
|
|
|
@@ -480,11 +480,11 @@ function CreateIntegerTypedArraysFromArrayLike(obj:ArrayLike<number>) {
|
|
|
|
|
>obj : ArrayLike<number>
|
|
|
|
|
|
|
|
|
|
return typedArrays;
|
|
|
|
|
>typedArrays : any[]
|
|
|
|
|
>typedArrays : (Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array)[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function CreateTypedArraysOf(obj) {
|
|
|
|
|
>CreateTypedArraysOf : (obj: any) => any[]
|
|
|
|
|
>CreateTypedArraysOf : (obj: any) => (Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array)[]
|
|
|
|
|
>obj : any
|
|
|
|
|
|
|
|
|
|
var typedArrays = [];
|
|
|
|
|
@@ -600,11 +600,11 @@ function CreateTypedArraysOf(obj) {
|
|
|
|
|
>obj : any
|
|
|
|
|
|
|
|
|
|
return typedArrays;
|
|
|
|
|
>typedArrays : any[]
|
|
|
|
|
>typedArrays : (Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array)[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function CreateTypedArraysOf2() {
|
|
|
|
|
>CreateTypedArraysOf2 : () => any[]
|
|
|
|
|
>CreateTypedArraysOf2 : () => (Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array)[]
|
|
|
|
|
|
|
|
|
|
var typedArrays = [];
|
|
|
|
|
>typedArrays : any[]
|
|
|
|
|
@@ -737,11 +737,11 @@ function CreateTypedArraysOf2() {
|
|
|
|
|
>4 : 4
|
|
|
|
|
|
|
|
|
|
return typedArrays;
|
|
|
|
|
>typedArrays : any[]
|
|
|
|
|
>typedArrays : (Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array)[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function CreateTypedArraysFromMapFn(obj:ArrayLike<number>, mapFn: (n:number, v:number)=> number) {
|
|
|
|
|
>CreateTypedArraysFromMapFn : (obj: ArrayLike<number>, mapFn: (n: number, v: number) => number) => any[]
|
|
|
|
|
>CreateTypedArraysFromMapFn : (obj: ArrayLike<number>, mapFn: (n: number, v: number) => number) => (Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array)[]
|
|
|
|
|
>obj : ArrayLike<number>
|
|
|
|
|
>ArrayLike : ArrayLike<T>
|
|
|
|
|
>mapFn : (n: number, v: number) => number
|
|
|
|
|
@@ -861,11 +861,11 @@ function CreateTypedArraysFromMapFn(obj:ArrayLike<number>, mapFn: (n:number, v:n
|
|
|
|
|
>mapFn : (n: number, v: number) => number
|
|
|
|
|
|
|
|
|
|
return typedArrays;
|
|
|
|
|
>typedArrays : any[]
|
|
|
|
|
>typedArrays : (Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array)[]
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function CreateTypedArraysFromThisObj(obj:ArrayLike<number>, mapFn: (n:number, v:number)=> number, thisArg: {}) {
|
|
|
|
|
>CreateTypedArraysFromThisObj : (obj: ArrayLike<number>, mapFn: (n: number, v: number) => number, thisArg: {}) => any[]
|
|
|
|
|
>CreateTypedArraysFromThisObj : (obj: ArrayLike<number>, mapFn: (n: number, v: number) => number, thisArg: {}) => (Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array)[]
|
|
|
|
|
>obj : ArrayLike<number>
|
|
|
|
|
>ArrayLike : ArrayLike<T>
|
|
|
|
|
>mapFn : (n: number, v: number) => number
|
|
|
|
|
@@ -995,5 +995,5 @@ function CreateTypedArraysFromThisObj(obj:ArrayLike<number>, mapFn: (n:number, v
|
|
|
|
|
>thisArg : {}
|
|
|
|
|
|
|
|
|
|
return typedArrays;
|
|
|
|
|
>typedArrays : any[]
|
|
|
|
|
>typedArrays : (Int8Array | Uint8Array | Uint8ClampedArray | Int16Array | Uint16Array | Int32Array | Uint32Array | Float32Array | Float64Array)[]
|
|
|
|
|
}
|
|
|
|
|
|