blob: 14f18a397ab041fad1a00098c6c94ae7b3251c93 [file] [log] [blame]
// |reftest| fails-if(!xulRuntime.shell)
// 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' +
'for (let b in [0, 0]) {}\n' +
'0\n';
evalcx(src, box);
this.reportCompare(0, 0, "ok");