Bug 1126406 - guard a test. r=me
authorLars T Hansen <lhansen@mozilla.com>
Wed, 28 Jan 2015 09:34:33 +0100
changeset 239607 f81de13e4ad2922f052e33fdbd7036f2441ab645
parent 239599 4cf56d1211c9999216cb89c792f3217ce684c88d
child 239608 02601ab9f9afcfa06fbc5185e816e6df71accce3
push id500
push userjoshua.m.grant@gmail.com
push dateThu, 29 Jan 2015 01:48:36 +0000
reviewersme
bugs1126406
milestone38.0a1
Bug 1126406 - guard a test. r=me
js/src/jit-test/tests/asm.js/bug1122338.js
--- a/js/src/jit-test/tests/asm.js/bug1122338.js
+++ b/js/src/jit-test/tests/asm.js/bug1122338.js
@@ -1,14 +1,17 @@
 // The bug was that the asm.js linker did not catch that an unshared
 // view was created on a shared buffer.  (Nor did it catch the vice
 // versa case.)  As a consequence the code was not rejected (and run
 // as plain JS) as it should be.  That gave rise to a difference in
 // output.
 
+if (!this.SharedArrayBuffer)
+    quit(0);
+
 // Original test
 
 g = (function(stdlib, n, heap) {
     "use asm";
     var Float32ArrayView = new stdlib.Float32Array(heap);
     function f() {
         return +Float32ArrayView[0]
     }