This repository was archived by the owner on Sep 11, 2024. It is now read-only.
This repository was archived by the owner on Sep 11, 2024. It is now read-only.
Crash When Disposing ScriptPromise instance. #45
Open
Description
I wrote some code like:
var promise = new TypedScriptPromise<JSValue>(sc);
System.Action<object> callback = (object o) => {
promise.Resolve(JSApi.JS_NULL);
};
and it crashed on this line:
https://github.com/ialex32x/unity-jsb/blob/master/Assets/jsb/Source/ScriptRuntime.cs#L611