js/src/jit-test/tests/auto-regress/bug678086.js

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/js/src/jit-test/tests/auto-regress/bug678086.js	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,17 @@
     1.4 +// |jit-test| error:Error
     1.5 +
     1.6 +// Binary: cache/js-dbg-64-48e43edc8834-linux
     1.7 +// Flags:
     1.8 +//
     1.9 +
    1.10 +function f() {
    1.11 +    frame = dbg.getNewestFrame();
    1.12 +}
    1.13 +var g = newGlobal();
    1.14 +g.f = function (a, b) { return a + "/" + this . f( ) ; };
    1.15 +var dbg = Debugger(g);
    1.16 +dbg.onDebuggerStatement = function (frame) {
    1.17 +    var f = frame.eval("f").return;
    1.18 +    assertEq(f.call(null, "a", "b").return, "a/b");
    1.19 +};
    1.20 +g.eval("debugger;");

mercurial