Is JSON.stringify() deterministic in V8?
问题 I've not seen (yet?) JSON.stringify to be non-deterministic in Node.JS. There is no guarantee it to be deterministic on the specification level. But what about V8; Is its implementation there deterministic? Is there a guarantee for it to remain deterministic for future V8 versions? Edit: With deterministic I mean that following assertion is true no matter what the value of json_str is. (Given the value is a valid JSON string.) const obj = JSON.parse(json_str); assert(JSON.stringify(obj)==