Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

stream: add trailing commas in webstream source files #46685

Merged
merged 1 commit into from
Feb 18, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions lib/.eslintrc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,7 @@ overrides:
- ./internal/vm.js
- ./internal/watch_mode/*.js
- ./internal/webidl.js
- ./internal/webstreams/*.js
- ./module.js
- ./path/*.js
- ./process.js
Expand Down
10 changes: 5 additions & 5 deletions lib/internal/webstreams/readablestream.js
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ class ReadableStream {
done = true;
readableStreamReaderGenericRelease(reader);
promise.reject(error);
}
},
});
return promise.promise;
}
Expand Down Expand Up @@ -565,7 +565,7 @@ class ReadableStream {
returnSteps(error);
},

[SymbolAsyncIterator]() { return this; }
[SymbolAsyncIterator]() { return this; },
}, AsyncIterator);
}

Expand Down Expand Up @@ -603,7 +603,7 @@ class ReadableStream {
return {
data: { port: this[kState].transfer.port2 },
deserializeInfo:
'internal/webstreams/readablestream:TransferredReadableStream'
'internal/webstreams/readablestream:TransferredReadableStream',
};
}

Expand Down Expand Up @@ -1223,7 +1223,7 @@ function createTeeReadableStream(start, pull, cancel) {
ObjectCreate(null, {
start: { __proto__: null, value: start },
pull: { __proto__: null, value: pull },
cancel: { __proto__: null, value: cancel }
cancel: { __proto__: null, value: cancel },
}),
1,
() => 1);
Expand Down Expand Up @@ -1916,7 +1916,7 @@ function readableStreamError(stream, error) {
setPromiseHandled(stream[kIsClosedPromise].promise);

const {
reader
reader,
} = stream[kState];

if (reader === undefined)
Expand Down
4 changes: 2 additions & 2 deletions lib/internal/webstreams/transfer.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ class CloneableDOMException extends DOMException {
code: this.code,
},
deserializeInfo:
'internal/webstreams/transfer:InternalCloneableDOMException'
'internal/webstreams/transfer:InternalCloneableDOMException',
};
}

Expand Down Expand Up @@ -183,7 +183,7 @@ class CrossRealmTransformWritableSink {
assert(typeof data === 'object');
const {
type,
value
value,
} = { ...data };
assert(typeof type === 'string');
switch (type) {
Expand Down
4 changes: 2 additions & 2 deletions lib/internal/webstreams/transformstream.js
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ class TransformStream {
writable,
},
deserializeInfo:
'internal/webstreams/transformstream:TransferredTransformStream'
'internal/webstreams/transformstream:TransferredTransformStream',
};
}

Expand Down Expand Up @@ -398,7 +398,7 @@ function initializeTransformStream(
promise: undefined,
resolve: undefined,
reject: undefined,
}
},
};

transformStreamSetBackpressure(stream, true);
Expand Down
4 changes: 2 additions & 2 deletions lib/internal/webstreams/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const {

const {
copyArrayBuffer,
detachArrayBuffer
detachArrayBuffer,
} = internalBinding('buffer');

const {
Expand Down Expand Up @@ -81,7 +81,7 @@ function customInspect(depth, options, name, data) {

const opts = {
...options,
depth: options.depth == null ? null : options.depth - 1
depth: options.depth == null ? null : options.depth - 1,
};

return `${name} ${inspect(data, opts)}`;
Expand Down
4 changes: 2 additions & 2 deletions lib/internal/webstreams/writablestream.js
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,7 @@ class WritableStream {
return {
data: { port: this[kState].transfer.port2 },
deserializeInfo:
'internal/webstreams/writablestream:TransferredWritableStream'
'internal/webstreams/writablestream:TransferredWritableStream',
};
}

Expand Down Expand Up @@ -395,7 +395,7 @@ class WritableStreamDefaultWriter {
promise: undefined,
resolve: undefined,
reject: undefined,
}
},
};
setupWritableStreamDefaultWriter(this, stream);
}
Expand Down