mirror of
https://github.com/oven-sh/bun
synced 2026-02-09 10:28:47 +00:00
Fix DirectoryRoute globalThis access
- Fixed server.vm().global access to use server.globalThis() method - This should resolve compilation issues with DirectoryRoute 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -223,7 +223,7 @@ fn serveFile(this: *DirectoryRoute, req: *uws.Request, resp: AnyResponse, method
|
||||
return;
|
||||
};
|
||||
|
||||
const blob = Blob.initWithStore(store, this.server.?.vm().global);
|
||||
const blob = Blob.initWithStore(store, this.server.?.globalThis());
|
||||
|
||||
// Create a FileRoute to handle the actual file serving
|
||||
const file_route = FileRoute.initFromBlob(blob, .{
|
||||
|
||||
Reference in New Issue
Block a user