mirror of
https://github.com/openharmony/ark_js_runtime.git
synced 2026-08-27 10:41:15 -04:00
d098277ade
Use weak reference instead of strong reference for SetNativePointer. And in period of gc updating reference, if the related js object is free, "Finalize" callback will be called to release c++ memory. issue: https://gitee.com/openharmony/ark_js_runtime/issues/I5BJPG?from=project-issue Signed-off-by: lukai <lukai25@huawei.com> Change-Id: Ibb04cf2efa0c7e1fe719eda5e95cb62938e661e0