PageRenderTime 25ms CodeModel.GetById 18ms app.highlight 3ms RepoModel.GetById 2ms app.codeStats 0ms

/js/src/jit-test/tests/jaeger/bug563000/eif-getter-typechange.js

http://github.com/zpao/v8monkey
JavaScript | 11 lines | 9 code | 1 blank | 1 comment | 0 complexity | e910d693c5c0a5d7c85b2b9e3981cd12 MD5 | raw file
 1// |jit-test| mjitalways;debug
 2setDebug(true);
 3
 4this.__defineGetter__("someProperty", function () { evalInFrame(1, "var x = 'success'"); });
 5function caller(obj) {
 6  assertJit();
 7  var x = ({ dana : 'zuul' });
 8  obj.someProperty;
 9  return x;
10}
11assertEq(caller(this), "success");