Consider the following code:
let synchronous;
new ReadableStream({
pull(controller) {
synchronous = true;
controller.enqueue();
synchronous = false;
}
}).pipeTo(new WritableStream({
write() {
console.log(synchronous);
}
});
- Is this allowed to print
true?
- Should it be allowed to print
true?
- Is an implementation which prints
true web-compatible?