/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. x = 2;
  3. function tryItOut(c) {
  4. return eval("(function(){" + c + "})");
  5. }
  6. function doit() {
  7. 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)));");
  8. f();
  9. }
  10. doit();