1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/tests/js1_8_5/regress/regress-595230-1.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,19 @@ 1.4 +// |reftest| fails-if(!xulRuntime.shell) 1.5 +// Any copyright is dedicated to the Public Domain. 1.6 +// http://creativecommons.org/licenses/publicdomain/ 1.7 +// Contributors: Gary Kwong <gary@rumblingedge.com>, Brendan Eich <brendan@mozilla.com> 1.8 + 1.9 +var box = evalcx('lazy'); 1.10 + 1.11 +var src = 1.12 + 'try {\n' + 1.13 + ' __proto__ = Proxy.createFunction((function() {}), function() {})\n' + 1.14 + ' var x\n' + 1.15 + ' {}\n' + 1.16 + '} catch(e) {}\n' + 1.17 + 'for (let b in [0, 0]) {}\n' + 1.18 + '0\n'; 1.19 + 1.20 +evalcx(src, box); 1.21 + 1.22 +this.reportCompare(0, 0, "ok");