[PATCH v2 2/7] jscript: Fix addressing invalid memory if ref is an argument.