Skip to content
This repository has been archived by the owner on Sep 1, 2021. It is now read-only.

Expose garbage collector to Electron when it was exposed in Node #83

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Expose garbage collector to Electron when it was exposed in Node #83

wants to merge 2 commits into from

Conversation

kayahr
Copy link

@kayahr kayahr commented Mar 31, 2021

Thanks to the new WeakRef feature it is possible to test for memory leaks when exposing the garbage collector to Node. With this pull request the garbage collector is also exposed to Electron when it was exposed to Node so the same tests which works with Node runner can also work with electron runner.

This is a very small change, it doesn't change any behavior except exposing the garbage collector to Electron and even this is only done when the user already exposed the garbage collector to Node. So for the standard usage this small change doesn't do anything. And for those who expose the garbage collector to Node this change is very useful for writing unit tests running in Electron which can check for memory leaks.

@facebook-github-bot facebook-github-bot added the CLA Signed Do not delete this pull request or issue due to inactivity. label Mar 31, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
CLA Signed Do not delete this pull request or issue due to inactivity.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants