Imported Upstream version 1.0.0
[platform/upstream/js.git] / js / src / tests / js1_8_5 / regress / regress-595230-1.js
1 // Any copyright is dedicated to the Public Domain.
2 // http://creativecommons.org/licenses/publicdomain/
3 // Contributors: Gary Kwong <gary@rumblingedge.com>, Brendan Eich <brendan@mozilla.com>
4
5 var box = evalcx('lazy');
6
7 var src =
8     'try {\n' +
9     '    __proto__ = Proxy.createFunction((function() {}), function() {})\n' +
10     '    var x\n' +
11     '    *\n' +
12     '} catch(e) {}\n' +
13     'default xml namespace = x\n' +
14     'for (let b in [0, 0]) <x/>\n' +
15     '0\n';
16
17 evalcx(src, box);
18
19 this.reportCompare(0, 0, "ok");