From 7566342dc7cfb1a4f02a9061dd0c176004a8e4ae Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Fri, 14 Oct 2016 20:38:30 +0200 Subject: [PATCH] Bug 1201124: Protect SIMD on arm to prevent bustage; r=me --- js/src/jit-test/tests/asm.js/bug1201124-simd-proxy.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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,