File tree 2 files changed +3
-1
lines changed
2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import File from './file.js';
4
4
import Blob from './index.js' ;
5
5
import { MessageChannel } from 'worker_threads' ;
6
6
7
- const { stat} = fs
7
+ const { stat} = fs ;
8
8
9
9
const DOMException = globalThis . DOMException || ( ( ) => {
10
10
const port = new MessageChannel ( ) . port1
Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ async function * toIterator (parts, clone = true) {
56
56
yield part ;
57
57
}
58
58
} else {
59
+ /* c8 ignore start */
59
60
// For blobs that have arrayBuffer but no stream method (nodes buffer.Blob)
60
61
let position = 0 ;
61
62
while ( position !== part . size ) {
@@ -64,6 +65,7 @@ async function * toIterator (parts, clone = true) {
64
65
position += buffer . byteLength ;
65
66
yield new Uint8Array ( buffer ) ;
66
67
}
68
+ /* c8 ignore end */
67
69
}
68
70
}
69
71
}
You can’t perform that action at this time.
0 commit comments