Skip to content

Commit

Permalink
Skip fake typed array test in FF
Browse files Browse the repository at this point in the history
  • Loading branch information
goto-bus-stop committed May 1, 2019
1 parent 9938769 commit 8a7cde3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/node/types.js
Expand Up @@ -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',
Expand All @@ -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; };
Expand Down

0 comments on commit 8a7cde3

Please sign in to comment.