I wasn't able to find the answer to your question in the official Deno documentation. However, based on your message, Object.getOwnPropertyNames(globalThis) should indeed list all the enumerable and non-enumerable properties, including console, on the global object.
If console or other expected globals are not showing up, it could be due to the environment in which you are running the code or a change in the implementation of Deno that isn't reflected in the documentation. It's also possible that there might be a bug or an edge case affecting the visibility of certain global properties.
Please note that this advice is not based on the Deno documentation, and I would recommend double-checking the accuracy of this advice. If you continue to experience unexpected behavior, you might want to reach out to the Deno community or file an issue on the Deno GitHub repository for further assistance.