File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -58,9 +58,14 @@ for (const [ getValue, _method ] of [
58
58
[ function ( ) { return new Float64Array ( ) ; } ] ,
59
59
[ function ( ) { return new BigInt64Array ( ) ; } ] ,
60
60
[ function ( ) { return new BigUint64Array ( ) ; } ] ,
61
- [ function ( ) { return Object . defineProperty ( new Uint8Array ( ) ,
62
- Symbol . toStringTag ,
63
- { value : 'foo' } ) ; } ] ,
61
+ [ function ( ) {
62
+ if ( typeof Symbol === 'undefined' || typeof Symbol . toStringTag === 'undefined' ) {
63
+ throw Error ( ) ;
64
+ }
65
+ return Object . defineProperty ( new Uint8Array ( ) ,
66
+ Symbol . toStringTag ,
67
+ { value : 'foo' } ) ;
68
+ } ] ,
64
69
[ function ( ) { return new DataView ( new ArrayBuffer ( ) ) ; } ] ,
65
70
[ function ( ) { return new SharedArrayBuffer ( ) ; } ] ,
66
71
// [ new Proxy({}, {}), 'isProxy' ],
You can’t perform that action at this time.
0 commit comments