diff -r 000000000000 -r 6474c204b198 js/src/jit-test/tests/jaeger/bug563000/trap-self-as-parent.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/js/src/jit-test/tests/jaeger/bug563000/trap-self-as-parent.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,19 @@ +// |jit-test| debug +setDebug(true); +x = "notset"; + +function myparent(nested) { + if (nested) { + /* noop call in myparent */ + trap(myparent, 62, "success()"); + } else { + myparent(true); + x = "failure"; + noop(); + } +} +function noop() { } +function success() { x = "success"; } + +myparent(); +assertEq(x, "success");