mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Automatically call toString() when writing data to output stream (used to fix errors that might happen if you do something like context.w(3))
This commit is contained in:
parent
03300e8031
commit
bb5314e633
@ -114,7 +114,9 @@ if (stream) {
|
||||
|
||||
Readable.prototype = {
|
||||
write: function(data) {
|
||||
this.push(data);
|
||||
if (data != null) {
|
||||
this.push(data.toString());
|
||||
}
|
||||
},
|
||||
end: function() {
|
||||
this.push(null);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user