Skip to content

Commit dbfefe8

Browse files
committed
cuz it never happend
1 parent cfb5157 commit dbfefe8

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

from.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import File from './file.js';
44
import Blob from './index.js';
55
import {MessageChannel} from 'worker_threads';
66

7-
const {stat} = fs
7+
const {stat} = fs;
88

99
const DOMException = globalThis.DOMException || (() => {
1010
const port = new MessageChannel().port1

index.js

+2
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ async function * toIterator (parts, clone = true) {
5656
yield part;
5757
}
5858
} else {
59+
/* c8 ignore start */
5960
// For blobs that have arrayBuffer but no stream method (nodes buffer.Blob)
6061
let position = 0;
6162
while (position !== part.size) {
@@ -64,6 +65,7 @@ async function * toIterator (parts, clone = true) {
6465
position += buffer.byteLength;
6566
yield new Uint8Array(buffer);
6667
}
68+
/* c8 ignore end */
6769
}
6870
}
6971
}

0 commit comments

Comments
 (0)