remove global handlescope

This commit is contained in:
Karl Seguin
2026-01-16 16:51:19 +08:00
parent 62aa564df1
commit 5c1b7935e2
5 changed files with 72 additions and 47 deletions

View File

@@ -372,7 +372,12 @@ pub fn unknownPropertyCallback(c_name: ?*const v8.Name, handle: ?*const v8.Prope
caller.init(v8_isolate);
defer caller.deinit();
const local = caller.local;
const local = &caller.local;
var hs: js.HandleScope = undefined;
hs.init(local.isolate);
defer hs.deinit();
const property: []const u8 = local.valueHandleToString(@ptrCast(c_name.?), .{}) catch {
return 0;
};