File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,12 @@ if (SymbolToStringTagSupported) {
188
188
}
189
189
return Object . create ( Buffer . prototype ) ;
190
190
} ;
191
- var fakeDataView = function fakeDataView ( ) { return Object . create ( DataView . prototype ) ; } ;
191
+ var fakeDataView = function fakeDataView ( ) {
192
+ if ( ! SymbolToStringTagSupported ) {
193
+ throw new Error ( ) ;
194
+ }
195
+ return Object . create ( DataView . prototype ) ;
196
+ } ;
192
197
var fakeUint8Array = function fakeUint8Array ( ) { return Object . create ( Uint8Array . prototype ) ; } ;
193
198
var fakeUint8ClampedArray = function fakeUint8ClampedArray ( ) { return Object . create ( Uint8ClampedArray . prototype ) ; } ;
194
199
var fakeUint16Array = function fakeUint16Array ( ) { return Object . create ( Uint16Array . prototype ) ; } ;
You can’t perform that action at this time.
0 commit comments