From f923cb380bcd61ba401e4c8edc816f7ee9fb99d2 Mon Sep 17 00:00:00 2001 From: Anna Henningsen Date: Tue, 28 Jan 2020 12:59:25 +0000 Subject: [PATCH] doc: clarify that `v8.serialize()` is not deterministic Fixes: https://github.com/nodejs/help/issues/2448 --- doc/api/v8.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/doc/api/v8.md b/doc/api/v8.md index 1513f75ad0c12f..97ca7e0a2b3138 100644 --- a/doc/api/v8.md +++ b/doc/api/v8.md @@ -268,7 +268,9 @@ if (isMainThread) { The serialization API provides means of serializing JavaScript values in a way that is compatible with the [HTML structured clone algorithm][]. + The format is backward-compatible (i.e. safe to store to disk). +Equal JavaScript values may result in different serialized output. ### `v8.serialize(value)`