library.unrefCallback(pointer)


允许回调被 JavaScript 弱引用。

🌐 Allows the callback to become weakly referenced by JavaScript.

如果回调函数随后被垃圾回收,后续的本地调用将变为无操作。非空返回值在返回给本地代码之前会被初始化为零。

🌐 If the callback function is later garbage collected, subsequent native invocations become a no-op. Non-void return values are zero-initialized before returning to native code.