mirror of
https://github.com/arcodange-org/mediabunny.git
synced 2026-09-29 03:43:50 +02:00
Small monotonicity adjustments
This commit is contained in:
+2
-2
@@ -83,8 +83,8 @@ export class StreamTarget extends Target {
|
||||
if (options.chunked !== undefined && typeof options.chunked !== 'boolean') {
|
||||
throw new TypeError('options.chunked, when provided, must be a boolean.');
|
||||
}
|
||||
if (options.chunkSize !== undefined && (!Number.isInteger(options.chunkSize) || options.chunkSize <= 0)) {
|
||||
throw new TypeError('options.chunkSize, when provided, must be a positive integer.');
|
||||
if (options.chunkSize !== undefined && (!Number.isInteger(options.chunkSize) || options.chunkSize < 1024)) {
|
||||
throw new TypeError('options.chunkSize, when provided, must be an integer and not smaller than 1024.');
|
||||
}
|
||||
|
||||
this._writable = writable;
|
||||
|
||||
Reference in New Issue
Block a user