File tree 1 file changed +14
-13
lines changed
1 file changed +14
-13
lines changed Original file line number Diff line number Diff line change @@ -788,23 +788,24 @@ exports.skipIf32Bits = function skipIf32Bits() {
788
788
}
789
789
} ;
790
790
791
- const arrayBufferViews = [
792
- Int8Array ,
793
- Uint8Array ,
794
- Uint8ClampedArray ,
795
- Int16Array ,
796
- Uint16Array ,
797
- Int32Array ,
798
- Uint32Array ,
799
- Float32Array ,
800
- Float64Array ,
801
- DataView
802
- ] ;
803
-
804
791
exports . getArrayBufferViews = function getArrayBufferViews ( buf ) {
805
792
const { buffer, byteOffset, byteLength } = buf ;
806
793
807
794
const out = [ ] ;
795
+
796
+ const arrayBufferViews = [
797
+ Int8Array ,
798
+ Uint8Array ,
799
+ Uint8ClampedArray ,
800
+ Int16Array ,
801
+ Uint16Array ,
802
+ Int32Array ,
803
+ Uint32Array ,
804
+ Float32Array ,
805
+ Float64Array ,
806
+ DataView
807
+ ] ;
808
+
808
809
for ( const type of arrayBufferViews ) {
809
810
const { BYTES_PER_ELEMENT = 1 } = type ;
810
811
if ( byteLength % BYTES_PER_ELEMENT === 0 ) {
You can’t perform that action at this time.
0 commit comments