mirror of
https://github.com/pezkuwichain/revive.git
synced 2026-06-19 21:31:02 +00:00
Allow GC to do the cleanup
This commit is contained in:
@@ -13,6 +13,9 @@ mergeInto(LibraryManager.library, {
|
|||||||
resolc_compile: function (inputPtr, inputLen) {
|
resolc_compile: function (inputPtr, inputLen) {
|
||||||
const inputJson = UTF8ToString(inputPtr, inputLen);
|
const inputJson = UTF8ToString(inputPtr, inputLen);
|
||||||
var revive = createRevive();
|
var revive = createRevive();
|
||||||
|
// Allow GC to clean up the data
|
||||||
|
revive.wasmBinary = undefined
|
||||||
|
revive.soljson = undefined
|
||||||
revive.writeToStdin(inputJson);
|
revive.writeToStdin(inputJson);
|
||||||
|
|
||||||
// Call main on the new instance
|
// Call main on the new instance
|
||||||
|
|||||||
Reference in New Issue
Block a user