PageRenderTime 8ms CodeModel.GetById 1ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 1ms

/js/src/jit-test/tests/jaeger/regalloc-1.js

http://github.com/zpao/v8monkey
JavaScript | 15 lines | 9 code | 5 blank | 1 comment | 0 complexity | b33498d61563cc2dbd677cb799718fd9 MD5 | raw file
 1// |jit-test| error: TypeError
 2
 3x = 2;
 4
 5function tryItOut(c) {
 6  return eval("(function(){" + c + "})");
 7}
 8
 9function doit() {
10  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)));");
11  f();
12}
13
14doit();
15