UNPKG

266 BJavaScriptView Raw
1let instructions = [];
2
3const instRegistry = {
4 push(name, params) {
5 instructions.push({ name, params });
6 },
7 replaceAll(newInstructions) {
8 instructions = newInstructions;
9 },
10 getAll() {
11 return instructions;
12 }
13};
14
15module.exports = instRegistry;