summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/testGetThis.js
blob: 3c2546a6b03de8d764bd5a471d2763468dcb986e (plain)
1
2
3
4
5
6
7
function testGetThis() {
    for (var i = 0; i < 3; ++i) {
        (function() { return this; })();
    }
    return "ok";
}
assertEq(testGetThis(), "ok");