1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/ion/bug882323.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,23 @@ 1.4 +var ints = new Int8Array(16); 1.5 +ints[0] = 42; 1.6 +function intElementAt(index) { 1.7 + return ints[index]; 1.8 +} 1.9 +assertEq(intElementAt(16), undefined); 1.10 +assertEq(intElementAt(0), 42); 1.11 + 1.12 +var floats = new Float64Array(16); 1.13 +floats[0] = 3.14; 1.14 +function floatElementAt(index) { 1.15 + return floats[index]; 1.16 +} 1.17 +assertEq(floatElementAt(16), undefined); 1.18 +assertEq(floatElementAt(0), 3.14); 1.19 + 1.20 +var uints = new Uint32Array(16); 1.21 +uints[0] = 123; 1.22 +function uintElementAt(index) { 1.23 + return uints[index]; 1.24 +} 1.25 +assertEq(uintElementAt(16), undefined); 1.26 +assertEq(uintElementAt(0), 123);