(gadgets, syscall_array = [])
| 348 | // An array whose indices correspond to syscall numbers. Maps syscall |
| 349 | // numbers to their addresses in memory. Defaults to an empty Array. |
| 350 | static init_class(gadgets, syscall_array = []) { |
| 351 | this.prototype.gadgets = gadgets; |
| 352 | this.prototype.syscall_array = syscall_array; |
| 353 | } |
| 354 | |
| 355 | // START: implementation-dependent parts |
| 356 | // |