summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/auto-regress/bug487320.js
blob: 01293b57654f4f2d24504e43e2eb0d0c015e9b78 (plain)
1
2
3
4
5
6
7
8
9
10
11
// Binary: cache/js-dbg-64-57213af4a45d-linux
// Flags:
//
function outer(x) {
    return (function foo() {
                this.bar = foo;
                return x;
            })();
}
print(outer(42));
print(bar());           // BOOM!