Seems to have been left over from the original copy. This correction should fix calls to the "memory" variable in syscall/js.
The file wasm_glue.js was copied from the Go wasm port and was modified, most importantly to match the TinyGo calling convention.