Skip to content

use whatwg streams #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Jul 15, 2021
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
could not use fs/promise in v12 either
  • Loading branch information
jimmywarting committed Jul 15, 2021
commit cfb51571b1f11eb461901dd4763e219a6d494a4a
5 changes: 3 additions & 2 deletions from.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
import {statSync, createReadStream} from 'fs';
import {stat} from 'fs/promises';
import {statSync, createReadStream, promises as fs} from 'fs';
import {basename} from 'path';
import File from './file.js';
import Blob from './index.js';
import {MessageChannel} from 'worker_threads';

const {stat} = fs

const DOMException = globalThis.DOMException || (() => {
const port = new MessageChannel().port1
const ab = new ArrayBuffer(0)
Expand Down