library.unrefCallback(pointer)
pointer<bigint>
允许回调被 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.
如果回调函数已经被垃圾回收,会抛出 ERR_INVALID_ARG_VALUE。
🌐 Throws ERR_INVALID_ARG_VALUE if the callback function has already been
garbage collected.