This is a TypeScript port of fast-json-stable-stringify. I had trouble using that lib in a project because it doesn't export as ESM, so I wrote this port to TypeScript in my project. Later, it became ...
This also happens regardless of state.[[Gap]] (and state.[[Indent]]) which affects only only step 10. "Else" and elements in step 8 (of which there are none here). I encountered this in snapshot ...