File tree 1 file changed +6
-1
lines changed
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');
142
142
143
143
var SymbolSupported = typeof Symbol !== 'undefined' ;
144
144
var 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 ) {
146
148
[
147
149
'Uint8Array' ,
148
150
'Uint8ClampedArray' ,
@@ -169,6 +171,9 @@ if (SymbolToStringTagSupported) {
169
171
assert ( types [ method ] ( array ) ) ;
170
172
} ) ;
171
173
}
174
+ if ( isBuggyFirefox ) {
175
+ console . log ( 'skipping fake typed array tests because they do not work in FF' )
176
+ }
172
177
173
178
{
174
179
var primitive = function primitive ( ) { return true ; } ;
You can’t perform that action at this time.
0 commit comments