Skip to content

cjs: find-my-way@9 init throws 'Cannot convert undefined or null to object' — blocks #6559 e2e #6587

Description

@proggeramlug

Found while landing #6559 (PR #6584): find-my-way@9 compiles natively (compilePackages) but throws TypeError: Cannot convert undefined or null to object at load — before any route is registered or any runtime-generated code runs.

Uncharacterized beyond the failure point: something during module init passes undefined/null into an Object.* operation (likely Object.keys/assign/setPrototypeOf over a value perry resolves differently at CJS init — needs a bisect into find-my-way's init graph: handler-storage maps, http-methods table, or its Object.create(null) trees).

Repro: the #[ignore]d e2e in crates/perry/tests/issue_6559_real_libs_e2e.rs (PERRY_REQUIRE_NPM_E2E=1 … -- --ignored).

Blocks: #6559 real-library acceptance (router leg), kimi-code target #6565 (fastify routing = find-my-way). Interpreter side already proven against find-my-way's captured matcher codegen incl. new NullObject() on a host class (PR #6584 fixtures).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed defect or regressionparityCompatibility gap with Node.js, ECMAScript, or the supported ecosystem

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions