Bug 1135338 - Do not run sharedtypedarray.js test if SharedArrayBuffer is not defined. r=jandem

--HG--
extra : histedit_source : 5afdc455606707a3b352f5ea1eeaff235b0b481b
This commit is contained in:
Tooru Fujisawa 2015-02-21 16:42:18 +09:00
Родитель 256a142a70
Коммит 1a4f6dfdb7
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -228,8 +228,10 @@ function testSharedTypedArrayMethods() {
assertEq(v[9], -5);
}
testSharedArrayBuffer();
testSharedTypedArray();
testSharedTypedArrayMethods();
if (typeof SharedArrayBuffer === "function") {
testSharedArrayBuffer();
testSharedTypedArray();
testSharedTypedArrayMethods();
}
reportCompare(0, 0, 'ok');