From dd4c62eabe1f5cf982137d9d826aac162a611d26 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 PR-URL: https://github.com/nodejs/node/pull/31548 Reviewed-By: Colin Ihrig Reviewed-By: Gus Caplan Reviewed-By: James M Snell Reviewed-By: Rich Trott Reviewed-By: Luigi Pinca --- 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)`