Problem
The native engine (Rust/napi-rs) does not extract prototype-based method definitions like:
Dog.prototype.bark = function() { ... };
Running codegraph build on such a file extracts Dog, Animal, etc. but NOT Dog.bark as a method node.
The WASM engine correctly extracts this via extractPrototypeMethodsWalk in src/extractors/javascript.ts.
Impact
The integration test in tests/integration/prototype-method-resolution.test.ts (added in #1317 work) fails when the native engine is active because:
Dog.bark node does not exist in the DB
d.bark() call edge cannot resolve to a non-existent node
(new Dog('Rex')).bark() inline-new receiver call also fails
The test was pinned to WASM engine in branch fix/wasm-prototype-method-test-1381 (PR #1400) but that change was not yet merged to main.
Expected behavior
Both engines should produce identical results (as stated in CLAUDE.md: "Both engines must produce identical results").
Affected files
crates/codegraph-core/src/ — native extractor needs prototype assignment extraction
tests/integration/prototype-method-resolution.test.ts — test should either be pinned to WASM or the native engine fixed
Problem
The native engine (Rust/napi-rs) does not extract prototype-based method definitions like:
Running
codegraph buildon such a file extractsDog,Animal, etc. but NOTDog.barkas a method node.The WASM engine correctly extracts this via
extractPrototypeMethodsWalkinsrc/extractors/javascript.ts.Impact
The integration test in
tests/integration/prototype-method-resolution.test.ts(added in #1317 work) fails when the native engine is active because:Dog.barknode does not exist in the DBd.bark()call edge cannot resolve to a non-existent node(new Dog('Rex')).bark()inline-new receiver call also failsThe test was pinned to WASM engine in branch
fix/wasm-prototype-method-test-1381(PR #1400) but that change was not yet merged to main.Expected behavior
Both engines should produce identical results (as stated in CLAUDE.md: "Both engines must produce identical results").
Affected files
crates/codegraph-core/src/— native extractor needs prototype assignment extractiontests/integration/prototype-method-resolution.test.ts— test should either be pinned to WASM or the native engine fixed