Skip to content

Commit f923cb3

Browse files
committed
doc: clarify that v8.serialize() is not deterministic
Fixes: nodejs/help#2448
1 parent 7b7e7bd commit f923cb3

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎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)