diff --git a/test/node/types.js b/test/node/types.js index 89340a4..38fb0c7 100644 --- a/test/node/types.js +++ b/test/node/types.js @@ -142,7 +142,9 @@ console.log('Testing', 'isBoxedPrimitive'); var SymbolSupported = typeof Symbol !== 'undefined'; var SymbolToStringTagSupported = SymbolSupported && typeof Symbol.toStringTag !== 'undefined'; -if (SymbolToStringTagSupported) { +var isBuggyFirefox = typeof navigator !== 'undefined' && /Firefox\/\d+/.test(navigator.userAgent) && + parseInt(navigator.userAgent.split('Firefox/')[1], 10) < 66 +if (SymbolToStringTagSupported && !isBuggyFirefox) { [ 'Uint8Array', 'Uint8ClampedArray', @@ -169,6 +171,9 @@ if (SymbolToStringTagSupported) { assert(types[method](array)); }); } +if (isBuggyFirefox) { + console.log('skipping fake typed array tests because they do not work in FF') +} { var primitive = function primitive() { return true; };