Add an explicit 'print' command (#4535)

This commit is contained in:
JT
2022-02-18 13:43:34 -05:00
committed by GitHub
parent 786e4ab971
commit 06f9047be4
6 changed files with 151 additions and 71 deletions

View File

@ -146,7 +146,19 @@ impl Iterator for RawStream {
}
Err(e) => Some(Err(e)),
},
None => None,
None => {
if !self.leftover.is_empty() {
let output = Ok(Value::Binary {
val: self.leftover.clone(),
span: self.span,
});
self.leftover.clear();
Some(output)
} else {
None
}
}
}
}
}