573 lines
29 KiB
Text
573 lines
29 KiB
Text
=== tests/cases/compiler/typedArrays.ts ===
|
|
|
|
function CreateTypedArrayTypes() {
|
|
>CreateTypedArrayTypes : Symbol(CreateTypedArrayTypes, Decl(typedArrays.ts, 0, 0))
|
|
|
|
var typedArrays = [];
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 2, 7))
|
|
|
|
typedArrays[0] = Int8Array;
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 2, 7))
|
|
>Int8Array : Symbol(Int8Array, Decl(lib.d.ts, 2104, 42), Decl(lib.d.ts, 2394, 11))
|
|
|
|
typedArrays[1] = Uint8Array;
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 2, 7))
|
|
>Uint8Array : Symbol(Uint8Array, Decl(lib.d.ts, 2394, 44), Decl(lib.d.ts, 2684, 11))
|
|
|
|
typedArrays[2] = Int16Array;
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 2, 7))
|
|
>Int16Array : Symbol(Int16Array, Decl(lib.d.ts, 2974, 60), Decl(lib.d.ts, 3264, 11))
|
|
|
|
typedArrays[3] = Uint16Array;
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 2, 7))
|
|
>Uint16Array : Symbol(Uint16Array, Decl(lib.d.ts, 3264, 46), Decl(lib.d.ts, 3554, 11))
|
|
|
|
typedArrays[4] = Int32Array;
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 2, 7))
|
|
>Int32Array : Symbol(Int32Array, Decl(lib.d.ts, 3554, 48), Decl(lib.d.ts, 3844, 11))
|
|
|
|
typedArrays[5] = Uint32Array;
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 2, 7))
|
|
>Uint32Array : Symbol(Uint32Array, Decl(lib.d.ts, 3844, 46), Decl(lib.d.ts, 4134, 11))
|
|
|
|
typedArrays[6] = Float32Array;
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 2, 7))
|
|
>Float32Array : Symbol(Float32Array, Decl(lib.d.ts, 4134, 48), Decl(lib.d.ts, 4424, 11))
|
|
|
|
typedArrays[7] = Float64Array;
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 2, 7))
|
|
>Float64Array : Symbol(Float64Array, Decl(lib.d.ts, 4424, 50), Decl(lib.d.ts, 4714, 11))
|
|
|
|
typedArrays[8] = Uint8ClampedArray;
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 2, 7))
|
|
>Uint8ClampedArray : Symbol(Uint8ClampedArray, Decl(lib.d.ts, 2684, 46), Decl(lib.d.ts, 2974, 11))
|
|
|
|
return typedArrays;
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 2, 7))
|
|
}
|
|
|
|
function CreateTypedArrayInstancesFromLength(obj: number) {
|
|
>CreateTypedArrayInstancesFromLength : Symbol(CreateTypedArrayInstancesFromLength, Decl(typedArrays.ts, 14, 1))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 16, 45))
|
|
|
|
var typedArrays = [];
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 17, 7))
|
|
|
|
typedArrays[0] = new Int8Array(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 17, 7))
|
|
>Int8Array : Symbol(Int8Array, Decl(lib.d.ts, 2104, 42), Decl(lib.d.ts, 2394, 11))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 16, 45))
|
|
|
|
typedArrays[1] = new Uint8Array(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 17, 7))
|
|
>Uint8Array : Symbol(Uint8Array, Decl(lib.d.ts, 2394, 44), Decl(lib.d.ts, 2684, 11))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 16, 45))
|
|
|
|
typedArrays[2] = new Int16Array(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 17, 7))
|
|
>Int16Array : Symbol(Int16Array, Decl(lib.d.ts, 2974, 60), Decl(lib.d.ts, 3264, 11))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 16, 45))
|
|
|
|
typedArrays[3] = new Uint16Array(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 17, 7))
|
|
>Uint16Array : Symbol(Uint16Array, Decl(lib.d.ts, 3264, 46), Decl(lib.d.ts, 3554, 11))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 16, 45))
|
|
|
|
typedArrays[4] = new Int32Array(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 17, 7))
|
|
>Int32Array : Symbol(Int32Array, Decl(lib.d.ts, 3554, 48), Decl(lib.d.ts, 3844, 11))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 16, 45))
|
|
|
|
typedArrays[5] = new Uint32Array(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 17, 7))
|
|
>Uint32Array : Symbol(Uint32Array, Decl(lib.d.ts, 3844, 46), Decl(lib.d.ts, 4134, 11))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 16, 45))
|
|
|
|
typedArrays[6] = new Float32Array(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 17, 7))
|
|
>Float32Array : Symbol(Float32Array, Decl(lib.d.ts, 4134, 48), Decl(lib.d.ts, 4424, 11))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 16, 45))
|
|
|
|
typedArrays[7] = new Float64Array(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 17, 7))
|
|
>Float64Array : Symbol(Float64Array, Decl(lib.d.ts, 4424, 50), Decl(lib.d.ts, 4714, 11))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 16, 45))
|
|
|
|
typedArrays[8] = new Uint8ClampedArray(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 17, 7))
|
|
>Uint8ClampedArray : Symbol(Uint8ClampedArray, Decl(lib.d.ts, 2684, 46), Decl(lib.d.ts, 2974, 11))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 16, 45))
|
|
|
|
return typedArrays;
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 17, 7))
|
|
}
|
|
|
|
function CreateTypedArrayInstancesFromArray(obj: number[]) {
|
|
>CreateTypedArrayInstancesFromArray : Symbol(CreateTypedArrayInstancesFromArray, Decl(typedArrays.ts, 29, 1))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 31, 44))
|
|
|
|
var typedArrays = [];
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 32, 7))
|
|
|
|
typedArrays[0] = new Int8Array(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 32, 7))
|
|
>Int8Array : Symbol(Int8Array, Decl(lib.d.ts, 2104, 42), Decl(lib.d.ts, 2394, 11))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 31, 44))
|
|
|
|
typedArrays[1] = new Uint8Array(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 32, 7))
|
|
>Uint8Array : Symbol(Uint8Array, Decl(lib.d.ts, 2394, 44), Decl(lib.d.ts, 2684, 11))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 31, 44))
|
|
|
|
typedArrays[2] = new Int16Array(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 32, 7))
|
|
>Int16Array : Symbol(Int16Array, Decl(lib.d.ts, 2974, 60), Decl(lib.d.ts, 3264, 11))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 31, 44))
|
|
|
|
typedArrays[3] = new Uint16Array(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 32, 7))
|
|
>Uint16Array : Symbol(Uint16Array, Decl(lib.d.ts, 3264, 46), Decl(lib.d.ts, 3554, 11))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 31, 44))
|
|
|
|
typedArrays[4] = new Int32Array(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 32, 7))
|
|
>Int32Array : Symbol(Int32Array, Decl(lib.d.ts, 3554, 48), Decl(lib.d.ts, 3844, 11))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 31, 44))
|
|
|
|
typedArrays[5] = new Uint32Array(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 32, 7))
|
|
>Uint32Array : Symbol(Uint32Array, Decl(lib.d.ts, 3844, 46), Decl(lib.d.ts, 4134, 11))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 31, 44))
|
|
|
|
typedArrays[6] = new Float32Array(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 32, 7))
|
|
>Float32Array : Symbol(Float32Array, Decl(lib.d.ts, 4134, 48), Decl(lib.d.ts, 4424, 11))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 31, 44))
|
|
|
|
typedArrays[7] = new Float64Array(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 32, 7))
|
|
>Float64Array : Symbol(Float64Array, Decl(lib.d.ts, 4424, 50), Decl(lib.d.ts, 4714, 11))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 31, 44))
|
|
|
|
typedArrays[8] = new Uint8ClampedArray(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 32, 7))
|
|
>Uint8ClampedArray : Symbol(Uint8ClampedArray, Decl(lib.d.ts, 2684, 46), Decl(lib.d.ts, 2974, 11))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 31, 44))
|
|
|
|
return typedArrays;
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 32, 7))
|
|
}
|
|
|
|
function CreateIntegerTypedArraysFromArray2(obj:number[]) {
|
|
>CreateIntegerTypedArraysFromArray2 : Symbol(CreateIntegerTypedArraysFromArray2, Decl(typedArrays.ts, 44, 1))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 46, 44))
|
|
|
|
var typedArrays = [];
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 47, 7))
|
|
|
|
typedArrays[0] = Int8Array.from(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 47, 7))
|
|
>Int8Array.from : Symbol(Int8ArrayConstructor.from, Decl(lib.d.ts, 2384, 38))
|
|
>Int8Array : Symbol(Int8Array, Decl(lib.d.ts, 2104, 42), Decl(lib.d.ts, 2394, 11))
|
|
>from : Symbol(Int8ArrayConstructor.from, Decl(lib.d.ts, 2384, 38))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 46, 44))
|
|
|
|
typedArrays[1] = Uint8Array.from(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 47, 7))
|
|
>Uint8Array.from : Symbol(Uint8ArrayConstructor.from, Decl(lib.d.ts, 2674, 39))
|
|
>Uint8Array : Symbol(Uint8Array, Decl(lib.d.ts, 2394, 44), Decl(lib.d.ts, 2684, 11))
|
|
>from : Symbol(Uint8ArrayConstructor.from, Decl(lib.d.ts, 2674, 39))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 46, 44))
|
|
|
|
typedArrays[2] = Int16Array.from(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 47, 7))
|
|
>Int16Array.from : Symbol(Int16ArrayConstructor.from, Decl(lib.d.ts, 3254, 39))
|
|
>Int16Array : Symbol(Int16Array, Decl(lib.d.ts, 2974, 60), Decl(lib.d.ts, 3264, 11))
|
|
>from : Symbol(Int16ArrayConstructor.from, Decl(lib.d.ts, 3254, 39))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 46, 44))
|
|
|
|
typedArrays[3] = Uint16Array.from(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 47, 7))
|
|
>Uint16Array.from : Symbol(Uint16ArrayConstructor.from, Decl(lib.d.ts, 3544, 40))
|
|
>Uint16Array : Symbol(Uint16Array, Decl(lib.d.ts, 3264, 46), Decl(lib.d.ts, 3554, 11))
|
|
>from : Symbol(Uint16ArrayConstructor.from, Decl(lib.d.ts, 3544, 40))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 46, 44))
|
|
|
|
typedArrays[4] = Int32Array.from(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 47, 7))
|
|
>Int32Array.from : Symbol(Int32ArrayConstructor.from, Decl(lib.d.ts, 3834, 39))
|
|
>Int32Array : Symbol(Int32Array, Decl(lib.d.ts, 3554, 48), Decl(lib.d.ts, 3844, 11))
|
|
>from : Symbol(Int32ArrayConstructor.from, Decl(lib.d.ts, 3834, 39))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 46, 44))
|
|
|
|
typedArrays[5] = Uint32Array.from(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 47, 7))
|
|
>Uint32Array.from : Symbol(Uint32ArrayConstructor.from, Decl(lib.d.ts, 4124, 40))
|
|
>Uint32Array : Symbol(Uint32Array, Decl(lib.d.ts, 3844, 46), Decl(lib.d.ts, 4134, 11))
|
|
>from : Symbol(Uint32ArrayConstructor.from, Decl(lib.d.ts, 4124, 40))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 46, 44))
|
|
|
|
typedArrays[6] = Float32Array.from(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 47, 7))
|
|
>Float32Array.from : Symbol(Float32ArrayConstructor.from, Decl(lib.d.ts, 4414, 41))
|
|
>Float32Array : Symbol(Float32Array, Decl(lib.d.ts, 4134, 48), Decl(lib.d.ts, 4424, 11))
|
|
>from : Symbol(Float32ArrayConstructor.from, Decl(lib.d.ts, 4414, 41))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 46, 44))
|
|
|
|
typedArrays[7] = Float64Array.from(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 47, 7))
|
|
>Float64Array.from : Symbol(Float64ArrayConstructor.from, Decl(lib.d.ts, 4704, 41))
|
|
>Float64Array : Symbol(Float64Array, Decl(lib.d.ts, 4424, 50), Decl(lib.d.ts, 4714, 11))
|
|
>from : Symbol(Float64ArrayConstructor.from, Decl(lib.d.ts, 4704, 41))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 46, 44))
|
|
|
|
typedArrays[8] = Uint8ClampedArray.from(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 47, 7))
|
|
>Uint8ClampedArray.from : Symbol(Uint8ClampedArrayConstructor.from, Decl(lib.d.ts, 2964, 46))
|
|
>Uint8ClampedArray : Symbol(Uint8ClampedArray, Decl(lib.d.ts, 2684, 46), Decl(lib.d.ts, 2974, 11))
|
|
>from : Symbol(Uint8ClampedArrayConstructor.from, Decl(lib.d.ts, 2964, 46))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 46, 44))
|
|
|
|
return typedArrays;
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 47, 7))
|
|
}
|
|
|
|
function CreateIntegerTypedArraysFromArrayLike(obj:ArrayLike<number>) {
|
|
>CreateIntegerTypedArraysFromArrayLike : Symbol(CreateIntegerTypedArraysFromArrayLike, Decl(typedArrays.ts, 59, 1))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 61, 47))
|
|
>ArrayLike : Symbol(ArrayLike, Decl(lib.d.ts, 1434, 1))
|
|
|
|
var typedArrays = [];
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 62, 7))
|
|
|
|
typedArrays[0] = Int8Array.from(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 62, 7))
|
|
>Int8Array.from : Symbol(Int8ArrayConstructor.from, Decl(lib.d.ts, 2384, 38))
|
|
>Int8Array : Symbol(Int8Array, Decl(lib.d.ts, 2104, 42), Decl(lib.d.ts, 2394, 11))
|
|
>from : Symbol(Int8ArrayConstructor.from, Decl(lib.d.ts, 2384, 38))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 61, 47))
|
|
|
|
typedArrays[1] = Uint8Array.from(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 62, 7))
|
|
>Uint8Array.from : Symbol(Uint8ArrayConstructor.from, Decl(lib.d.ts, 2674, 39))
|
|
>Uint8Array : Symbol(Uint8Array, Decl(lib.d.ts, 2394, 44), Decl(lib.d.ts, 2684, 11))
|
|
>from : Symbol(Uint8ArrayConstructor.from, Decl(lib.d.ts, 2674, 39))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 61, 47))
|
|
|
|
typedArrays[2] = Int16Array.from(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 62, 7))
|
|
>Int16Array.from : Symbol(Int16ArrayConstructor.from, Decl(lib.d.ts, 3254, 39))
|
|
>Int16Array : Symbol(Int16Array, Decl(lib.d.ts, 2974, 60), Decl(lib.d.ts, 3264, 11))
|
|
>from : Symbol(Int16ArrayConstructor.from, Decl(lib.d.ts, 3254, 39))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 61, 47))
|
|
|
|
typedArrays[3] = Uint16Array.from(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 62, 7))
|
|
>Uint16Array.from : Symbol(Uint16ArrayConstructor.from, Decl(lib.d.ts, 3544, 40))
|
|
>Uint16Array : Symbol(Uint16Array, Decl(lib.d.ts, 3264, 46), Decl(lib.d.ts, 3554, 11))
|
|
>from : Symbol(Uint16ArrayConstructor.from, Decl(lib.d.ts, 3544, 40))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 61, 47))
|
|
|
|
typedArrays[4] = Int32Array.from(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 62, 7))
|
|
>Int32Array.from : Symbol(Int32ArrayConstructor.from, Decl(lib.d.ts, 3834, 39))
|
|
>Int32Array : Symbol(Int32Array, Decl(lib.d.ts, 3554, 48), Decl(lib.d.ts, 3844, 11))
|
|
>from : Symbol(Int32ArrayConstructor.from, Decl(lib.d.ts, 3834, 39))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 61, 47))
|
|
|
|
typedArrays[5] = Uint32Array.from(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 62, 7))
|
|
>Uint32Array.from : Symbol(Uint32ArrayConstructor.from, Decl(lib.d.ts, 4124, 40))
|
|
>Uint32Array : Symbol(Uint32Array, Decl(lib.d.ts, 3844, 46), Decl(lib.d.ts, 4134, 11))
|
|
>from : Symbol(Uint32ArrayConstructor.from, Decl(lib.d.ts, 4124, 40))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 61, 47))
|
|
|
|
typedArrays[6] = Float32Array.from(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 62, 7))
|
|
>Float32Array.from : Symbol(Float32ArrayConstructor.from, Decl(lib.d.ts, 4414, 41))
|
|
>Float32Array : Symbol(Float32Array, Decl(lib.d.ts, 4134, 48), Decl(lib.d.ts, 4424, 11))
|
|
>from : Symbol(Float32ArrayConstructor.from, Decl(lib.d.ts, 4414, 41))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 61, 47))
|
|
|
|
typedArrays[7] = Float64Array.from(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 62, 7))
|
|
>Float64Array.from : Symbol(Float64ArrayConstructor.from, Decl(lib.d.ts, 4704, 41))
|
|
>Float64Array : Symbol(Float64Array, Decl(lib.d.ts, 4424, 50), Decl(lib.d.ts, 4714, 11))
|
|
>from : Symbol(Float64ArrayConstructor.from, Decl(lib.d.ts, 4704, 41))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 61, 47))
|
|
|
|
typedArrays[8] = Uint8ClampedArray.from(obj);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 62, 7))
|
|
>Uint8ClampedArray.from : Symbol(Uint8ClampedArrayConstructor.from, Decl(lib.d.ts, 2964, 46))
|
|
>Uint8ClampedArray : Symbol(Uint8ClampedArray, Decl(lib.d.ts, 2684, 46), Decl(lib.d.ts, 2974, 11))
|
|
>from : Symbol(Uint8ClampedArrayConstructor.from, Decl(lib.d.ts, 2964, 46))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 61, 47))
|
|
|
|
return typedArrays;
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 62, 7))
|
|
}
|
|
|
|
/*
|
|
function CreateTypedArraysOf(obj) {
|
|
var typedArrays = [];
|
|
typedArrays[0] = Int8Array.of(...obj);
|
|
typedArrays[1] = Uint8Array.of(...obj);
|
|
typedArrays[2] = Int16Array.of(...obj);
|
|
typedArrays[3] = Uint16Array.of(...obj);
|
|
typedArrays[4] = Int32Array.of(...obj);
|
|
typedArrays[5] = Uint32Array.of(...obj);
|
|
typedArrays[6] = Float32Array.of(...obj);
|
|
typedArrays[7] = Float64Array.of(...obj);
|
|
typedArrays[8] = Uint8ClampedArray.of(...obj);
|
|
|
|
return typedArrays;
|
|
}
|
|
*/
|
|
|
|
function CreateTypedArraysOf2() {
|
|
>CreateTypedArraysOf2 : Symbol(CreateTypedArraysOf2, Decl(typedArrays.ts, 74, 1))
|
|
|
|
var typedArrays = [];
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 94, 7))
|
|
|
|
typedArrays[0] = Int8Array.of(1,2,3,4);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 94, 7))
|
|
>Int8Array.of : Symbol(Int8ArrayConstructor.of, Decl(lib.d.ts, 2378, 30))
|
|
>Int8Array : Symbol(Int8Array, Decl(lib.d.ts, 2104, 42), Decl(lib.d.ts, 2394, 11))
|
|
>of : Symbol(Int8ArrayConstructor.of, Decl(lib.d.ts, 2378, 30))
|
|
|
|
typedArrays[1] = Uint8Array.of(1,2,3,4);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 94, 7))
|
|
>Uint8Array.of : Symbol(Uint8ArrayConstructor.of, Decl(lib.d.ts, 2668, 30))
|
|
>Uint8Array : Symbol(Uint8Array, Decl(lib.d.ts, 2394, 44), Decl(lib.d.ts, 2684, 11))
|
|
>of : Symbol(Uint8ArrayConstructor.of, Decl(lib.d.ts, 2668, 30))
|
|
|
|
typedArrays[2] = Int16Array.of(1,2,3,4);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 94, 7))
|
|
>Int16Array.of : Symbol(Int16ArrayConstructor.of, Decl(lib.d.ts, 3248, 30))
|
|
>Int16Array : Symbol(Int16Array, Decl(lib.d.ts, 2974, 60), Decl(lib.d.ts, 3264, 11))
|
|
>of : Symbol(Int16ArrayConstructor.of, Decl(lib.d.ts, 3248, 30))
|
|
|
|
typedArrays[3] = Uint16Array.of(1,2,3,4);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 94, 7))
|
|
>Uint16Array.of : Symbol(Uint16ArrayConstructor.of, Decl(lib.d.ts, 3538, 30))
|
|
>Uint16Array : Symbol(Uint16Array, Decl(lib.d.ts, 3264, 46), Decl(lib.d.ts, 3554, 11))
|
|
>of : Symbol(Uint16ArrayConstructor.of, Decl(lib.d.ts, 3538, 30))
|
|
|
|
typedArrays[4] = Int32Array.of(1,2,3,4);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 94, 7))
|
|
>Int32Array.of : Symbol(Int32ArrayConstructor.of, Decl(lib.d.ts, 3828, 30))
|
|
>Int32Array : Symbol(Int32Array, Decl(lib.d.ts, 3554, 48), Decl(lib.d.ts, 3844, 11))
|
|
>of : Symbol(Int32ArrayConstructor.of, Decl(lib.d.ts, 3828, 30))
|
|
|
|
typedArrays[5] = Uint32Array.of(1,2,3,4);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 94, 7))
|
|
>Uint32Array.of : Symbol(Uint32ArrayConstructor.of, Decl(lib.d.ts, 4118, 30))
|
|
>Uint32Array : Symbol(Uint32Array, Decl(lib.d.ts, 3844, 46), Decl(lib.d.ts, 4134, 11))
|
|
>of : Symbol(Uint32ArrayConstructor.of, Decl(lib.d.ts, 4118, 30))
|
|
|
|
typedArrays[6] = Float32Array.of(1,2,3,4);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 94, 7))
|
|
>Float32Array.of : Symbol(Float32ArrayConstructor.of, Decl(lib.d.ts, 4408, 30))
|
|
>Float32Array : Symbol(Float32Array, Decl(lib.d.ts, 4134, 48), Decl(lib.d.ts, 4424, 11))
|
|
>of : Symbol(Float32ArrayConstructor.of, Decl(lib.d.ts, 4408, 30))
|
|
|
|
typedArrays[7] = Float64Array.of(1,2,3,4);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 94, 7))
|
|
>Float64Array.of : Symbol(Float64ArrayConstructor.of, Decl(lib.d.ts, 4698, 30))
|
|
>Float64Array : Symbol(Float64Array, Decl(lib.d.ts, 4424, 50), Decl(lib.d.ts, 4714, 11))
|
|
>of : Symbol(Float64ArrayConstructor.of, Decl(lib.d.ts, 4698, 30))
|
|
|
|
typedArrays[8] = Uint8ClampedArray.of(1,2,3,4);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 94, 7))
|
|
>Uint8ClampedArray.of : Symbol(Uint8ClampedArrayConstructor.of, Decl(lib.d.ts, 2958, 30))
|
|
>Uint8ClampedArray : Symbol(Uint8ClampedArray, Decl(lib.d.ts, 2684, 46), Decl(lib.d.ts, 2974, 11))
|
|
>of : Symbol(Uint8ClampedArrayConstructor.of, Decl(lib.d.ts, 2958, 30))
|
|
|
|
return typedArrays;
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 94, 7))
|
|
}
|
|
|
|
function CreateTypedArraysFromMapFn(obj:ArrayLike<number>, mapFn: (n:number, v:number)=> number) {
|
|
>CreateTypedArraysFromMapFn : Symbol(CreateTypedArraysFromMapFn, Decl(typedArrays.ts, 106, 1))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 108, 36))
|
|
>ArrayLike : Symbol(ArrayLike, Decl(lib.d.ts, 1434, 1))
|
|
>mapFn : Symbol(mapFn, Decl(typedArrays.ts, 108, 58))
|
|
>n : Symbol(n, Decl(typedArrays.ts, 108, 67))
|
|
>v : Symbol(v, Decl(typedArrays.ts, 108, 76))
|
|
|
|
var typedArrays = [];
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 109, 7))
|
|
|
|
typedArrays[0] = Int8Array.from(obj, mapFn);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 109, 7))
|
|
>Int8Array.from : Symbol(Int8ArrayConstructor.from, Decl(lib.d.ts, 2384, 38))
|
|
>Int8Array : Symbol(Int8Array, Decl(lib.d.ts, 2104, 42), Decl(lib.d.ts, 2394, 11))
|
|
>from : Symbol(Int8ArrayConstructor.from, Decl(lib.d.ts, 2384, 38))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 108, 36))
|
|
>mapFn : Symbol(mapFn, Decl(typedArrays.ts, 108, 58))
|
|
|
|
typedArrays[1] = Uint8Array.from(obj, mapFn);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 109, 7))
|
|
>Uint8Array.from : Symbol(Uint8ArrayConstructor.from, Decl(lib.d.ts, 2674, 39))
|
|
>Uint8Array : Symbol(Uint8Array, Decl(lib.d.ts, 2394, 44), Decl(lib.d.ts, 2684, 11))
|
|
>from : Symbol(Uint8ArrayConstructor.from, Decl(lib.d.ts, 2674, 39))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 108, 36))
|
|
>mapFn : Symbol(mapFn, Decl(typedArrays.ts, 108, 58))
|
|
|
|
typedArrays[2] = Int16Array.from(obj, mapFn);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 109, 7))
|
|
>Int16Array.from : Symbol(Int16ArrayConstructor.from, Decl(lib.d.ts, 3254, 39))
|
|
>Int16Array : Symbol(Int16Array, Decl(lib.d.ts, 2974, 60), Decl(lib.d.ts, 3264, 11))
|
|
>from : Symbol(Int16ArrayConstructor.from, Decl(lib.d.ts, 3254, 39))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 108, 36))
|
|
>mapFn : Symbol(mapFn, Decl(typedArrays.ts, 108, 58))
|
|
|
|
typedArrays[3] = Uint16Array.from(obj, mapFn);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 109, 7))
|
|
>Uint16Array.from : Symbol(Uint16ArrayConstructor.from, Decl(lib.d.ts, 3544, 40))
|
|
>Uint16Array : Symbol(Uint16Array, Decl(lib.d.ts, 3264, 46), Decl(lib.d.ts, 3554, 11))
|
|
>from : Symbol(Uint16ArrayConstructor.from, Decl(lib.d.ts, 3544, 40))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 108, 36))
|
|
>mapFn : Symbol(mapFn, Decl(typedArrays.ts, 108, 58))
|
|
|
|
typedArrays[4] = Int32Array.from(obj, mapFn);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 109, 7))
|
|
>Int32Array.from : Symbol(Int32ArrayConstructor.from, Decl(lib.d.ts, 3834, 39))
|
|
>Int32Array : Symbol(Int32Array, Decl(lib.d.ts, 3554, 48), Decl(lib.d.ts, 3844, 11))
|
|
>from : Symbol(Int32ArrayConstructor.from, Decl(lib.d.ts, 3834, 39))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 108, 36))
|
|
>mapFn : Symbol(mapFn, Decl(typedArrays.ts, 108, 58))
|
|
|
|
typedArrays[5] = Uint32Array.from(obj, mapFn);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 109, 7))
|
|
>Uint32Array.from : Symbol(Uint32ArrayConstructor.from, Decl(lib.d.ts, 4124, 40))
|
|
>Uint32Array : Symbol(Uint32Array, Decl(lib.d.ts, 3844, 46), Decl(lib.d.ts, 4134, 11))
|
|
>from : Symbol(Uint32ArrayConstructor.from, Decl(lib.d.ts, 4124, 40))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 108, 36))
|
|
>mapFn : Symbol(mapFn, Decl(typedArrays.ts, 108, 58))
|
|
|
|
typedArrays[6] = Float32Array.from(obj, mapFn);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 109, 7))
|
|
>Float32Array.from : Symbol(Float32ArrayConstructor.from, Decl(lib.d.ts, 4414, 41))
|
|
>Float32Array : Symbol(Float32Array, Decl(lib.d.ts, 4134, 48), Decl(lib.d.ts, 4424, 11))
|
|
>from : Symbol(Float32ArrayConstructor.from, Decl(lib.d.ts, 4414, 41))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 108, 36))
|
|
>mapFn : Symbol(mapFn, Decl(typedArrays.ts, 108, 58))
|
|
|
|
typedArrays[7] = Float64Array.from(obj, mapFn);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 109, 7))
|
|
>Float64Array.from : Symbol(Float64ArrayConstructor.from, Decl(lib.d.ts, 4704, 41))
|
|
>Float64Array : Symbol(Float64Array, Decl(lib.d.ts, 4424, 50), Decl(lib.d.ts, 4714, 11))
|
|
>from : Symbol(Float64ArrayConstructor.from, Decl(lib.d.ts, 4704, 41))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 108, 36))
|
|
>mapFn : Symbol(mapFn, Decl(typedArrays.ts, 108, 58))
|
|
|
|
typedArrays[8] = Uint8ClampedArray.from(obj, mapFn);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 109, 7))
|
|
>Uint8ClampedArray.from : Symbol(Uint8ClampedArrayConstructor.from, Decl(lib.d.ts, 2964, 46))
|
|
>Uint8ClampedArray : Symbol(Uint8ClampedArray, Decl(lib.d.ts, 2684, 46), Decl(lib.d.ts, 2974, 11))
|
|
>from : Symbol(Uint8ClampedArrayConstructor.from, Decl(lib.d.ts, 2964, 46))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 108, 36))
|
|
>mapFn : Symbol(mapFn, Decl(typedArrays.ts, 108, 58))
|
|
|
|
return typedArrays;
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 109, 7))
|
|
}
|
|
|
|
function CreateTypedArraysFromThisObj(obj:ArrayLike<number>, mapFn: (n:number, v:number)=> number, thisArg: {}) {
|
|
>CreateTypedArraysFromThisObj : Symbol(CreateTypedArraysFromThisObj, Decl(typedArrays.ts, 121, 1))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 123, 38))
|
|
>ArrayLike : Symbol(ArrayLike, Decl(lib.d.ts, 1434, 1))
|
|
>mapFn : Symbol(mapFn, Decl(typedArrays.ts, 123, 60))
|
|
>n : Symbol(n, Decl(typedArrays.ts, 123, 69))
|
|
>v : Symbol(v, Decl(typedArrays.ts, 123, 78))
|
|
>thisArg : Symbol(thisArg, Decl(typedArrays.ts, 123, 98))
|
|
|
|
var typedArrays = [];
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 124, 7))
|
|
|
|
typedArrays[0] = Int8Array.from(obj, mapFn, thisArg);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 124, 7))
|
|
>Int8Array.from : Symbol(Int8ArrayConstructor.from, Decl(lib.d.ts, 2384, 38))
|
|
>Int8Array : Symbol(Int8Array, Decl(lib.d.ts, 2104, 42), Decl(lib.d.ts, 2394, 11))
|
|
>from : Symbol(Int8ArrayConstructor.from, Decl(lib.d.ts, 2384, 38))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 123, 38))
|
|
>mapFn : Symbol(mapFn, Decl(typedArrays.ts, 123, 60))
|
|
>thisArg : Symbol(thisArg, Decl(typedArrays.ts, 123, 98))
|
|
|
|
typedArrays[1] = Uint8Array.from(obj, mapFn, thisArg);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 124, 7))
|
|
>Uint8Array.from : Symbol(Uint8ArrayConstructor.from, Decl(lib.d.ts, 2674, 39))
|
|
>Uint8Array : Symbol(Uint8Array, Decl(lib.d.ts, 2394, 44), Decl(lib.d.ts, 2684, 11))
|
|
>from : Symbol(Uint8ArrayConstructor.from, Decl(lib.d.ts, 2674, 39))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 123, 38))
|
|
>mapFn : Symbol(mapFn, Decl(typedArrays.ts, 123, 60))
|
|
>thisArg : Symbol(thisArg, Decl(typedArrays.ts, 123, 98))
|
|
|
|
typedArrays[2] = Int16Array.from(obj, mapFn, thisArg);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 124, 7))
|
|
>Int16Array.from : Symbol(Int16ArrayConstructor.from, Decl(lib.d.ts, 3254, 39))
|
|
>Int16Array : Symbol(Int16Array, Decl(lib.d.ts, 2974, 60), Decl(lib.d.ts, 3264, 11))
|
|
>from : Symbol(Int16ArrayConstructor.from, Decl(lib.d.ts, 3254, 39))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 123, 38))
|
|
>mapFn : Symbol(mapFn, Decl(typedArrays.ts, 123, 60))
|
|
>thisArg : Symbol(thisArg, Decl(typedArrays.ts, 123, 98))
|
|
|
|
typedArrays[3] = Uint16Array.from(obj, mapFn, thisArg);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 124, 7))
|
|
>Uint16Array.from : Symbol(Uint16ArrayConstructor.from, Decl(lib.d.ts, 3544, 40))
|
|
>Uint16Array : Symbol(Uint16Array, Decl(lib.d.ts, 3264, 46), Decl(lib.d.ts, 3554, 11))
|
|
>from : Symbol(Uint16ArrayConstructor.from, Decl(lib.d.ts, 3544, 40))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 123, 38))
|
|
>mapFn : Symbol(mapFn, Decl(typedArrays.ts, 123, 60))
|
|
>thisArg : Symbol(thisArg, Decl(typedArrays.ts, 123, 98))
|
|
|
|
typedArrays[4] = Int32Array.from(obj, mapFn, thisArg);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 124, 7))
|
|
>Int32Array.from : Symbol(Int32ArrayConstructor.from, Decl(lib.d.ts, 3834, 39))
|
|
>Int32Array : Symbol(Int32Array, Decl(lib.d.ts, 3554, 48), Decl(lib.d.ts, 3844, 11))
|
|
>from : Symbol(Int32ArrayConstructor.from, Decl(lib.d.ts, 3834, 39))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 123, 38))
|
|
>mapFn : Symbol(mapFn, Decl(typedArrays.ts, 123, 60))
|
|
>thisArg : Symbol(thisArg, Decl(typedArrays.ts, 123, 98))
|
|
|
|
typedArrays[5] = Uint32Array.from(obj, mapFn, thisArg);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 124, 7))
|
|
>Uint32Array.from : Symbol(Uint32ArrayConstructor.from, Decl(lib.d.ts, 4124, 40))
|
|
>Uint32Array : Symbol(Uint32Array, Decl(lib.d.ts, 3844, 46), Decl(lib.d.ts, 4134, 11))
|
|
>from : Symbol(Uint32ArrayConstructor.from, Decl(lib.d.ts, 4124, 40))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 123, 38))
|
|
>mapFn : Symbol(mapFn, Decl(typedArrays.ts, 123, 60))
|
|
>thisArg : Symbol(thisArg, Decl(typedArrays.ts, 123, 98))
|
|
|
|
typedArrays[6] = Float32Array.from(obj, mapFn, thisArg);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 124, 7))
|
|
>Float32Array.from : Symbol(Float32ArrayConstructor.from, Decl(lib.d.ts, 4414, 41))
|
|
>Float32Array : Symbol(Float32Array, Decl(lib.d.ts, 4134, 48), Decl(lib.d.ts, 4424, 11))
|
|
>from : Symbol(Float32ArrayConstructor.from, Decl(lib.d.ts, 4414, 41))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 123, 38))
|
|
>mapFn : Symbol(mapFn, Decl(typedArrays.ts, 123, 60))
|
|
>thisArg : Symbol(thisArg, Decl(typedArrays.ts, 123, 98))
|
|
|
|
typedArrays[7] = Float64Array.from(obj, mapFn, thisArg);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 124, 7))
|
|
>Float64Array.from : Symbol(Float64ArrayConstructor.from, Decl(lib.d.ts, 4704, 41))
|
|
>Float64Array : Symbol(Float64Array, Decl(lib.d.ts, 4424, 50), Decl(lib.d.ts, 4714, 11))
|
|
>from : Symbol(Float64ArrayConstructor.from, Decl(lib.d.ts, 4704, 41))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 123, 38))
|
|
>mapFn : Symbol(mapFn, Decl(typedArrays.ts, 123, 60))
|
|
>thisArg : Symbol(thisArg, Decl(typedArrays.ts, 123, 98))
|
|
|
|
typedArrays[8] = Uint8ClampedArray.from(obj, mapFn, thisArg);
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 124, 7))
|
|
>Uint8ClampedArray.from : Symbol(Uint8ClampedArrayConstructor.from, Decl(lib.d.ts, 2964, 46))
|
|
>Uint8ClampedArray : Symbol(Uint8ClampedArray, Decl(lib.d.ts, 2684, 46), Decl(lib.d.ts, 2974, 11))
|
|
>from : Symbol(Uint8ClampedArrayConstructor.from, Decl(lib.d.ts, 2964, 46))
|
|
>obj : Symbol(obj, Decl(typedArrays.ts, 123, 38))
|
|
>mapFn : Symbol(mapFn, Decl(typedArrays.ts, 123, 60))
|
|
>thisArg : Symbol(thisArg, Decl(typedArrays.ts, 123, 98))
|
|
|
|
return typedArrays;
|
|
>typedArrays : Symbol(typedArrays, Decl(typedArrays.ts, 124, 7))
|
|
}
|