the fact that you can just redefine Map in a script is mind boggling
Why? Being able to redefine anything is table stakes in dynamic languages.
You can't assign a value to false, for example, so "anything" isn't everything (Node v22.17.0).
> false = 4 false = 4 ^^^^^ Uncaught SyntaxError: Invalid left-hand side in assignment
> NaN NaN > NaN = 42 42 > NaN NaN >
So? Does being able to do something means you should?
I didn’t say you should. The comment I’m replying to expressed surprise that redefining something is even possible.