Open josephrocca opened 1 month ago
Yeah, this is not a supported feature. You should run delete globalThis.Deno
. Memory overhead of the worker would not be different if we implemented this using namespace: false
.
Yeah, this is not a supported feature.
Ah okay, no worries. I think it should be supported (for clarity/consistency, at least), and since satyarohith has labelled this issue as a suggestion, I'll leave it open, but of course feel free to close this if there's no intention/desire to support false
as a valid value, since the workaround is easy anyway.
Version: Deno
1.46.x
and2.x
This logs
Received from worker: Hello from Worker! 2.0.0-rc.10+053894b
instead of throwing a reference error:This issue may be more of a feature request, since it's not explicitly mentioned in the docs that
namespace:false
disables Deno stuff. It only says:Note if
delete globalThis.Deno
is equivalent, this may not be an ideal solution for me, because part of the reason I want to remove the Deno stuff is to reduce the memory overhead of the worker.