summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/getelem-sanity-int-2.js
blob: add4568ef737f1b02762e55f7472480d1848b9f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
var arr = ['this', 'works', 'for', 'me'];
for (var i = 0; i < arr.length; ++i) {
    var result = arr[i];
    switch (i) {
      case 0: assertEq('this', result); break;
      case 1: assertEq('works', result); break;
      case 2: assertEq('for', result); break;
      case 3: assertEq('me', result); break;
    }
}

/* int32_t getelem for dense array. */