edge icon indicating copy to clipboard operation
edge copied to clipboard

Is it possible to expose global.gc() ?

Open Xanatus opened this issue 6 years ago • 0 comments

Is there any way to trigger the V8 GC manually when running javascript from c#?

In tried "--expose-gc" but it doesn't seem to expose global.gc().

Environment.SetEnvironmentVariable("EDGE_NODE_PARAMS", "--nouse-idle-notification --expose-gc --max-old-space-size=8192");
EdgeJs.Edge.Func("global.gc(); return function (i, cb) {};");

throws with global.gc() not a function.

Xanatus avatar Jul 05 '18 13:07 Xanatus