1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/jaeger/bug563000/trap-parent-from-trap.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,22 @@ 1.4 +// |jit-test| debug 1.5 +setDebug(true); 1.6 +x = "notset"; 1.7 + 1.8 +function child() { 1.9 + x = "failure1"; 1.10 + /* JSOP_STOP in parent. */ 1.11 + trap(parent, 16, "success()"); 1.12 +} 1.13 + 1.14 +function parent() { 1.15 + x = "failure2"; 1.16 +} 1.17 +/* First op in parent. */ 1.18 +trap(parent, 0, "child()"); 1.19 + 1.20 +function success() { 1.21 + x = "success"; 1.22 +} 1.23 + 1.24 +parent(); 1.25 +assertEq(x, "success");