michael@0: // |reftest| fails-if(!xulRuntime.shell) michael@0: // Any copyright is dedicated to the Public Domain. michael@0: // http://creativecommons.org/licenses/publicdomain/ michael@0: // Contributors: Gary Kwong , Brendan Eich michael@0: michael@0: var box = evalcx('lazy'); michael@0: michael@0: var src = michael@0: 'try {\n' + michael@0: ' __proto__ = Proxy.createFunction((function() {}), function() {})\n' + michael@0: ' var x\n' + michael@0: ' {}\n' + michael@0: '} catch(e) {}\n' + michael@0: 'for (let b in [0, 0]) {}\n' + michael@0: '0\n'; michael@0: michael@0: evalcx(src, box); michael@0: michael@0: this.reportCompare(0, 0, "ok");