@@ -207,6 +207,16 @@ describe('Object Comparison Tests', () => {
207207 actual : [ 1 , 2 , 3 ] ,
208208 expected : [ '2' ] ,
209209 } ,
210+ {
211+ description : 'throws when comparing a ArrayBuffer with a SharedArrayBuffer' ,
212+ actual : new ArrayBuffer ( 3 ) ,
213+ expected : new SharedArrayBuffer ( 3 ) ,
214+ } ,
215+ {
216+ description : 'throws when comparing an Int16Array with a Uint16Array' ,
217+ actual : new Int16Array ( 3 ) ,
218+ expected : new Uint16Array ( 3 ) ,
219+ } ,
210220 ] ;
211221
212222 if ( common . hasCrypto ) {
@@ -343,10 +353,15 @@ describe('Object Comparison Tests', () => {
343353 expected : { error : new Error ( 'Test error' ) } ,
344354 } ,
345355 {
346- description : 'compares two objects with TypedArray instances with the same content ' ,
347- actual : { typedArray : new Uint8Array ( [ 1 , 2 , 3 ] ) } ,
356+ description : 'compares two Uint8Array objects ' ,
357+ actual : { typedArray : new Uint8Array ( [ 1 , 2 , 3 , 4 , 5 ] ) } ,
348358 expected : { typedArray : new Uint8Array ( [ 1 , 2 , 3 ] ) } ,
349359 } ,
360+ {
361+ description : 'compares two Int16Array objects' ,
362+ actual : { typedArray : new Int16Array ( [ 1 , 2 , 3 , 4 , 5 ] ) } ,
363+ expected : { typedArray : new Int16Array ( [ 1 , 2 , 3 ] ) } ,
364+ } ,
350365 {
351366 description : 'compares two Map objects with identical entries' ,
352367 actual : new Map ( [
0 commit comments