From 1a4f6dfdb7181c5ef8d7473618191e0443438753 Mon Sep 17 00:00:00 2001 From: Tooru Fujisawa Date: Sat, 21 Feb 2015 16:42:18 +0900 Subject: [PATCH] Bug 1135338 - Do not run sharedtypedarray.js test if SharedArrayBuffer is not defined. r=jandem --HG-- extra : histedit_source : 5afdc455606707a3b352f5ea1eeaff235b0b481b --- js/src/tests/js1_8_5/extensions/sharedtypedarray.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/js/src/tests/js1_8_5/extensions/sharedtypedarray.js b/js/src/tests/js1_8_5/extensions/sharedtypedarray.js index ee9716a9ce6a..7c1c3f6fca9e 100644 --- a/js/src/tests/js1_8_5/extensions/sharedtypedarray.js +++ b/js/src/tests/js1_8_5/extensions/sharedtypedarray.js @@ -228,8 +228,10 @@ function testSharedTypedArrayMethods() { assertEq(v[9], -5); } -testSharedArrayBuffer(); -testSharedTypedArray(); -testSharedTypedArrayMethods(); +if (typeof SharedArrayBuffer === "function") { + testSharedArrayBuffer(); + testSharedTypedArray(); + testSharedTypedArrayMethods(); +} reportCompare(0, 0, 'ok');