Skip to content

Commit 8a7cde3

Browse files
committed
Skip fake typed array test in FF
1 parent 9938769 commit 8a7cde3

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/node/types.js

+6-1
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,9 @@ console.log('Testing', 'isBoxedPrimitive');
142142

143143
var SymbolSupported = typeof Symbol !== 'undefined';
144144
var SymbolToStringTagSupported = SymbolSupported && typeof Symbol.toStringTag !== 'undefined';
145-
if (SymbolToStringTagSupported) {
145+
var isBuggyFirefox = typeof navigator !== 'undefined' && /Firefox\/\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; };

0 commit comments

Comments
 (0)