(str)
| 507 | let offset = 4096; |
| 508 | |
| 509 | const strPtr = (str) => { |
| 510 | const ptr = offset; |
| 511 | const bytes = encoder.encode(str + "\0"); |
| 512 | new Uint8Array(this.mem.buffer, offset, bytes.length).set(bytes); |
| 513 | offset += bytes.length; |
| 514 | if (offset % 8 !== 0) { |
| 515 | offset += 8 - (offset % 8); |
| 516 | } |
| 517 | return ptr; |
| 518 | }; |
| 519 | |
| 520 | const argc = this.argv.length; |
| 521 |