PageRenderTime 22ms CodeModel.GetById 14ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/js/src/jit-test/tests/jaeger/bug563000/trap-self-as-parent.js

http://github.com/zpao/v8monkey
JavaScript | 19 lines | 15 code | 2 blank | 2 comment | 2 complexity | 8777c63fc64b1637861ad70a44a6968e MD5 | raw file
 1// |jit-test| debug
 2setDebug(true);
 3x = "notset";
 4
 5function myparent(nested) {
 6  if (nested) {
 7    /* noop call in myparent */
 8    trap(myparent, 48, "success()");
 9  } else {
10    myparent(true);
11    x = "failure";
12    noop();
13  }
14}
15function noop() { }
16function success() { x = "success"; }
17
18myparent();
19assertEq(x, "success");