Skip to content

Commit

Permalink
Fix unclosed stream when resolved value throws error
Browse files Browse the repository at this point in the history
  • Loading branch information
lxsmnsyc committed Nov 21, 2023
1 parent 8637edc commit 691da3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/seroval/src/core/context/parser/stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,8 +219,8 @@ export default abstract class BaseStreamParserContext extends BaseSyncParserCont
b: undefined,
o: undefined,
}, false);
this.popPendingState();
}
this.popPendingState();
}
},
);
Expand Down Expand Up @@ -319,8 +319,8 @@ export default abstract class BaseStreamParserContext extends BaseSyncParserCont
b: undefined,
o: undefined,
}, false);
this.popPendingState();
}
this.popPendingState();
},
(data) => {
if (this.alive) {
Expand All @@ -340,9 +340,9 @@ export default abstract class BaseStreamParserContext extends BaseSyncParserCont
b: undefined,
o: undefined,
}, false);
this.popPendingState();
}
}
this.popPendingState();
},
);
this.pushPendingState();
Expand Down

0 comments on commit 691da3f

Please sign in to comment.