Expose onReadable event on ReadableStream so consumer knows when calling read is appropriate.
readline now uses onReadable/read.
Pasting multi-line commands in web shell has not been addressed in this change because we need to find a way to interleave cursor location commands in-between each pasted line for commands to be properly serialized across multiple execution of readline.
onReadable
event onReadableStream
so consumer knows when callingread
is appropriate.readline
now usesonReadable
/read
.readline
.@rginda