[quickjs] Fix function type mismatches

UBSan is finding function type mismatches for js_realloc_rt where the
first argument should be an opaque void* rather than a JSRuntime*. This
fixes some instances of function type mismatches to takea void*.

Bug: 127108
Change-Id: I0ca77dfc8021e9fda592b7950dc80e88f2d985ac
2 files changed