1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/jaeger/getelem-sanity-8.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,13 @@ 1.4 + 1.5 +// TI does not account for GETELEM accessing strings, so the GETELEM PIC must 1.6 +// update type constraints according to generated stubs. 1.7 +function foo(a, b) { 1.8 + for (var j = 0; j < 5; j++) 1.9 + a[b[j]] + " what"; 1.10 +} 1.11 +var a = {a:"zero", b:"one", c:"two", d:"three", e:"four"}; 1.12 +var b = ["a", "b", "c", "d", "e"]; 1.13 +foo(a, b); 1.14 +foo(a, b); 1.15 +a.e = 4; 1.16 +foo(a, b);