Skip to content

Commit b50439e

Browse files
authored
Use Infra's 'Serialize an Infra value to JSON bytes' (#227)
Fixes: #224
1 parent 0429ea5 commit b50439e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

index.src.html

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -354,12 +354,11 @@ <h3 id="serialize-reports" algorithm>Serialize Reports</h3>
354354

355355
To <dfn>serialize a list of |reports| to JSON</dfn>,
356356

357-
1. Let |collection| be a new ECMAScript `Array` object [[!ECMA-262]].
357+
1. Let |collection| be an empty list.
358358

359359
2. For each |report| in |reports|:
360360

361-
1. Let |data| be a new ECMAScript `Object` with the following properties
362-
[[!ECMA-262]]:
361+
1. Let |data| be a map with the following key/value pairs:
363362

364363
: `age`
365364
:: The number of milliseconds between |report|'s [=report/timestamp=]
@@ -381,8 +380,8 @@ <h3 id="serialize-reports" algorithm>Serialize Reports</h3>
381380

382381
3. Append |data| to |collection|.
383382

384-
3. Return the [=byte sequence=] resulting from executing [=serialize JSON to
385-
bytes=] on |collection|.
383+
3. Return the [=byte sequence=] resulting from executing [=serialize an Infra
384+
value to JSON bytes=] on |collection|.
386385
</section>
387386

388387
<section>

0 commit comments

Comments
 (0)