Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lib/internal/webstreams/transformstream.js
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,7 @@ function initializeTransformStream(
close() {
return transformStreamDefaultSinkCloseAlgorithm(stream);
},
__proto__: null
Comment thread
aduh95 marked this conversation as resolved.
Outdated
}, {
highWaterMark: writableHighWaterMark,
size: writableSizeAlgorithm,
Expand All @@ -382,6 +383,7 @@ function initializeTransformStream(
transformStreamErrorWritableAndUnblockWrite(stream, reason);
return PromiseResolve();
},
__proto__: null,
}, {
highWaterMark: readableHighWaterMark,
size: readableSizeAlgorithm,
Expand Down
15 changes: 15 additions & 0 deletions test/parallel/test-whatwg-transformstream.js
Original file line number Diff line number Diff line change
Expand Up @@ -186,3 +186,18 @@ class Source {
inspect(controller, { depth: 0 }),
/TransformStreamDefaultController \[/);
}

{
Object.defineProperty(Object.prototype, 'type', {
get: common.mustNotCall()
Comment thread
debadree25 marked this conversation as resolved.
Outdated
});

new TransformStream({
transform(chunk, controller) {
controller.enqueue(chunk);
},
flush(controller) {
controller.terminate();
}
});
Comment thread
aduh95 marked this conversation as resolved.
}