$ 0 0 I don't know why it wouldn't work, but you might want to examine the v8 method that JavascriptContext.Collect() invokes. It's something to do with idleness and I don't know what guarantees it makes about freeing objects.