/js/src/jit-test/tests/jaeger/bug563000/eif-trap-newvar.js

http://github.com/zpao/v8monkey · JavaScript · 10 lines · 8 code · 1 blank · 1 comment · 0 complexity · 46adf51de68afd9a6ca34a17e4a57351 MD5 · raw file

  1. // |jit-test| mjitalways;debug
  2. setDebug(true);
  3. function nop(){}
  4. function caller(code, obj) {
  5. eval(code); // Make the compiler give up on binding analysis.
  6. return x;
  7. }
  8. trap(caller, 13, "var x = 'success'; nop()");
  9. assertEq(caller("var y = 'ignominy'", this), "success");