dom: expose document.location

This commit is contained in:
Pierre Tachoire
2025-01-23 17:08:02 +01:00
parent 09ba4bcf43
commit 318e2bd1c6
8 changed files with 28 additions and 12 deletions

View File

@@ -91,7 +91,7 @@ pub fn run(arena: *std.heap.ArenaAllocator, comptime dir: []const u8, f: []const
// setup global env vars.
var window = Window.create(null, null);
window.replaceDocument(html_doc);
try window.replaceDocument(html_doc);
window.setStorageShelf(&storageShelf);
try js_env.bindGlobal(&window);