You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The only possible problem here is that we don't know how Symbol.dispose is supported in different js runtimes. I believe latest browsers and node has already supported it, but not sure about previous versions. Can't find the info in CanIUse, either.
The text was updated successfully, but these errors were encountered:
Calling
.unref()
is just fine, but sometimes it could be forgotten and cause memory leaks.TC39 stage 3 proposal https://github.com/tc39/proposal-explicit-resource-management is aimed at solving the problem. We can add a Symbol.dispose method to those
pathRef
,pointRef
,rangeRef
to keep up with the spec.The only possible problem here is that we don't know how Symbol.dispose is supported in different js runtimes. I believe latest browsers and node has already supported it, but not sure about previous versions. Can't find the info in CanIUse, either.
The text was updated successfully, but these errors were encountered: