/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
- // |jit-test| error: TypeError
- x = 2;
- function tryItOut(c) {
- return eval("(function(){" + c + "})");
- }
- function doit() {
- 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)));");
- f();
- }
- doit();