Merge pull request #592 from lightpanda-io/isolated-polyfill-+-create-when-needed

Isolated polyfill & create world when needed
This commit is contained in:
Karl Seguin
2025-05-05 15:03:05 +08:00
committed by GitHub
7 changed files with 86 additions and 38 deletions

View File

@@ -197,7 +197,7 @@ fn resolveNode(cmd: anytype) !void {
if (params.executionContextId) |context_id| {
if (scope.context.debugContextId() != context_id) {
const isolated_world = bc.isolated_world orelse return error.ContextNotFound;
scope = isolated_world.scope;
scope = isolated_world.scope orelse return error.ContextNotFound;
if (scope.context.debugContextId() != context_id) return error.ContextNotFound;
}