Bug 1201124: Protect SIMD on arm to prevent bustage; r=me

This commit is contained in:
Benjamin Bouvier 2016-10-14 20:38:30 +02:00
parent 0fea3fd083
commit 7566342dc7

View File

@ -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,