mirror of
https://github.com/oven-sh/bun
synced 2026-02-18 06:41:50 +00:00
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>