blob: 3abb138a80b30587624cd7d329c8ef9ce022f567 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
var g = newGlobal({ newCompartment: true });
var dbg = new Debugger(g);
var count = 0;
dbg.onNewScript = script => {
count++;
};
var stencil = g.compileToStencil(`"a"`);
g.evalStencil(stencil);
assertEq(count, 1);
count = 0;
dbg.onNewScript = script => {
count++;
};
var stencilXDR = g.compileToStencilXDR(`"b"`);
g.evalStencilXDR(stencilXDR);
assertEq(count, 1);
|