summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/warp/bug1696897.js
blob: fbdd671573daa3f3b4fbc1d9612f488ac25973fa (plain)
1
2
3
4
5
6
7
8
function foo() {
    Object.defineProperty(this, "valueOf", ({value: 0, writable: true}));
    Object.freeze(this);
}

for (var i = 0; i < 100; i++) {
    foo.call('');
}