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
Prev Previous commit
Next Next commit
fixup
  • Loading branch information
debadree25 committed Jan 30, 2023
commit efb65e07005499c8b4b9904f72759873ed61ee16
4 changes: 2 additions & 2 deletions lib/internal/webstreams/transformstream.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,7 @@ function initializeTransformStream(
readableSizeAlgorithm) {

const writable = new WritableStream({
__proto__: null,
start() { return startPromise.promise; },
write(chunk) {
return transformStreamDefaultSinkWriteAlgorithm(stream, chunk);
Expand All @@ -368,13 +369,13 @@ function initializeTransformStream(
close() {
return transformStreamDefaultSinkCloseAlgorithm(stream);
},
__proto__: null
}, {
highWaterMark: writableHighWaterMark,
size: writableSizeAlgorithm,
});

const readable = new ReadableStream({
__proto__: null,
start() { return startPromise.promise; },
pull() {
return transformStreamDefaultSourcePullAlgorithm(stream);
Expand All @@ -383,7 +384,6 @@ function initializeTransformStream(
transformStreamErrorWritableAndUnblockWrite(stream, reason);
return PromiseResolve();
},
__proto__: null,
}, {
highWaterMark: readableHighWaterMark,
size: readableSizeAlgorithm,
Expand Down
4 changes: 2 additions & 2 deletions test/parallel/test-whatwg-transformstream.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,6 @@ class Source {
controller.terminate();
}
});
Comment thread
aduh95 marked this conversation as resolved.
delete Object.prototype.type;

Reflect.deleteProperty(Object.prototype, 'type');
}