summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/asm.js/testGetter.js
blob: 9a974635503bc5590e19d1cf4a3c638ca7dc1b53 (plain)
1
2
3
4
5
6
7
8
9
10
11
function asmJSGetter() {
    "use asm";
    return {}
}
var sym = Symbol();
var o = {};
o.__defineGetter__(sym, asmJSGetter);

for (var i = 0; i < 10; i++) {
    o[sym];
}