Skip to content

Commit

Permalink
Clean buffer after sending response. (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
tomusdrw authored Jan 26, 2025
1 parent 1513af7 commit fa78631
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ function readFromStdin(options) {
json['expected-status'] = statusAsString(result.status);
json['expected-regs'] = result.registers;
json['expected-page-fault-address'] = result.exitCode;
// clear previous buffer
buffer = '';

console.log(JSON.stringify(json));
console.log();
Expand Down

0 comments on commit fa78631

Please sign in to comment.