File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -85,9 +85,7 @@ export class BundleReader {
85
85
private bundleStream :
86
86
| ReadableStream < Uint8Array | ArrayBuffer >
87
87
| Uint8Array
88
- | ArrayBuffer ,
89
- /** Async queue used to perform bundle reading. */
90
- private asyncQueue : AsyncQueue = new AsyncQueue ( )
88
+ | ArrayBuffer
91
89
) {
92
90
if (
93
91
bundleStream instanceof Uint8Array ||
@@ -127,9 +125,7 @@ export class BundleReader {
127
125
* have reached the end of the stream.
128
126
*/
129
127
async nextElement ( ) : Promise < SizedBundleElement | null > {
130
- // Ensures `nextElementImpl` calls are executed sequentially before they
131
- // modifies internal buffer.
132
- return this . asyncQueue . enqueue ( ( ) => this . nextElementImpl ( ) ) ;
128
+ return this . nextElementImpl ( ) ;
133
129
}
134
130
135
131
/**
Original file line number Diff line number Diff line change @@ -62,7 +62,7 @@ function lengthPrefixedString(o: {}): string {
62
62
} ) ;
63
63
64
64
// eslint-disable-next-line no-restricted-properties
65
- ( isNode ( ) ? describe . skip : describe ) ( 'Bundle ' , ( ) => {
65
+ ( isNode ( ) ? describe . skip : describe . only ) ( 'Bundle ' , ( ) => {
66
66
genericBundleReadingTests ( 1 ) ;
67
67
genericBundleReadingTests ( 4 ) ;
68
68
genericBundleReadingTests ( 64 ) ;
You can’t perform that action at this time.
0 commit comments