Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
cool
Browse files Browse the repository at this point in the history
  • Loading branch information
KATT committed Oct 2, 2023
1 parent c259617 commit 86bc8ca
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions .rfcs/001-serialize-async.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,15 +45,13 @@ for await (const chunk of stringifyAsync(data)) {

```js
async function* stringifyEmitter() {

Check failure on line 47 in .rfcs/001-serialize-async.md

View workflow job for this annotation

GitHub Actions / lint

'stringifyEmitter' is defined but never used

Check failure on line 47 in .rfcs/001-serialize-async.md

View workflow job for this annotation

GitHub Actions / lint

'stringifyEmitter' is defined but never used
// <first line>
yield "[";
yield "\n";
// </first line>
// <second line> - the shape
yield JSON.stringify(jsonAndNonce);
yield "\n";
// </second line>
// comma before values
// <first line: init the array, ignored when parsing>
yield "[\n";

// second line: the shape of the json - used when parsing>
yield JSON.stringify(jsonAndNonce) + "\n";

Check failure on line 52 in .rfcs/001-serialize-async.md

View workflow job for this annotation

GitHub Actions / lint

'jsonAndNonce' is not defined

// third line: comma before values, ignored when parsing
yield ",";
yield "["; // values start
yield "\n";
Expand Down

0 comments on commit 86bc8ca

Please sign in to comment.