mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-07-31 01:36:15 -04:00
fix(net): use exec.js.local in collectBodyBytes
Drop nested localScope; fetch already runs under an active Caller local. Fixes compile error where &ls (Scope) was passed where *js.Local is required.
This commit is contained in:
@@ -142,12 +142,7 @@ pub fn collectBodyBytes(self: *ReadableStream, arena: std.mem.Allocator) ![]cons
|
||||
}
|
||||
|
||||
const exec = self._execution;
|
||||
if (exec.js.local == null) return error.TypeError;
|
||||
|
||||
var ls: js.Local.Scope = undefined;
|
||||
exec.js.localScope(&ls);
|
||||
defer ls.deinit();
|
||||
const local = &ls;
|
||||
const local = exec.js.local orelse return error.TypeError;
|
||||
|
||||
var buf = std.Io.Writer.Allocating.init(arena);
|
||||
const controller = self._controller;
|
||||
|
||||
Reference in New Issue
Block a user