summaryrefslogtreecommitdiff
path: root/js/src/tests/js1_8_5/regress/regress-595230-1.js
blob: e88562bf2a8c274189eb10bb52992400ed47252f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Any copyright is dedicated to the Public Domain.
// http://creativecommons.org/licenses/publicdomain/
// Contributors: Gary Kwong <gary@rumblingedge.com>, Brendan Eich <brendan@mozilla.com>

var box = evalcx('lazy');

var src =
    'try {\n' +
    '    __proto__ = Proxy.createFunction((function() {}), function() {})\n' +
    '    var x\n' +
    '    *\n' +
    '} catch(e) {}\n' +
    'default xml namespace = x\n' +
    'for (let b in [0, 0]) <x/>\n' +
    '0\n';

evalcx(src, box);

this.reportCompare(0, 0, "ok");