๐Ÿ“ฆ hediet / vscode-delorean-js-debug

๐Ÿ“„ globalThis.js ยท 20 lines
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20globalThis.lastInstructions = [];

globalThis.$$CI_f = (moduleId, functionId) => {
	if (globalThis.lastInstructions.length < 100_000) {
		globalThis.lastInstructions.push(`f: ${moduleId} ${functionId}`);
	}
};

globalThis.$$CI_b = (blockId) => {
	if (globalThis.lastInstructions.length < 100_000) {
		globalThis.lastInstructions.push(`b: ${blockId}`);
	}
};

globalThis.$$CI_r = () => {
	if (globalThis.lastInstructions.length < 100_000) {
		globalThis.lastInstructions.push(`r`);
	}
};