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
@Test
public void testReleaseWeakObjectDoesNotAffectReferenceCount() {
new V8Object(v8).setWeak().close();
assertEquals(0, v8.getObjectReferenceCount());
}
V8 uses another array called v8WeakReferences to keep the weak objects
and this array is used to get object reference count.
Thus, when weak object is released it should also be removed from
v8WeakReferences array.
Fix#347
If an object is
setWeak
, if we callrelease
on this object, the reference count goes to -1.The text was updated successfully, but these errors were encountered: