diff options
Diffstat (limited to 'src/bun.js/webcore/response.classes.ts')
-rw-r--r-- | src/bun.js/webcore/response.classes.ts | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/src/bun.js/webcore/response.classes.ts b/src/bun.js/webcore/response.classes.ts index 5f3ba2e4a..b6ad452d2 100644 --- a/src/bun.js/webcore/response.classes.ts +++ b/src/bun.js/webcore/response.classes.ts @@ -137,14 +137,23 @@ export default [ getter: "getType", }, - size: { - getter: "getSize", + // TODO: Move this to a separate `File` object or BunFile + // This is *not* spec-compliant. + name: { + getter: "getName", + cache: true, }, + // TODO: Move this to a separate `File` object or BunFile + // This is *not* spec-compliant. lastModified: { getter: "getLastModified", }, + size: { + getter: "getSize", + }, + writer: { fn: "getWriter", length: 1, |