js/src/jit-test/tests/debug/Debugger-findScripts-02.js

Thu, 15 Jan 2015 15:55:04 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 15:55:04 +0100
branch
TOR_BUG_9701
changeset 9
a63d609f5ebe
permissions
-rw-r--r--

Back out 97036ab72558 which inappropriately compared turds to third parties.

     1 // In a debuggee with functions, findScripts finds those functions' scripts.
     3 var g = newGlobal();
     4 g.eval('function f(){}');
     5 g.eval('function g(){}');
     6 g.eval('function h(){}');
     8 var dbg = new Debugger();
     9 var gw = dbg.addDebuggee(g);
    10 var fw = gw.makeDebuggeeValue(g.f);
    11 var gw = gw.makeDebuggeeValue(g.g);
    12 var hw = gw.makeDebuggeeValue(g.h);
    14 assertEq(dbg.findScripts().indexOf(fw.script) != -1, true);
    15 assertEq(dbg.findScripts().indexOf(gw.script) != -1, true);
    16 assertEq(dbg.findScripts().indexOf(hw.script) != -1, true);

mercurial