transfer finalizers on origin change

This commit is contained in:
Karl Seguin
2026-03-11 07:19:59 +08:00
parent 4cea9aba3c
commit f6d0e484b0
2 changed files with 38 additions and 25 deletions

View File

@@ -226,6 +226,7 @@ pub fn mapZigInstanceToJs(self: *const Local, js_obj_handle: ?*const v8.Object,
// can't figure out how to make that work, since it depends on
// the [runtime] `value`.
// We need the resolved finalizer, which we have in resolved.
//
// The above if statement would be more clear as:
// if (resolved.finalizer_from_v8) |finalizer| {
// But that's a runtime check.