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 @@ -142,7 +142,9 @@ console.log('Testing', 'isBoxedPrimitive');
142142
143143var SymbolSupported = typeof Symbol !== 'undefined' ;
144144var SymbolToStringTagSupported = SymbolSupported && typeof Symbol . toStringTag !== 'undefined' ;
145- if ( SymbolToStringTagSupported ) {
145+ var isBuggyFirefox = typeof navigator !== 'undefined' && / F i r e f o x \/ \d + / . test ( navigator . userAgent ) &&
146+ parseInt ( navigator . userAgent . split ( 'Firefox/' ) [ 1 ] , 10 ) < 66
147+ if ( SymbolToStringTagSupported && ! isBuggyFirefox ) {
146148 [
147149 'Uint8Array' ,
148150 'Uint8ClampedArray' ,
@@ -169,6 +171,9 @@ if (SymbolToStringTagSupported) {
169171 assert ( types [ method ] ( array ) ) ;
170172 } ) ;
171173}
174+ if ( isBuggyFirefox ) {
175+ console . log ( 'skipping fake typed array tests because they do not work in FF' )
176+ }
172177
173178{
174179 var primitive = function primitive ( ) { return true ; } ;
You can’t perform that action at this time.
0 commit comments