stream: add trailing commas in webstream source files
PR-URL: https://github.com/nodejs/node/pull/46685 Reviewed-By: Moshe Atlow <moshe@atlow.co.il> Reviewed-By: Darshan Sen <raisinten@gmail.com>
This commit is contained in:
parent
3a648af0f0
commit
d42628d05a
@ -300,6 +300,7 @@ overrides:
|
||||
- ./internal/vm.js
|
||||
- ./internal/watch_mode/*.js
|
||||
- ./internal/webidl.js
|
||||
- ./internal/webstreams/*.js
|
||||
- ./module.js
|
||||
- ./path/*.js
|
||||
- ./process.js
|
||||
|
@ -504,7 +504,7 @@ class ReadableStream {
|
||||
done = true;
|
||||
readableStreamReaderGenericRelease(reader);
|
||||
promise.reject(error);
|
||||
}
|
||||
},
|
||||
});
|
||||
return promise.promise;
|
||||
}
|
||||
@ -567,7 +567,7 @@ class ReadableStream {
|
||||
returnSteps(error);
|
||||
},
|
||||
|
||||
[SymbolAsyncIterator]() { return this; }
|
||||
[SymbolAsyncIterator]() { return this; },
|
||||
}, AsyncIterator);
|
||||
}
|
||||
|
||||
@ -605,7 +605,7 @@ class ReadableStream {
|
||||
return {
|
||||
data: { port: this[kState].transfer.port2 },
|
||||
deserializeInfo:
|
||||
'internal/webstreams/readablestream:TransferredReadableStream'
|
||||
'internal/webstreams/readablestream:TransferredReadableStream',
|
||||
};
|
||||
}
|
||||
|
||||
@ -1225,7 +1225,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);
|
||||
@ -1917,7 +1917,7 @@ function readableStreamError(stream, error) {
|
||||
setPromiseHandled(stream[kIsClosedPromise].promise);
|
||||
|
||||
const {
|
||||
reader
|
||||
reader,
|
||||
} = stream[kState];
|
||||
|
||||
if (reader === undefined)
|
||||
|
@ -66,7 +66,7 @@ class CloneableDOMException extends DOMException {
|
||||
code: this.code,
|
||||
},
|
||||
deserializeInfo:
|
||||
'internal/webstreams/transfer:InternalCloneableDOMException'
|
||||
'internal/webstreams/transfer:InternalCloneableDOMException',
|
||||
};
|
||||
}
|
||||
|
||||
@ -183,7 +183,7 @@ class CrossRealmTransformWritableSink {
|
||||
assert(typeof data === 'object');
|
||||
const {
|
||||
type,
|
||||
value
|
||||
value,
|
||||
} = { ...data };
|
||||
assert(typeof type === 'string');
|
||||
switch (type) {
|
||||
|
@ -226,7 +226,7 @@ class TransformStream {
|
||||
writable,
|
||||
},
|
||||
deserializeInfo:
|
||||
'internal/webstreams/transformstream:TransferredTransformStream'
|
||||
'internal/webstreams/transformstream:TransferredTransformStream',
|
||||
};
|
||||
}
|
||||
|
||||
@ -398,7 +398,7 @@ function initializeTransformStream(
|
||||
promise: undefined,
|
||||
resolve: undefined,
|
||||
reject: undefined,
|
||||
}
|
||||
},
|
||||
};
|
||||
|
||||
transformStreamSetBackpressure(stream, true);
|
||||
|
@ -25,7 +25,7 @@ const {
|
||||
|
||||
const {
|
||||
copyArrayBuffer,
|
||||
detachArrayBuffer
|
||||
detachArrayBuffer,
|
||||
} = internalBinding('buffer');
|
||||
|
||||
const {
|
||||
@ -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)}`;
|
||||
|
@ -299,7 +299,7 @@ class WritableStream {
|
||||
return {
|
||||
data: { port: this[kState].transfer.port2 },
|
||||
deserializeInfo:
|
||||
'internal/webstreams/writablestream:TransferredWritableStream'
|
||||
'internal/webstreams/writablestream:TransferredWritableStream',
|
||||
};
|
||||
}
|
||||
|
||||
@ -398,7 +398,7 @@ class WritableStreamDefaultWriter {
|
||||
promise: undefined,
|
||||
resolve: undefined,
|
||||
reject: undefined,
|
||||
}
|
||||
},
|
||||
};
|
||||
setupWritableStreamDefaultWriter(this, stream);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user