PageRenderTime 18ms CodeModel.GetById 13ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/js/src/jit-test/tests/debug/Debugger-debuggees-10.js

http://github.com/zpao/v8monkey
JavaScript | 18 lines | 14 code | 2 blank | 2 comment | 0 complexity | bd279790f5cc8d31af9735932d30c22b MD5 | raw file
 1// Allow diamonds in the graph of the compartment "debugs" relation.
 2var program = newGlobal('new-compartment');
 3var d1 = newGlobal('new-compartment');
 4d1.top = this;
 5var d2 = newGlobal('new-compartment');
 6d2.top = this;
 7var dbg = new Debugger(d1, d2);
 8d1.eval("var dbg = new Debugger(top.program)");
 9d2.eval("var dbg = new Debugger(top.program)");
10
11// mess with the edges a little bit -- all this should be fine, no cycles
12d1.dbg.removeDebuggee(program);
13d1.dbg.addDebuggee(program);
14dbg.addDebuggee(program);
15d1.dbg.addDebuggee(d2);
16dbg.removeDebuggee(d2);
17dbg.addDebuggee(d2);
18