summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1148973-1.js
blob: 201b9466f2de00d606de6af86c1f4d65b74eb118 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
Object.defineProperty(this, "x", { get: decodeURI, configurable: true })
try {
    String(b = new Proxy(function() { }, {
        get: function(r, z) {
            return x[z]
        }
    }))
} catch (e) {};
var log = "";
evaluate(`
try {
    function x() {}
    assertEq(String(b), "function () {}");
} catch (e) { log += "e"; }
`);
assertEq(log, "e");