Method
constructor
(chunks: Array<BufferSource | DataView | Blob | string>, name: string, opts: { type?: string; lastModified?: number } = {})
Source from the content-addressed store, hash-verified
| 472 | } |
| 473 | |
| 474 | constructor(chunks: Array<BufferSource | DataView | Blob | string>, name: string, opts: { type?: string; lastModified?: number } = {}) { |
| 475 | super(chunks, opts); |
| 476 | this._name = name.replace(/\//g, ':'); |
| 477 | this._lastModified = opts.lastModified ? new Date(opts.lastModified).valueOf() : Date.now(); |
| 478 | } |
| 479 | |
| 480 | public toString() { |
| 481 | return '[object File]'; |
Callers
nothing calls this directly
Tested by
no test coverage detected