summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/getelem-sanity-1.js
blob: 4bad91eccbac06c37f960bc89de10364d2c22d37 (plain)
1
2
3
4
5
6
7
8
9
var obj = {attr: 'value'};

(function() {
    var name = 'attr';
    for (var i = 0; i < 10; ++i)
        assertEq(obj[name], 'value');
})();

/* Look up a string id. */