/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
- // |jit-test| mjitalways;debug
- setDebug(true);
- function nop(){}
- function caller(code, obj) {
- eval(code); // Make the compiler give up on binding analysis.
- return x;
- }
- trap(caller, 13, "var x = 'success'; nop()");
- assertEq(caller("var y = 'ignominy'", this), "success");