diff -r 000000000000 -r 6474c204b198 js/src/jit-test/tests/jaeger/bug563000/trap-self-from-trap.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/js/src/jit-test/tests/jaeger/bug563000/trap-self-from-trap.js Wed Dec 31 06:09:35 2014 +0100 @@ -0,0 +1,24 @@ +// |jit-test| debug +setDebug(true); +x = "notset"; + +function doNothing() { } + +function myparent(nested) { + if (nested) { + /* JSOP_CALL to doNothing in myparent with nested = true. */ + trap(myparent, 36, "success()"); + doNothing(); + } else { + doNothing(); + } +} +/* JSOP_CALL to doNothing in myparent with nested = false. */ +trap(myparent, 51, "myparent(true)"); + +function success() { + x = "success"; +} + +myparent(false); +assertEq(x, "success");