diff --git a/js/src/jit-test/tests/asm.js/bug1201124-simd-proxy.js b/js/src/jit-test/tests/asm.js/bug1201124-simd-proxy.js index 8e167167ca42..df8a8966b9f3 100644 --- a/js/src/jit-test/tests/asm.js/bug1201124-simd-proxy.js +++ b/js/src/jit-test/tests/asm.js/bug1201124-simd-proxy.js @@ -2,8 +2,12 @@ load(libdir + "asm.js"); load(libdir + "asserts.js"); -if (typeof newGlobal !== 'function') +if (typeof newGlobal !== 'function' || + !isSimdAvailable() || + typeof SIMD === 'undefined') +{ quit(); +} var stdlib = new (newGlobal().Proxy)(this, new Proxy({ simdGet: 0,