We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c0461f commit ab369bdCopy full SHA for ab369bd
src/browser/webapi/navigation/Navigation.zig
@@ -72,6 +72,10 @@ pub fn getCanGoForward(self: *const Navigation) bool {
72
}
73
74
pub fn getCurrentEntry(self: *Navigation) *NavigationHistoryEntry {
75
+ // This should never fail. An entry should always be created before
76
+ // we run the scripts on the page we are loading.
77
+ std.debug.assert(self._entries.items.len > 0);
78
+
79
return self._entries.items[self._index];
80
81
0 commit comments