This PR is fixing memory leak and incorrect propagation of the runPromise method. The exit method was being called after the promise was resolved/rejected, it looks like it was not clearing the active property in time for the next createContext called on the next runPromise.
This PR is fixing memory leak and incorrect propagation of the
runPromise
method. Theexit
method was being called after the promise was resolved/rejected, it looks like it was not clearing theactive
property in time for the nextcreateContext
called on the nextrunPromise
.Issues: #63 and #71
No side effects occured after this fix.
Tests:
Before fix:
After fix:
Correct propagation: