Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnna Henningsen <anna@addaleax.net>2020-01-28 15:59:25 +0300
committerRich Trott <rtrott@gmail.com>2020-01-31 03:35:47 +0300
commitdd4c62eabe1f5cf982137d9d826aac162a611d26 (patch)
tree755fa8109b0e84ba95a604809df7520b9f3c65fc /doc/api/v8.md
parentabe6a2e3d1c268f5bebbf05864f2588c6f4858b5 (diff)
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 <cjihrig@gmail.com> Reviewed-By: Gus Caplan <me@gus.host> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Diffstat (limited to 'doc/api/v8.md')
-rw-r--r--doc/api/v8.md2
1 files changed, 2 insertions, 0 deletions
diff --git a/doc/api/v8.md b/doc/api/v8.md
index 1513f75ad0c..97ca7e0a2b3 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)`
<!-- YAML