mirror of
https://github.com/nodejs/node.git
synced 2026-11-29 14:27:57 -05:00
quic: serialize stream reset code as string
Signed-off-by: manNomi <hanmw110@naver.com> PR-URL: https://github.com/nodejs/node/pull/64577 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tim Perry <pimterry@gmail.com> Reviewed-By: Ethan Arrowood <ethan@arrowood.dev>
This commit is contained in:
1 parent
1c09165c2e
commit
dcc348af97
2 files changed
+2
-1
No files matched your search
@@ -926,7 +926,7 @@ class QuicStreamState {
|
||||
wantsHeaders,
|
||||
wantsTrailers,
|
||||
early,
|
||||
resetCode,
|
||||
resetCode: `${resetCode}`,
|
||||
writeDesiredSize,
|
||||
budget,
|
||||
};
|
||||
|
||||
@@ -179,6 +179,7 @@ strictEqual(sessionState.maxDatagramSize, 0);
|
||||
strictEqual(sessionState.lastDatagramId, 0n);
|
||||
|
||||
strictEqual(typeof streamState.toJSON(), 'object');
|
||||
strictEqual(JSON.parse(streamState.toString()).resetCode, '0');
|
||||
strictEqual(typeof sessionState.toJSON(), 'object');
|
||||
strictEqual(typeof inspect(streamState), 'string');
|
||||
strictEqual(typeof inspect(sessionState), 'string');
|
||||
|
||||
Reference in new issue
Block a user