michael@0: // |jit-test| error: TypeError michael@0: michael@0: x = 2; michael@0: michael@0: function tryItOut(c) { michael@0: return eval("(function(){" + c + "})"); michael@0: } michael@0: michael@0: function doit() { michael@0: var f = tryItOut("((( \"\" \n for each (eval in [null, this, null, this, (1/0), new String('q'), new String('q'), null, null, null, new String('q'), new String('q'), new String('q'), null]) if (this)).eval(x = x)));"); michael@0: f(); michael@0: } michael@0: michael@0: doit(); michael@0: