Bug 1059589 - Skip testBug1057248.js if SharedArrayBuffer isn't supported. r=lth
authorRyan VanderMeulen <ryanvm@gmail.com>
Thu, 28 Aug 2014 13:02:32 -0400
changeset 202232 b83ffe1314204bcfdf849145fa2be143c8a1a661
parent 202231 34e34990dfd6fcdf33f0191db436655d469ddf60
child 202233 ebe3f3603f563ff7eef7ee9e97b2fb633b5c2788
push idunknown
push userunknown
push dateunknown
reviewerslth
bugs1059589, 1057248
milestone34.0a1
Bug 1059589 - Skip testBug1057248.js if SharedArrayBuffer isn't supported. r=lth
js/src/jit-test/tests/asm.js/testBug1057248.js
--- a/js/src/jit-test/tests/asm.js/testBug1057248.js
+++ b/js/src/jit-test/tests/asm.js/testBug1057248.js
@@ -1,8 +1,11 @@
+if (!this.SharedArrayBuffer || !isAsmJSCompilationAvailable())
+  quit();
+
 Random = {
     weighted: function(wa) {
         var a = [];
         for (var i = 0; i < wa.length; ++i) {
             for (var j = 0; j < wa[i]; ++j) {}
         }
     }
 }
@@ -123,9 +126,9 @@ mathy2 = (function(stdlib, foreign, heap
         }
     return f
 })(this, {
 }, new SharedArrayBuffer(4096))
 testMathyFunction(mathy2, [-0])
 mathy5 = (function(y) {
     ((function() {})(mathy2(y)()))
 })
-testMathyFunction(mathy5, [Math.PI])
\ No newline at end of file
+testMathyFunction(mathy5, [Math.PI])