fix(javascript): preserve incoming callback target uncertainty (#4243)

Preserve incoming callback uncertainty and resolve proven preceding writes.
Share read-position and initializer identity facts with returned-reference
analysis; cache completed projected work with actual cycle dependencies.

Fixes #3880
This commit is contained in:
Ysopwnable
2026-10-16 10:09:22 +08:00
committed by GitHub
parent 1bd5c5c87e
commit 42fc6c53ae
8 changed files with 822 additions and 118 deletions
@@ -24,7 +24,7 @@ import type {
} from "./javascriptSemanticValueTypes.js";
/** Internal initializer plus a destructuring/member projection. */
interface JavaScriptSemanticInitializer {
export interface JavaScriptSemanticInitializer {
readonly node: t.Node;
readonly projection: readonly (string | number | null)[];
readonly entryBody?: t.BlockStatement;