Skip to content

Commit

Permalink
pass file.size to AbstractFile
Browse files Browse the repository at this point in the history
  • Loading branch information
mbostock committed Aug 27, 2024
1 parent 5193dd2 commit 79a7f59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ export function fileOf(AbstractFile) {

class LocalFile extends AbstractFile {
constructor(file) {
super(file.name, file.type, file.lastModified);
super(file.name, file.type, file.lastModified, file.size);
Object.defineProperty(this, "_", {value: file});
Object.defineProperty(this, "_url", {writable: true});
}
Expand Down

0 comments on commit 79a7f59

Please sign in to comment.