Note: I was initially posting this as an issue in the endo repo, but for security concerns, I thought it was best to post here.
I was preparing some educational content on the topic of ses and, more generally, writing defensively consistent programs when I came across some behavior that I was surprised to see.
The behavior: When `globalThis` is passed into `Object.isFrozen`, it returns false.
I had been under the impression that, once lockdown is invoked, `globalThis` along with any JavaScript primordials, will be made immutable. I still believe this is expected behavior. Text passages such as the one below uphold this claim as well, so opening this issue to get some clarity on the matter.
https://github.com/endojs/endo/blob/f891df0cb180d2296ae9f671af10fcdc8b24b209/packages/ses/docs/reference.md?plain=1#L85-L93
I've created a gist linked below containing a test file showing this. I was executing this within endo/packages/ses/test; however, I initially came across this problem in a directory outside of endo.