@@ -88,7 +88,6 @@ function test(file) {
8888 {
8989 let arr = [ 1 , 2 , 3 , 4 , 5 , 0x80000000 | 0 ] ;
9090 let ref = exports . __newArray ( exports . INT32ARRAY_ID , arr ) ;
91- assert ( exports . __instanceof ( ref , exports . INT32ARRAY_ID ) ) ;
9291
9392 // should be able to get the values of an array
9493 assert . deepStrictEqual ( exports . __getArray ( ref ) , arr ) ;
@@ -104,7 +103,6 @@ function test(file) {
104103 {
105104 let arr = [ 1 , 2 , 3 , 4 , 5 , 0x80000000 | 0 ] ;
106105 let ref = exports . __newArray ( exports . STATICARRAYI32_ID , arr ) ;
107- assert ( exports . __instanceof ( ref , exports . STATICARRAYI32_ID ) ) ;
108106
109107 // should be able to get the values of an array
110108 assert . deepStrictEqual ( exports . __getArray ( ref ) , arr ) ;
@@ -120,17 +118,14 @@ function test(file) {
120118 {
121119 let arrU8Arr = new Uint8Array([0, 1, 2]);
122120 let refU8Arr = module.__newUint8Array(arrU8Arr);
123- assert(module.__instanceof(refU8Arr, module.UINT8ARRAY_ID));
124121 assert.deepStrictEqual(module.__getUint8Array(refU8Arr), arrU8Arr);
125122
126123 let arrU16Arr = new Uint16Array([0, 0x7FFF, 0xFFFF]);
127124 let refU16Arr = module.__newUint16Array(arrU16Arr);
128- assert(module.__instanceof(refU16Arr, module.UINT16ARRAY_ID));
129125 assert.deepStrictEqual(module.__getUint16Array(refU16Arr), arrU16Arr);
130126
131127 let arrI16Arr = new Int16Array([0, -1, -2]);
132128 let refI16Arr = module.__newInt16Array(arrI16Arr);
133- assert(module.__instanceof(refI16Arr, module.INT16ARRAY_ID));
134129 assert.deepStrictEqual(module.__getInt16Array(refI16Arr), arrI16Arr);
135130 }
136131 */
@@ -140,7 +135,6 @@ function test(file) {
140135 let values = [ 0 , 255 , 127 ] ;
141136 let arr = new Uint8Array ( values ) ;
142137 let ref = exports . __newArray ( exports . UINT8ARRAY_ID , arr ) ;
143- assert ( exports . __instanceof ( ref , exports . UINT8ARRAY_ID ) ) ;
144138 assert . deepStrictEqual ( exports . __getUint8Array ( ref ) , arr ) ;
145139 assert . deepStrictEqual ( exports . __getUint8ArrayView ( ref ) , arr ) ;
146140 assert . deepStrictEqual ( exports . __getArray ( ref ) , values ) ;
@@ -150,7 +144,6 @@ function test(file) {
150144 {
151145 let arr = [ 0 , 255 , 127 ] ;
152146 let ref = exports . __newArray ( exports . STATICARRAYU8_ID , arr ) ;
153- assert ( exports . __instanceof ( ref , exports . STATICARRAYU8_ID ) ) ;
154147 assert . deepStrictEqual ( exports . __getArray ( ref ) , arr ) ;
155148 }
156149
@@ -159,7 +152,6 @@ function test(file) {
159152 let values = [ 0 , 0xFFFF , - 0x00FF ] ;
160153 let arr = new Int16Array ( values ) ;
161154 let ref = exports . __newArray ( exports . INT16ARRAY_ID , arr ) ;
162- assert ( exports . __instanceof ( ref , exports . INT16ARRAY_ID ) ) ;
163155 assert . deepStrictEqual ( exports . __getInt16Array ( ref ) , arr ) ;
164156 assert . deepStrictEqual ( exports . __getInt16ArrayView ( ref ) , arr ) ;
165157 assert . deepStrictEqual ( exports . __getArray ( ref ) , [ 0 , - 1 , - 255 ] ) ;
@@ -169,7 +161,6 @@ function test(file) {
169161 {
170162 let arr = [ 0 , 0xFFFF , - 0x00FF ] ;
171163 let ref = exports . __newArray ( exports . STATICARRAYI16_ID , arr ) ;
172- assert ( exports . __instanceof ( ref , exports . STATICARRAYI16_ID ) ) ;
173164 assert . deepStrictEqual ( exports . __getArray ( ref ) , [ 0 , - 1 , - 255 ] ) ;
174165 }
175166
@@ -178,7 +169,6 @@ function test(file) {
178169 let values = [ 1 , - 1 >>> 0 , 0x80000000 ] ;
179170 let arr = new Uint32Array ( values ) ;
180171 let ref = exports . __newArray ( exports . UINT32ARRAY_ID , arr ) ;
181- assert ( exports . __instanceof ( ref , exports . UINT32ARRAY_ID ) ) ;
182172 assert . deepStrictEqual ( exports . __getUint32Array ( ref ) , arr ) ;
183173 assert . deepStrictEqual ( exports . __getUint32ArrayView ( ref ) , arr ) ;
184174 assert . deepStrictEqual ( exports . __getArray ( ref ) , values ) ;
@@ -188,7 +178,6 @@ function test(file) {
188178 {
189179 let arr = [ 1 , - 1 >>> 0 , 0x80000000 ] ;
190180 let ref = exports . __newArray ( exports . STATICARRAYU32_ID , arr ) ;
191- assert ( exports . __instanceof ( ref , exports . STATICARRAYU32_ID ) ) ;
192181 assert . deepStrictEqual ( exports . __getArray ( ref ) , arr ) ;
193182 }
194183
@@ -197,7 +186,6 @@ function test(file) {
197186 let values = [ 0.0 , 1.5 , 2.5 ] ;
198187 let arr = new Float32Array ( values ) ;
199188 let ref = exports . __newArray ( exports . FLOAT32ARRAY_ID , arr ) ;
200- assert ( exports . __instanceof ( ref , exports . FLOAT32ARRAY_ID ) ) ;
201189 assert . deepStrictEqual ( exports . __getFloat32Array ( ref ) , arr ) ;
202190 assert . deepStrictEqual ( exports . __getFloat32ArrayView ( ref ) , arr ) ;
203191 assert . deepStrictEqual ( exports . __getArray ( ref ) , values ) ;
@@ -207,29 +195,25 @@ function test(file) {
207195 {
208196 let arr = [ 0.0 , 1.5 , 2.5 ] ;
209197 let ref = exports . __newArray ( exports . STATICARRAYF32_ID , arr ) ;
210- assert ( exports . __instanceof ( ref , exports . STATICARRAYF32_ID ) ) ;
211198 assert . deepStrictEqual ( exports . __getArray ( ref ) , arr ) ;
212199 }
213200
214201 // should be able to create empty arrays
215202 {
216203 let ref = exports . __newArray ( exports . ARRAYI32_ID ) ;
217- assert ( exports . __instanceof ( ref , exports . ARRAYI32_ID ) ) ;
218204 assert . deepStrictEqual ( exports . __getArray ( ref ) , [ ] ) ;
219205 }
220206
221207 // should be able to create arrays with capacity
222208 {
223209 let ref = exports . __newArray ( exports . ARRAYI32_ID , 32 ) ;
224- assert ( exports . __instanceof ( ref , exports . ARRAYI32_ID ) ) ;
225210 assert . strictEqual ( exports . __getArray ( ref ) . length , 32 ) ;
226211 }
227212
228213 // should be able to work with normal arrays
229214 {
230215 let arr = [ 1 , 2 , 3 , 4 , 5 ] ;
231216 let ref = exports . __newArray ( exports . ARRAYI32_ID , arr ) ;
232- assert ( exports . __instanceof ( ref , exports . ARRAYI32_ID ) ) ;
233217 exports . changeLength ( ref , 3 ) ;
234218 assert . deepStrictEqual ( exports . __getArray ( ref ) , [ 1 , 2 , 3 ] ) ;
235219 }
0 commit comments