@@ -82,7 +82,7 @@ for (var _i = 0, _arr = [
82
82
value : 'foo'
83
83
} ) ;
84
84
} , 'isUint8Array' ] ,
85
- [ function ( ) { return new DataView ( new ArrayBuffer ( 1 ) ) ; } , 'isDataView' ] ,
85
+ [ function ( ) { return new DataView ( new ArrayBuffer ( 1 ) , 0 , 1 ) ; } , 'isDataView' ] ,
86
86
[ function ( ) { return new SharedArrayBuffer ( ) ; } , 'isSharedArrayBuffer' ] ,
87
87
// [ new Proxy({}, {}), 'isProxy' ],
88
88
[ function ( ) { return new WebAssembly . Module ( wasmBuffer ) ; } , 'isWebAssemblyCompiledModule' ]
@@ -170,7 +170,7 @@ if (SymbolToStringTagSupported) {
170
170
var arrayBuffer = function arrayBuffer ( ) { return new ArrayBuffer ( 1 ) ; } ;
171
171
172
172
var buffer = function buffer ( ) { return Buffer . from ( arrayBuffer ( ) ) ; } ;
173
- var dataView = function dataView ( ) { return new DataView ( arrayBuffer ( ) ) ; } ;
173
+ var dataView = function dataView ( ) { return new DataView ( arrayBuffer ( ) , 0 , 1 ) ; } ;
174
174
var uint8Array = function uint8Array ( ) { return new Uint8Array ( arrayBuffer ( ) ) ; } ;
175
175
var uint8ClampedArray = function uint8ClampedArray ( ) { return new Uint8ClampedArray ( arrayBuffer ( ) ) ; } ;
176
176
var uint16Array = function uint16Array ( ) { return new Uint16Array ( arrayBuffer ( ) ) ; } ;
@@ -208,7 +208,7 @@ if (SymbolToStringTagSupported) {
208
208
var fakeBigUint64Array = function fakeBigUint64Array ( ) { return Object . create ( BigUint64Array . prototype ) ; } ;
209
209
210
210
var stealthyDataView = function stealthyDataView ( ) {
211
- return Object . setPrototypeOf ( new DataView ( arrayBuffer ( ) ) , Uint8Array . prototype ) ;
211
+ return Object . setPrototypeOf ( new DataView ( arrayBuffer ( ) , 0 , 1 ) , Uint8Array . prototype ) ;
212
212
} ;
213
213
var stealthyUint8Array = function stealthyUint8Array ( ) {
214
214
return Object . setPrototypeOf ( new Uint8Array ( arrayBuffer ( ) ) , ArrayBuffer . prototype ) ;
0 commit comments