Skip to content

Commit 6626c4d

Browse files
addaleaxcodebytere
authored andcommitted
doc: clarify that v8.serialize() is not deterministic
Fixes: nodejs/help#2448 PR-URL: #31548 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 6723156 commit 6626c4d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

doc/api/v8.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,9 @@ if (isMainThread) {
268268

269269
The serialization API provides means of serializing JavaScript values in a way
270270
that is compatible with the [HTML structured clone algorithm][].
271+
271272
The format is backward-compatible (i.e. safe to store to disk).
273+
Equal JavaScript values may result in different serialized output.
272274

273275
### `v8.serialize(value)`
274276
<!-- YAML

0 commit comments

Comments
 (0)