Claude Bot
eb3d38dbde
fix(core): make Bun.file() return BunFile instance instead of Blob
...
Create a separate BunFile class that extends Blob with file-specific
methods (exists, write, unlink, delete, stat, writer, name, lastModified).
This ensures Bun.file().constructor.name returns "BunFile" and plain Blob
instances don't expose non-standard file methods.
Also fixes the File prototype chain so File.prototype properly extends
Blob.prototype instead of being the same object.
Closes #26967
Co-Authored-By: Claude <noreply@anthropic.com >
2026-02-12 14:40:49 +00:00
..
2024-08-30 00:53:40 -07:00
2023-03-13 17:13:24 -07:00
2024-09-03 21:32:52 -07:00
2024-09-02 09:40:03 -07:00
2024-09-03 21:32:52 -07:00
2024-09-03 21:32:52 -07:00
2025-12-23 22:24:18 -08:00
2026-02-12 14:40:49 +00:00
2025-07-14 00:47:53 -07:00
2025-10-27 18:31:33 -07:00
2024-09-03 21:32:52 -07:00
2025-04-01 19:08:04 -07:00
2025-07-14 00:47:53 -07:00
2025-05-22 20:17:21 -07:00
2025-09-20 00:35:42 -07:00
2025-03-10 20:19:29 -07:00
2024-09-03 21:32:52 -07:00
2024-09-03 21:32:52 -07:00
2024-09-03 21:32:52 -07:00
2025-10-17 16:25:54 -04:00
2024-09-03 21:32:52 -07:00
2025-07-14 20:53:46 -07:00
2026-01-06 15:00:52 +00:00
2025-05-08 23:22:16 -07:00
2025-05-08 23:22:16 -07:00
2025-08-08 18:02:19 -07:00
2024-12-27 14:07:41 -08:00
2024-12-27 14:07:41 -08:00
2025-11-07 05:28:33 -08:00
2025-10-15 14:34:59 -07:00
2023-07-27 16:55:49 -07:00
2025-11-07 05:28:33 -08:00
2025-09-26 19:01:01 -07:00
2024-09-03 21:32:52 -07:00
2023-10-30 12:56:31 -07:00
2024-10-14 12:48:42 -07:00
2025-09-22 05:30:34 -07:00
2024-09-03 21:32:52 -07:00
2024-11-21 22:01:27 -08:00
2024-11-21 22:01:27 -08:00
2024-11-21 22:01:27 -08:00
2025-10-26 14:29:31 -07:00
2025-10-20 19:46:22 -07:00
2024-08-07 13:21:52 -07:00
2025-09-22 05:30:34 -07:00
2026-01-05 10:21:49 -08:00
2025-01-14 20:53:02 -08:00
2025-09-04 18:06:47 -07:00
2023-07-28 15:44:05 -07:00
2023-08-21 20:30:34 -07:00
2023-08-21 20:30:34 -07:00
2026-01-26 11:15:33 -08:00
2024-09-03 21:32:52 -07:00
2024-09-03 21:32:52 -07:00
2025-10-06 05:39:22 -07:00
2025-10-08 00:31:52 -07:00
2025-10-08 00:31:52 -07:00
2025-12-15 18:46:02 -08:00
2026-01-12 14:41:58 -08:00
2025-07-14 00:47:53 -07:00
2025-09-09 21:42:01 -07:00
2025-07-28 11:59:45 -07:00
2025-09-04 18:06:47 -07:00