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 @@ -790,23 +790,24 @@ exports.skipIf32Bits = function skipIf32Bits() {
790
790
}
791
791
} ;
792
792
793
- const arrayBufferViews = [
794
- Int8Array ,
795
- Uint8Array ,
796
- Uint8ClampedArray ,
797
- Int16Array ,
798
- Uint16Array ,
799
- Int32Array ,
800
- Uint32Array ,
801
- Float32Array ,
802
- Float64Array ,
803
- DataView
804
- ] ;
805
-
806
793
exports . getArrayBufferViews = function getArrayBufferViews ( buf ) {
807
794
const { buffer, byteOffset, byteLength } = buf ;
808
795
809
796
const out = [ ] ;
797
+
798
+ const arrayBufferViews = [
799
+ Int8Array ,
800
+ Uint8Array ,
801
+ Uint8ClampedArray ,
802
+ Int16Array ,
803
+ Uint16Array ,
804
+ Int32Array ,
805
+ Uint32Array ,
806
+ Float32Array ,
807
+ Float64Array ,
808
+ DataView
809
+ ] ;
810
+
810
811
for ( const type of arrayBufferViews ) {
811
812
const { BYTES_PER_ELEMENT = 1 } = type ;
812
813
if ( byteLength % BYTES_PER_ELEMENT === 0 ) {
You can’t perform that action at this time.
0 commit comments