MCPcopy Create free account
hub / github.com/GamerHack/GamerHack.github.io / get_gadget

Method get_gadget

g2all/900/module/chain.js:288–295  ·  view source on GitHub ↗
(insn_str)

Source from the content-addressed store, hash-verified

286 }
287
288 get_gadget(insn_str) {
289 const addr = this.gadgets.get(insn_str);
290 if (addr === undefined) {
291 throw Error(`gadget not found: ${insn_str}`);
292 }
293
294 return addr;
295 }
296
297 push_gadget(insn_str) {
298 this.push_value(this.get_gadget(insn_str));

Callers 10

push_gadgetMethod · 0.95
spawn_threadFunction · 0.45
constructorMethod · 0.45
push_clear_errnoMethod · 0.45
push_get_errnoMethod · 0.45
constructorMethod · 0.45
constructorMethod · 0.45
push_clear_errnoMethod · 0.45
push_get_errnoMethod · 0.45
constructorMethod · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected