PageRenderTime 7ms CodeModel.GetById 2ms app.highlight 2ms RepoModel.GetById 1ms app.codeStats 0ms

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