blob: 9b8b277b361fd8fed3abebbd6ea2b55b714743f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
function getLogString(obj) {
let log = getWatchtowerLog();
return log.map(item => {
assertEq(item.object, obj);
if (typeof item.extra === "symbol") {
item.extra = "<symbol>";
}
return item.kind + (item.extra ? ": " + item.extra : "");
}).join("\n");
}
const entry = cacheEntry("");
addWatchtowerTarget(entry);
evaluate(entry, { "saveIncrementalBytecode": true });
let log = getLogString(entry);
// Nothing is logged for the manipulation of reserved slots, as we
// lack infrastructure to track them thus far.
assertEq(log.length, 0);
|