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

Method push_syscall

g2all/700/module/chain.js:323–339  ·  view source on GitHub ↗
(syscall_name, ...args)

Source from the content-addressed store, hash-verified

321 }
322
323 push_syscall(syscall_name, ...args) {
324 if (typeof syscall_name !== "string") {
325 throw TypeError(`syscall_name not a string: ${syscall_name}`);
326 }
327
328 const sysno = syscall_map.get(syscall_name);
329 if (sysno === undefined) {
330 throw Error(`syscall_name not found: ${syscall_name}`);
331 }
332
333 const syscall_addr = this.syscall_array[sysno];
334 if (syscall_addr === undefined) {
335 throw Error(`syscall number not in syscall_array: ${sysno}`);
336 }
337
338 this.push_call(syscall_addr, ...args);
339 }
340
341 // Sets needed class properties
342 //

Callers 3

do_syscallMethod · 0.95
race_oneFunction · 0.45

Calls 2

push_callMethod · 0.95
getMethod · 0.45

Tested by

no test coverage detected