summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/asm.js/bug885976.js
blob: 303a8d07f25632e7113cd9bcc919bd924637760d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
// |jit-test| error: TypeError
function test(stdlib, foreign) {
    "use asm"
    var ff = foreign.ff
    function f(y) {
        y = +y;
        ff(0);
    }
    return f;
};
f = test(this, {ff: Object.defineProperty});
f();