Skip to content

[BUG] Windows - worker script path resolution skips fileURLToPath for local paths #210

@mynameistito

Description

@mynameistito

packages/kernel/runtime-deno-subprocess/src/index.ts had a shortcut in resolveWorkerScriptPath:

const moduleUrl = String(import.meta.url);
if (moduleUrl.startsWith("/")) return moduleUrl;

On Windows, import.meta.url is a file:///C:/... URL, so its pathname starts with /C:/ not just /. Returning the raw URL string instead of the proper file path breaks worker script loading on Windows.

Fix: remove the shortcut and always go through fileURLToPath.

Fixed in: packages/kernel/runtime-deno-subprocess/src/index.ts


Identified and fixed with AI assistance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions