(cherry picked from denoland/deno#29166) Co-authored-by: snek <snek@deno.com>
Implementing it is tracked by #6495. In the mean time it is okay for it to be a no-op. `destroy` just recovers the resources earlier than garbage collection might, doing nothing is not a leak.