Skip to content

Commit cfb5157

Browse files
committed
could not use fs/promise in v12 either
1 parent 817fd03 commit cfb5157

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

from.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1-
import {statSync, createReadStream} from 'fs';
2-
import {stat} from 'fs/promises';
1+
import {statSync, createReadStream, promises as fs} from 'fs';
32
import {basename} from 'path';
43
import File from './file.js';
54
import Blob from './index.js';
65
import {MessageChannel} from 'worker_threads';
76

7+
const {stat} = fs
8+
89
const DOMException = globalThis.DOMException || (() => {
910
const port = new MessageChannel().port1
1011
const ab = new ArrayBuffer(0)

0 commit comments

Comments
 (0)