JsValueRef has auto-cleanup methods when it goes out of scope. When passing these types in std::vector arrays, they get released and upon being accessed on the script side they can cause bogus memory reads or crashes. The fix is to call the callback function from the same context where the parameters are declared.
JsValueRef has auto-cleanup methods when it goes out of scope. When passing these types in std::vector arrays, they get released and upon being accessed on the script side they can cause bogus memory reads or crashes. The fix is to call the callback function from the same context where the parameters are declared.