summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug919118.js
blob: 413a8a89ad5ed3a98da4d85afc0e5bdf5ca3523d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
setJitCompilerOption("ion.warmup.trigger", 50);

var f32 = new Float32Array(1);
f32[0] = 13;
var str = "CAN HAS cheezburger? OKTHXBYE";
var c;

function f() {
    c = str[ f32[0] ];
}

for(var n = 100; n; --n) f();
print (c);